Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.GenerationOfFMUs,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.GenerationOfFMUs,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001338/0.001338, allocations: 102.6 kB / 16.41 MB, free: 6.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001229/0.001229, allocations: 189.5 kB / 17.34 MB, free: 5.742 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.57/1.57, allocations: 205.1 MB / 223.2 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2398/0.2398, allocations: 43.52 MB / 314.1 MB, free: 448 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001773/0.001774, allocations: 77.47 kB / 441.3 MB, free: 6.172 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1577/0.1595, allocations: 57.79 MB / 499.1 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.008374/0.1679, allocations: 5.771 MB / 0.493 GB, free: 6.5 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005977/0.174, allocations: 2.322 MB / 0.4953 GB, free: 4.168 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001936/0.1759, allocations: 39.75 kB / 0.4953 GB, free: 4.129 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001066/0.177, allocations: 226 kB / 0.4955 GB, free: 3.906 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001324/0.1784, allocations: 186.2 kB / 0.4957 GB, free: 3.723 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001761/0.1802, allocations: 458.9 kB / 0.4962 GB, free: 3.273 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002069/0.1823, allocations: 1.11 MB / 0.4972 GB, free: 2.16 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001598/0.1839, allocations: 0.6263 MB / 0.4979 GB, free: 1.504 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009943/0.1849, allocations: 366.7 kB / 0.4982 GB, free: 1.145 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007903/0.1857, allocations: 390 kB / 0.4986 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002444/0.186, allocations: 96 kB / 0.4987 GB, free: 0.668 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005201/0.1865, allocations: 156 kB / 0.4988 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003108/0.1868, allocations: 215.2 kB / 0.499 GB, free: 312 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000913/0.1878, allocations: 469.7 kB / 0.4995 GB, free: 15.84 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001878/0.1897, allocations: 1.257 MB / 0.5007 GB, free: 14.58 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.678e-06/0.1897, allocations: 3.984 kB / 0.5007 GB, free: 14.58 MB / 398.1 MB Notification: Performance of FrontEnd: time 4.558e-06/0.1897, allocations: 4 kB / 0.5007 GB, free: 14.57 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.626e-05/0.1898, allocations: 7.875 kB / 0.5007 GB, free: 14.57 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.002362/0.1921, allocations: 1.131 MB / 0.5018 GB, free: 13.39 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.891e-05/0.1922, allocations: 11.89 kB / 0.5018 GB, free: 13.38 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002084/0.1924, allocations: 139.9 kB / 0.502 GB, free: 13.23 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001956/0.1926, allocations: 99.72 kB / 0.5021 GB, free: 13.13 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001091/0.1937, allocations: 0.6096 MB / 0.5026 GB, free: 12.48 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.31e-05/0.1938, allocations: 66 kB / 0.5027 GB, free: 12.41 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001317/0.194, allocations: 92 kB / 0.5028 GB, free: 12.32 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00167/0.1956, allocations: 0.8891 MB / 0.5037 GB, free: 11.38 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.166e-05/0.1957, allocations: 4 kB / 0.5037 GB, free: 11.37 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.449e-05/0.1958, allocations: 40 kB / 0.5037 GB, free: 11.33 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.241e-05/0.1958, allocations: 28 kB / 0.5037 GB, free: 11.3 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001023/0.1968, allocations: 0.519 MB / 0.5042 GB, free: 10.79 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003689/0.2005, allocations: 3.604 MB / 0.5078 GB, free: 7.023 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005479/0.2011, allocations: 230.6 kB / 0.508 GB, free: 6.789 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001704/0.2013, allocations: 100.8 kB / 0.5081 GB, free: 6.688 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002417/0.2015, allocations: 247.3 kB / 0.5083 GB, free: 6.391 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.218e-05/0.2016, allocations: 38.56 kB / 0.5084 GB, free: 6.344 MB / 398.1 MB Notification: Performance of pre-optimization done (n=30): time 2.044e-06/0.2016, allocations: 0 / 0.5084 GB, free: 6.344 MB / 398.1 MB Notification: Performance of matching and sorting (n=35): time 0.002425/0.204, allocations: 1.299 MB / 0.5096 GB, free: 4.949 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.064e-05/0.2041, allocations: 63.28 kB / 0.5097 GB, free: 4.875 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004006/0.2045, allocations: 401.8 kB / 0.5101 GB, free: 4.477 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.552e-05/0.2045, allocations: 33.7 kB / 0.5101 GB, free: 4.438 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002976/0.2048, allocations: 466.1 kB / 0.5105 GB, free: 3.973 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001096/0.2049, allocations: 134.1 kB / 0.5107 GB, free: 3.84 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001386/0.2051, allocations: 98.16 kB / 0.5108 GB, free: 3.738 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001675/0.2052, allocations: 362.8 kB / 0.5111 GB, free: 3.375 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002078/0.2055, allocations: 113.1 kB / 0.5112 GB, free: 3.266 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003231/0.2058, allocations: 310.2 kB / 0.5115 GB, free: 2.875 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005879/0.2064, allocations: 452.7 kB / 0.5119 GB, free: 2.348 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.2064, allocations: 0 / 0.5119 GB, free: 2.348 MB / 398.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0007806/0.2072, allocations: 0.513 MB / 0.5124 GB, free: 1.824 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.159e-05/0.2072, allocations: 15.97 kB / 0.5125 GB, free: 1.809 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.072e-05/0.2072, allocations: 4 kB / 0.5125 GB, free: 1.805 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001975/0.2074, allocations: 40.83 kB / 0.5125 GB, free: 1.762 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003731/0.2078, allocations: 131.8 kB / 0.5126 GB, free: 1.633 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004282/0.2083, allocations: 0.5562 MB / 0.5132 GB, free: 1.051 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000192/0.2085, allocations: 23.92 kB / 0.5132 GB, free: 1.027 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.107e-05/0.2085, allocations: 28.06 kB / 0.5132 GB, free: 1 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0002943/0.2088, allocations: 229.6 kB / 0.5134 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.49e-05/0.2089, allocations: 55.28 kB / 0.5135 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006112/0.2095, allocations: 323.3 kB / 0.5138 GB, free: 392 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.422e-06/0.2095, allocations: 4 kB / 0.5138 GB, free: 388 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.2095, allocations: 4 kB / 0.5138 GB, free: 384 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.484e-06/0.2096, allocations: 3.984 kB / 0.5138 GB, free: 380 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001498/0.2111, allocations: 1.05 MB / 0.5148 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-06/0.2111, allocations: 4.156 kB / 0.5148 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003431/0.2114, allocations: 83.89 kB / 0.5149 GB, free: 15.16 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001205/0.2116, allocations: 36.78 kB / 0.515 GB, free: 15.12 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.575e-05/0.2116, allocations: 12 kB / 0.515 GB, free: 15.11 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003911/0.212, allocations: 0.5407 MB / 0.5155 GB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/0.212, allocations: 3.938 kB / 0.5155 GB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007665/0.2128, allocations: 0.564 MB / 0.5161 GB, free: 13.94 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001209/0.2129, allocations: 116.5 kB / 0.5162 GB, free: 13.8 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.39e-05/0.213, allocations: 12 kB / 0.5162 GB, free: 13.79 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001476/0.2131, allocations: 11.98 kB / 0.5162 GB, free: 13.78 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.787e-05/0.2132, allocations: 27.91 kB / 0.5162 GB, free: 13.75 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.234e-05/0.2132, allocations: 12 kB / 0.5162 GB, free: 13.74 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002774/0.2135, allocations: 271.1 kB / 0.5165 GB, free: 13.48 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.2135, allocations: 4 kB / 0.5165 GB, free: 13.48 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005423/0.2141, allocations: 120 kB / 0.5166 GB, free: 13.36 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (directInertia.inertia.w,directInertia.torqueToAngle.phi,inertia2a.w,torqueToAngle2a.y,inertia2b.w,torqueToAngle2b.y,inertia3a.phi,inertia3a.w,inertia3b.phi,inertia3b.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001162/0.2152, allocations: 1.101 MB / 0.5177 GB, free: 12.21 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000663/0.2159, allocations: 337.1 kB / 0.518 GB, free: 11.88 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.2159, allocations: 4.062 kB / 0.518 GB, free: 11.88 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002734/0.2162, allocations: 139.8 kB / 0.5181 GB, free: 11.74 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005494/0.2168, allocations: 80.84 kB / 0.5182 GB, free: 11.67 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007402/0.2242, allocations: 4.826 MB / 0.5229 GB, free: 6.559 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007381/0.2249, allocations: 0.9561 MB / 0.5239 GB, free: 5.578 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002415/0.2252, allocations: 56.55 kB / 0.5239 GB, free: 5.52 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004031/0.2256, allocations: 295.3 kB / 0.5242 GB, free: 5.23 MB / 414.1 MB Notification: Performance of SimCode: time 2.144e-06/0.2256, allocations: 0 / 0.5242 GB, free: 5.23 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3168/0.5424, allocations: 9.477 MB / 0.5334 GB, free: 39.6 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.13/12.67, allocations: 12.03 kB / 0.5335 GB, free: 39.6 MB / 414.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Rotational_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Rotational_GenerationOfFMUs.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Rotational.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches