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.00134/0.00134, allocations: 104.6 kB / 16.4 MB, free: 6.512 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.001461/0.001461, allocations: 188.2 kB / 17.34 MB, free: 5.738 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.427/1.427, allocations: 205.1 MB / 223.2 MB, free: 12.23 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.2232/0.2232, allocations: 43.52 MB / 314.1 MB, free: 452 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.002409/0.00241, allocations: 65.47 kB / 441.3 MB, free: 6.18 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1346/0.137, allocations: 57.79 MB / 499.1 MB, free: 12.31 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.008387/0.1454, allocations: 5.767 MB / 0.493 GB, free: 6.512 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00469/0.1502, allocations: 2.326 MB / 0.4953 GB, free: 4.176 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001236/0.1514, allocations: 43.75 kB / 0.4953 GB, free: 4.133 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007472/0.1523, allocations: 222 kB / 0.4955 GB, free: 3.914 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007774/0.153, allocations: 182.3 kB / 0.4957 GB, free: 3.734 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001397/0.1545, allocations: 459 kB / 0.4962 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001646/0.1561, allocations: 1.114 MB / 0.4972 GB, free: 2.168 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00105/0.1572, allocations: 0.6224 MB / 0.4979 GB, free: 1.516 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005498/0.1577, allocations: 358.7 kB / 0.4982 GB, free: 1.164 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000579/0.1583, allocations: 390 kB / 0.4986 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001644/0.1585, allocations: 96 kB / 0.4987 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000327/0.1589, allocations: 155.9 kB / 0.4988 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002348/0.1591, allocations: 215.3 kB / 0.499 GB, free: 332 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005749/0.1597, allocations: 465.6 kB / 0.4995 GB, free: 15.86 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001797/0.1615, allocations: 1.276 MB / 0.5007 GB, free: 14.59 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.1615, allocations: 0 / 0.5007 GB, free: 14.59 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.404e-06/0.1615, allocations: 0 / 0.5007 GB, free: 14.59 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.129e-05/0.1616, allocations: 3.938 kB / 0.5007 GB, free: 14.58 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.001963/0.1636, allocations: 1.157 MB / 0.5018 GB, free: 13.38 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.227e-05/0.1636, allocations: 15.88 kB / 0.5018 GB, free: 13.36 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001697/0.1638, allocations: 147.9 kB / 0.502 GB, free: 13.21 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001514/0.164, allocations: 104.3 kB / 0.5021 GB, free: 13.11 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009924/0.165, allocations: 0.6061 MB / 0.5027 GB, free: 12.46 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.943e-05/0.165, allocations: 66 kB / 0.5027 GB, free: 12.39 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001428/0.1652, allocations: 95.95 kB / 0.5028 GB, free: 12.3 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00169/0.1669, allocations: 0.8853 MB / 0.5037 GB, free: 11.35 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.955e-05/0.1669, allocations: 8 kB / 0.5037 GB, free: 11.34 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.117e-05/0.167, allocations: 36 kB / 0.5037 GB, free: 11.31 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.626e-05/0.167, allocations: 24 kB / 0.5038 GB, free: 11.29 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001056/0.1681, allocations: 0.5268 MB / 0.5043 GB, free: 10.76 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004341/0.1724, allocations: 3.609 MB / 0.5078 GB, free: 6.992 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006106/0.1731, allocations: 226.6 kB / 0.508 GB, free: 6.762 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001934/0.1733, allocations: 104.8 kB / 0.5081 GB, free: 6.656 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002644/0.1736, allocations: 247.3 kB / 0.5084 GB, free: 6.359 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.083e-05/0.1736, allocations: 38.56 kB / 0.5084 GB, free: 6.312 MB / 398.1 MB Notification: Performance of pre-optimization done (n=30): time 2.345e-06/0.1736, allocations: 0 / 0.5084 GB, free: 6.312 MB / 398.1 MB Notification: Performance of matching and sorting (n=35): time 0.002807/0.1764, allocations: 1.312 MB / 0.5097 GB, free: 4.906 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.71e-05/0.1765, allocations: 59.34 kB / 0.5097 GB, free: 4.836 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005225/0.177, allocations: 405.8 kB / 0.5101 GB, free: 4.434 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.031e-05/0.1771, allocations: 29.7 kB / 0.5101 GB, free: 4.398 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003808/0.1774, allocations: 479.5 kB / 0.5106 GB, free: 3.922 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001229/0.1776, allocations: 142.8 kB / 0.5107 GB, free: 3.781 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001477/0.1777, allocations: 98.2 kB / 0.5108 GB, free: 3.68 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001976/0.1779, allocations: 358.8 kB / 0.5112 GB, free: 3.32 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002629/0.1782, allocations: 117 kB / 0.5113 GB, free: 3.207 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003849/0.1786, allocations: 306.3 kB / 0.5116 GB, free: 2.82 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006716/0.1793, allocations: 452.7 kB / 0.512 GB, free: 2.293 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.558e-06/0.1793, allocations: 4 kB / 0.512 GB, free: 2.289 MB / 398.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0008662/0.1802, allocations: 0.5171 MB / 0.5125 GB, free: 1.762 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.319e-05/0.1803, allocations: 11.94 kB / 0.5125 GB, free: 1.75 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.241e-05/0.1803, allocations: 12.09 kB / 0.5125 GB, free: 1.738 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002186/0.1805, allocations: 40.84 kB / 0.5126 GB, free: 1.695 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004099/0.1809, allocations: 127.8 kB / 0.5127 GB, free: 1.57 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005307/0.1815, allocations: 0.5524 MB / 0.5132 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002068/0.1817, allocations: 16 kB / 0.5133 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.563e-05/0.1818, allocations: 31.98 kB / 0.5133 GB, free: 0.9453 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.0004245/0.1822, allocations: 241.6 kB / 0.5135 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.099e-05/0.1823, allocations: 51.61 kB / 0.5136 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006648/0.183, allocations: 319.4 kB / 0.5139 GB, free: 332 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.061e-06/0.183, allocations: 4 kB / 0.5139 GB, free: 328 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.183, allocations: 0 / 0.5139 GB, free: 328 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.236e-05/0.183, allocations: 11.98 kB / 0.5139 GB, free: 316 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001665/0.1847, allocations: 1.058 MB / 0.5149 GB, free: 15.18 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.1847, allocations: 0 / 0.5149 GB, free: 15.18 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003687/0.1851, allocations: 75.95 kB / 0.515 GB, free: 15.1 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001433/0.1852, allocations: 44.88 kB / 0.515 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.678e-05/0.1853, allocations: 8 kB / 0.515 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000423/0.1857, allocations: 0.5445 MB / 0.5156 GB, free: 14.48 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.1857, allocations: 4.031 kB / 0.5156 GB, free: 14.47 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008335/0.1865, allocations: 0.5682 MB / 0.5161 GB, free: 13.87 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001042/0.1867, allocations: 112.8 kB / 0.5162 GB, free: 13.74 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.47e-05/0.1867, allocations: 12 kB / 0.5163 GB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001512/0.1869, allocations: 12 kB / 0.5163 GB, free: 13.71 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.668e-05/0.187, allocations: 23.94 kB / 0.5163 GB, free: 13.69 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.731e-05/0.187, allocations: 19.98 kB / 0.5163 GB, free: 13.67 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003466/0.1874, allocations: 267.2 kB / 0.5166 GB, free: 13.41 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.1874, allocations: 0 / 0.5166 GB, free: 13.41 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005611/0.1879, allocations: 124 kB / 0.5167 GB, free: 13.29 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.001376/0.1893, allocations: 1.117 MB / 0.5178 GB, free: 12.13 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0007942/0.1901, allocations: 333 kB / 0.5181 GB, free: 11.8 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.1901, allocations: 0 / 0.5181 GB, free: 11.8 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003033/0.1905, allocations: 152 kB / 0.5182 GB, free: 11.66 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000619/0.1911, allocations: 80.98 kB / 0.5183 GB, free: 11.58 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007368/0.1985, allocations: 4.84 MB / 0.523 GB, free: 6.457 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008072/0.1993, allocations: 0.9561 MB / 0.524 GB, free: 5.477 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002169/0.1995, allocations: 60.53 kB / 0.524 GB, free: 5.414 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004757/0.2, allocations: 295.3 kB / 0.5243 GB, free: 5.125 MB / 414.1 MB Notification: Performance of SimCode: time 1.503e-06/0.2, allocations: 0 / 0.5243 GB, free: 5.125 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2841/0.4841, allocations: 9.354 MB / 0.5334 GB, free: 39.75 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.19/13.67, allocations: 15.27 kB / 0.5335 GB, free: 39.75 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