Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001413/0.001413, allocations: 110.4 kB / 17.78 MB, free: 5.289 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.001737/0.001737, allocations: 187.1 kB / 18.71 MB, free: 4.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.42/1.42, allocations: 222.9 MB / 242.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2172/0.2172, allocations: 44.18 MB / 336.7 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 67.89 kB / 470.5 MB, free: 13.19 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4402/0.4414, allocations: 60.82 MB / 0.5189 GB, free: 3.598 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003324/0.4448, allocations: 1.89 MB / 0.5207 GB, free: 2.289 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008313/0.4457, allocations: 0.4962 MB / 0.5212 GB, free: 1.93 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001026/0.4458, allocations: 4.125 kB / 0.5212 GB, free: 1.93 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000116/0.4459, allocations: 26.28 kB / 0.5212 GB, free: 1.91 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.17e-05/0.446, allocations: 38.3 kB / 0.5213 GB, free: 1.883 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001503/0.4462, allocations: 38.72 kB / 0.5213 GB, free: 1.859 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001737/0.4464, allocations: 148.7 kB / 0.5215 GB, free: 1.785 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001589/0.4465, allocations: 58.25 kB / 0.5215 GB, free: 1.754 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001089/0.4466, allocations: 63.48 kB / 0.5216 GB, free: 1.723 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001074/0.4467, allocations: 62.95 kB / 0.5216 GB, free: 1.691 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.51e-05/0.4468, allocations: 15.72 kB / 0.5217 GB, free: 1.688 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.682e-05/0.4468, allocations: 12 kB / 0.5217 GB, free: 1.688 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.98e-05/0.4468, allocations: 23.89 kB / 0.5217 GB, free: 1.672 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.849e-05/0.4469, allocations: 71.06 kB / 0.5218 GB, free: 1.629 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002406/0.4472, allocations: 153.8 kB / 0.5219 GB, free: 1.57 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.4472, allocations: 1.344 kB / 0.5219 GB, free: 1.57 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.4472, allocations: 0 / 0.5219 GB, free: 1.57 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.417e-06/0.4472, allocations: 4 kB / 0.5219 GB, free: 1.566 MB / 382.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.0004982/0.4477, allocations: 425.5 kB / 0.5223 GB, free: 1.164 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.785e-05/0.4478, allocations: 10.95 kB / 0.5223 GB, free: 1.164 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.706e-05/0.4478, allocations: 16 kB / 0.5223 GB, free: 1.156 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001849/0.448, allocations: 204.7 kB / 0.5225 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.455e-05/0.448, allocations: 9.875 kB / 0.5225 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.499e-05/0.4481, allocations: 17.62 kB / 0.5226 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002836/0.4484, allocations: 137.7 kB / 0.5227 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.704e-05/0.4484, allocations: 0.8438 kB / 0.5227 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.67e-05/0.4484, allocations: 5.031 kB / 0.5227 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.975e-06/0.4484, allocations: 4.188 kB / 0.5227 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001959/0.4486, allocations: 76.61 kB / 0.5228 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006506/0.4493, allocations: 474.9 kB / 0.5232 GB, free: 464 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002085/0.4495, allocations: 126.3 kB / 0.5233 GB, free: 396 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001136/0.4496, allocations: 59.62 kB / 0.5234 GB, free: 368 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.852e-05/0.4497, allocations: 2.281 kB / 0.5234 GB, free: 368 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.935e-05/0.4497, allocations: 32.17 kB / 0.5234 GB, free: 328 kB / 382.1 MB Notification: Performance of pre-optimization done (n=13): time 1.292e-06/0.4497, allocations: 0 / 0.5234 GB, free: 328 kB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.001438/0.4511, allocations: 0.8123 MB / 0.5242 GB, free: 15.7 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.752e-05/0.4512, allocations: 54 kB / 0.5243 GB, free: 15.63 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001383/0.4513, allocations: 138.4 kB / 0.5244 GB, free: 15.52 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.08e-05/0.4514, allocations: 35.05 kB / 0.5244 GB, free: 15.48 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.305e-05/0.4514, allocations: 110.5 kB / 0.5246 GB, free: 15.38 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.774e-05/0.4515, allocations: 68.92 kB / 0.5246 GB, free: 15.32 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.389e-05/0.4516, allocations: 35.81 kB / 0.5247 GB, free: 15.29 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001006/0.4517, allocations: 321.9 kB / 0.525 GB, free: 14.98 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001032/0.4518, allocations: 45.69 kB / 0.525 GB, free: 14.96 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001225/0.4519, allocations: 83.34 kB / 0.5251 GB, free: 14.91 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002217/0.4521, allocations: 135.3 kB / 0.5252 GB, free: 14.82 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.012e-06/0.4521, allocations: 0 / 0.5252 GB, free: 14.82 MB / 398.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003766/0.4525, allocations: 207.5 kB / 0.5254 GB, free: 14.72 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.862e-05/0.4526, allocations: 13.5 kB / 0.5254 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.4526, allocations: 6.797 kB / 0.5254 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001695/0.4527, allocations: 39.39 kB / 0.5255 GB, free: 14.69 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001717/0.4529, allocations: 37.08 kB / 0.5255 GB, free: 14.69 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001448/0.4544, allocations: 1.738 MB / 0.5272 GB, free: 13.02 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.143e-05/0.4545, allocations: 7.781 kB / 0.5272 GB, free: 13.02 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.427e-05/0.4545, allocations: 5.5 kB / 0.5272 GB, free: 13.02 MB / 398.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.0001103/0.4546, allocations: 129.4 kB / 0.5273 GB, free: 12.89 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.089e-05/0.4547, allocations: 14.02 kB / 0.5273 GB, free: 12.88 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.656e-05/0.4547, allocations: 21.23 kB / 0.5274 GB, free: 12.87 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.648e-06/0.4547, allocations: 6.688 kB / 0.5274 GB, free: 12.87 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.663e-06/0.4547, allocations: 2.078 kB / 0.5274 GB, free: 12.87 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.4547, allocations: 0.7031 kB / 0.5274 GB, free: 12.87 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000823/0.4556, allocations: 0.5477 MB / 0.5279 GB, free: 12.45 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.4556, allocations: 0 / 0.5279 GB, free: 12.45 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001716/0.4557, allocations: 36.89 kB / 0.5279 GB, free: 12.44 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001046/0.4559, allocations: 30.22 kB / 0.528 GB, free: 12.43 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.585e-05/0.4559, allocations: 5.375 kB / 0.528 GB, free: 12.43 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001097/0.457, allocations: 1.483 MB / 0.5294 GB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.457, allocations: 1.375 kB / 0.5294 GB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005173/0.4575, allocations: 343.9 kB / 0.5298 GB, free: 10.73 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.499e-05/0.4576, allocations: 93.67 kB / 0.5298 GB, free: 10.62 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.382e-05/0.4576, allocations: 5.922 kB / 0.5299 GB, free: 10.62 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.813e-05/0.4577, allocations: 7.359 kB / 0.5299 GB, free: 10.62 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.409e-05/0.4578, allocations: 16.5 kB / 0.5299 GB, free: 10.61 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.336e-05/0.4578, allocations: 11.83 kB / 0.5299 GB, free: 10.61 MB / 398.1 MB Notification: Performance of sorting global known variables: time 9.017e-05/0.4579, allocations: 111.2 kB / 0.53 GB, free: 10.52 MB / 398.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.4579, allocations: 0 / 0.53 GB, free: 10.52 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003342/0.4583, allocations: 38.75 kB / 0.53 GB, free: 10.52 MB / 398.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.0001189/0.4584, allocations: 100.7 kB / 0.5301 GB, free: 10.42 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005735/0.459, allocations: 260.2 kB / 0.5304 GB, free: 10.26 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.219e-06/0.459, allocations: 1.094 kB / 0.5304 GB, free: 10.26 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000278/0.4593, allocations: 198.8 kB / 0.5306 GB, free: 10.12 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003514/0.4596, allocations: 26.38 kB / 0.5306 GB, free: 10.11 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008875/0.4605, allocations: 435.4 kB / 0.531 GB, free: 9.793 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00031/0.4609, allocations: 0.7178 MB / 0.5317 GB, free: 9.094 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.564e-05/0.4609, allocations: 14.75 kB / 0.5317 GB, free: 9.09 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.237e-05/0.461, allocations: 16.19 kB / 0.5317 GB, free: 9.082 MB / 398.1 MB Notification: Performance of SimCode: time 2.51e-07/0.461, allocations: 0 / 0.5317 GB, free: 9.082 MB / 398.1 MB Notification: Performance of Templates: time 0.004942/0.4659, allocations: 1.679 MB / 0.5334 GB, free: 8.305 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches