Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001341/0.001341, allocations: 101.9 kB / 20.48 MB, free: 1.383 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0015/0.0015, allocations: 214.1 kB / 23.77 MB, free: 4.551 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.499/1.499, allocations: 207.7 MB / 234.6 MB, free: 9.789 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2441/0.2441, allocations: 44.26 MB / 331.1 MB, free: 9.418 MB / 270.1 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002532/0.002532, allocations: 63.91 kB / 468.3 MB, free: 4.406 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1423/0.1448, allocations: 61.06 MB / 0.5169 GB, free: 7.219 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.004097/0.1489, allocations: 1.847 MB / 0.5187 GB, free: 5.355 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001171/0.1501, allocations: 0.5269 MB / 0.5192 GB, free: 4.82 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001228/0.1502, allocations: 4 kB / 0.5192 GB, free: 4.816 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000153/0.1504, allocations: 19.73 kB / 0.5192 GB, free: 4.797 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001195/0.1505, allocations: 39.64 kB / 0.5193 GB, free: 4.758 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002241/0.1507, allocations: 31.95 kB / 0.5193 GB, free: 4.727 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002262/0.1509, allocations: 151.3 kB / 0.5195 GB, free: 4.578 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001955/0.1511, allocations: 50.05 kB / 0.5195 GB, free: 4.523 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001497/0.1513, allocations: 63.72 kB / 0.5196 GB, free: 4.461 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001367/0.1514, allocations: 63.75 kB / 0.5196 GB, free: 4.398 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.437e-05/0.1515, allocations: 16 kB / 0.5196 GB, free: 4.383 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.105e-05/0.1515, allocations: 12 kB / 0.5197 GB, free: 4.371 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.367e-05/0.1515, allocations: 31.86 kB / 0.5197 GB, free: 4.34 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 8.622e-05/0.1516, allocations: 47.8 kB / 0.5197 GB, free: 4.293 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002854/0.1519, allocations: 155.4 kB / 0.5199 GB, free: 4.141 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.1519, allocations: 0 / 0.5199 GB, free: 4.141 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.1519, allocations: 0 / 0.5199 GB, free: 4.141 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.033e-06/0.1519, allocations: 3.938 kB / 0.5199 GB, free: 4.137 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.000729/0.1526, allocations: 361.7 kB / 0.5202 GB, free: 3.754 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.311e-05/0.1527, allocations: 12.03 kB / 0.5202 GB, free: 3.742 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.586e-05/0.1527, allocations: 4.188 kB / 0.5202 GB, free: 3.738 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.764e-05/0.1528, allocations: 46.73 kB / 0.5203 GB, free: 3.684 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.439e-05/0.1528, allocations: 16.84 kB / 0.5203 GB, free: 3.668 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003898/0.1532, allocations: 146.3 kB / 0.5204 GB, free: 3.5 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.858e-05/0.1532, allocations: 8.375 kB / 0.5205 GB, free: 3.492 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.921e-05/0.1533, allocations: 24.08 kB / 0.5205 GB, free: 3.469 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003308/0.1536, allocations: 133.6 kB / 0.5206 GB, free: 3.332 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.746e-05/0.1536, allocations: 0 / 0.5206 GB, free: 3.332 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.895e-05/0.1537, allocations: 4 kB / 0.5206 GB, free: 3.328 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.04e-06/0.1537, allocations: 8 kB / 0.5206 GB, free: 3.32 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002035/0.1539, allocations: 75.95 kB / 0.5207 GB, free: 3.246 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008072/0.1547, allocations: 411.4 kB / 0.5211 GB, free: 2.801 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002589/0.1549, allocations: 106.5 kB / 0.5212 GB, free: 2.688 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001162/0.155, allocations: 48.84 kB / 0.5212 GB, free: 2.637 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.401e-05/0.1551, allocations: 3.938 kB / 0.5212 GB, free: 2.633 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.45e-05/0.1551, allocations: 34.56 kB / 0.5213 GB, free: 2.59 MB / 398.1 MB Notification: Performance of pre-optimization done (n=13): time 3.547e-06/0.1551, allocations: 7.984 kB / 0.5213 GB, free: 2.582 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.001661/0.1568, allocations: 0.6597 MB / 0.5219 GB, free: 1.863 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.961e-05/0.1568, allocations: 55.41 kB / 0.522 GB, free: 1.797 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001674/0.157, allocations: 141.6 kB / 0.5221 GB, free: 1.648 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.588e-05/0.157, allocations: 25.7 kB / 0.5221 GB, free: 1.617 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001017/0.1571, allocations: 120.4 kB / 0.5222 GB, free: 1.496 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.418e-05/0.1572, allocations: 71.38 kB / 0.5223 GB, free: 1.426 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.538e-05/0.1573, allocations: 37.7 kB / 0.5223 GB, free: 1.383 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001753/0.1574, allocations: 322.8 kB / 0.5227 GB, free: 1.059 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000118/0.1575, allocations: 51.91 kB / 0.5227 GB, free: 1.008 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001396/0.1577, allocations: 75.34 kB / 0.5228 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002534/0.1579, allocations: 139.2 kB / 0.5229 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.1579, allocations: 0 / 0.5229 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004708/0.1584, allocations: 210.2 kB / 0.5231 GB, free: 0.5586 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.32e-05/0.1584, allocations: 8 kB / 0.5231 GB, free: 0.5508 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.1584, allocations: 0 / 0.5231 GB, free: 0.5508 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002034/0.1586, allocations: 40.83 kB / 0.5232 GB, free: 0.5078 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001944/0.1588, allocations: 35.98 kB / 0.5232 GB, free: 484 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001901/0.1607, allocations: 1.621 MB / 0.5248 GB, free: 14.74 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001245/0.1609, allocations: 7.938 kB / 0.5248 GB, free: 14.73 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.298e-05/0.1609, allocations: 8 kB / 0.5248 GB, free: 14.72 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (17): * Single equations (assignments): 16 * 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): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001678/0.1611, allocations: 129.8 kB / 0.5249 GB, free: 14.59 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.022e-05/0.1611, allocations: 11.94 kB / 0.5249 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.162e-05/0.1612, allocations: 21.06 kB / 0.5249 GB, free: 14.56 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.1612, allocations: 0 / 0.5249 GB, free: 14.56 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.809e-06/0.1612, allocations: 8.188 kB / 0.525 GB, free: 14.55 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.1612, allocations: 4.109 kB / 0.525 GB, free: 14.55 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009707/0.1621, allocations: 0.5068 MB / 0.5254 GB, free: 13.98 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.1622, allocations: 0 / 0.5254 GB, free: 13.98 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001864/0.1623, allocations: 31.98 kB / 0.5255 GB, free: 13.95 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001404/0.1625, allocations: 40.77 kB / 0.5255 GB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.897e-05/0.1625, allocations: 0 / 0.5255 GB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001389/0.1639, allocations: 1.37 MB / 0.5269 GB, free: 12.42 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.1639, allocations: 0 / 0.5269 GB, free: 12.42 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006438/0.1645, allocations: 341 kB / 0.5272 GB, free: 12.07 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.476e-05/0.1646, allocations: 15.97 kB / 0.5272 GB, free: 12.05 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.304e-05/0.1646, allocations: 4 kB / 0.5272 GB, free: 12.05 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001113/0.1647, allocations: 11.94 kB / 0.5272 GB, free: 12.04 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.608e-05/0.1648, allocations: 12.09 kB / 0.5272 GB, free: 12.02 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.386e-05/0.1648, allocations: 12 kB / 0.5272 GB, free: 12.01 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001117/0.1649, allocations: 109.8 kB / 0.5273 GB, free: 11.91 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1649, allocations: 0 / 0.5273 GB, free: 11.91 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003943/0.1653, allocations: 40 kB / 0.5274 GB, free: 11.87 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (J1.phi,J1.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 (16): * Single equations (assignments): 15 * 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): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001004/0.1663, allocations: 0.8748 MB / 0.5282 GB, free: 10.96 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006499/0.167, allocations: 262.8 kB / 0.5285 GB, free: 10.69 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.167, allocations: 4 kB / 0.5285 GB, free: 10.69 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003552/0.1673, allocations: 182.6 kB / 0.5287 GB, free: 10.5 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004118/0.1677, allocations: 18.11 kB / 0.5287 GB, free: 10.48 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003176/0.1709, allocations: 2.066 MB / 0.5307 GB, free: 8.301 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001584/0.1711, allocations: 107.7 kB / 0.5308 GB, free: 8.176 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.449e-05/0.1711, allocations: 9.422 kB / 0.5308 GB, free: 8.168 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001021/0.1712, allocations: 47.36 kB / 0.5309 GB, free: 8.121 MB / 414.1 MB Notification: Performance of SimCode: time 1.012e-06/0.1712, allocations: 0 / 0.5309 GB, free: 8.121 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03388/0.2051, allocations: 3.688 MB / 0.5345 GB, free: 4.426 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.65/12.85, allocations: 8.062 kB / 0.5345 GB, free: 4.418 MB / 414.1 MB " [Timeout remaining time 647] (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219912 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.264094932936132]