Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001254/0.001254, allocations: 118.8 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001553/0.001553, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.617/1.617, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2114/0.2114, allocations: 46.09 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001631/0.001631, allocations: 75.89 kB / 481.3 MB, free: 4.07 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4472/0.4489, allocations: 62.44 MB / 0.531 GB, free: 13.57 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003418/0.4523, allocations: 1.918 MB / 0.5328 GB, free: 12.08 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001012/0.4534, allocations: 0.5502 MB / 0.5334 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.918e-05/0.4535, allocations: 6.688 kB / 0.5334 GB, free: 11.63 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001403/0.4536, allocations: 18.55 kB / 0.5334 GB, free: 11.62 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001084/0.4538, allocations: 49.12 kB / 0.5335 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002461/0.454, allocations: 50.75 kB / 0.5335 GB, free: 11.53 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002071/0.4542, allocations: 151.8 kB / 0.5336 GB, free: 11.44 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001907/0.4544, allocations: 71.86 kB / 0.5337 GB, free: 11.4 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001835/0.4546, allocations: 63.06 kB / 0.5338 GB, free: 11.36 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000137/0.4548, allocations: 66.31 kB / 0.5338 GB, free: 11.32 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.925e-05/0.4548, allocations: 12.38 kB / 0.5339 GB, free: 11.32 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.091e-05/0.4549, allocations: 13.78 kB / 0.5339 GB, free: 11.32 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.471e-05/0.4549, allocations: 23.73 kB / 0.5339 GB, free: 11.3 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 7.931e-05/0.455, allocations: 78.5 kB / 0.534 GB, free: 11.24 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002467/0.4552, allocations: 151.6 kB / 0.5341 GB, free: 11.14 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.4552, allocations: 0 / 0.5341 GB, free: 11.14 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.4552, allocations: 0 / 0.5341 GB, free: 11.14 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.092e-06/0.4553, allocations: 4 kB / 0.5341 GB, free: 11.14 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.0006426/0.4559, allocations: 442.3 kB / 0.5345 GB, free: 10.7 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.101e-05/0.456, allocations: 9.875 kB / 0.5345 GB, free: 10.7 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001737/0.4561, allocations: 21.92 kB / 0.5346 GB, free: 10.7 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002788/0.4564, allocations: 209.1 kB / 0.5348 GB, free: 10.46 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.704e-05/0.4564, allocations: 10.16 kB / 0.5348 GB, free: 10.46 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.868e-05/0.4565, allocations: 17.34 kB / 0.5348 GB, free: 10.45 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003023/0.4568, allocations: 130.5 kB / 0.5349 GB, free: 10.36 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.412e-05/0.4568, allocations: 1.125 kB / 0.5349 GB, free: 10.36 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.086e-05/0.4568, allocations: 9.141 kB / 0.5349 GB, free: 10.36 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.965e-06/0.4569, allocations: 3.625 kB / 0.5349 GB, free: 10.36 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000206/0.4571, allocations: 79.89 kB / 0.535 GB, free: 10.32 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007316/0.4578, allocations: 465.9 kB / 0.5354 GB, free: 9.898 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002306/0.4581, allocations: 128.2 kB / 0.5356 GB, free: 9.82 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001159/0.4582, allocations: 53.72 kB / 0.5356 GB, free: 9.793 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.015e-05/0.4582, allocations: 1.375 kB / 0.5356 GB, free: 9.793 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.811e-05/0.4582, allocations: 35.94 kB / 0.5357 GB, free: 9.75 MB / 398.1 MB Notification: Performance of pre-optimization done (n=13): time 1.272e-06/0.4582, allocations: 0 / 0.5357 GB, free: 9.75 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.001717/0.46, allocations: 0.8163 MB / 0.5365 GB, free: 9.078 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.728e-05/0.46, allocations: 54.06 kB / 0.5365 GB, free: 9.016 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001691/0.4602, allocations: 150.9 kB / 0.5366 GB, free: 8.887 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.996e-05/0.4602, allocations: 25.7 kB / 0.5367 GB, free: 8.855 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.443e-05/0.4603, allocations: 118.2 kB / 0.5368 GB, free: 8.738 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.865e-05/0.4604, allocations: 70.23 kB / 0.5369 GB, free: 8.676 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.738e-05/0.4605, allocations: 33.59 kB / 0.5369 GB, free: 8.648 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001394/0.4606, allocations: 322.7 kB / 0.5372 GB, free: 8.328 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001166/0.4607, allocations: 47.44 kB / 0.5372 GB, free: 8.305 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001402/0.4609, allocations: 84.19 kB / 0.5373 GB, free: 8.238 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000243/0.4611, allocations: 136.2 kB / 0.5374 GB, free: 8.148 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.072e-06/0.4611, allocations: 1.125 kB / 0.5374 GB, free: 8.148 MB / 398.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004024/0.4616, allocations: 201.5 kB / 0.5376 GB, free: 8.031 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.451e-05/0.4616, allocations: 13.03 kB / 0.5377 GB, free: 8.023 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.4616, allocations: 1.156 kB / 0.5377 GB, free: 8.023 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000189/0.4618, allocations: 42.17 kB / 0.5377 GB, free: 8 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001811/0.462, allocations: 39.7 kB / 0.5377 GB, free: 7.988 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001633/0.4636, allocations: 1.737 MB / 0.5394 GB, free: 6.273 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.294e-05/0.4637, allocations: 3.156 kB / 0.5394 GB, free: 6.273 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.692e-05/0.4637, allocations: 12.22 kB / 0.5394 GB, free: 6.266 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.0001211/0.4639, allocations: 133.9 kB / 0.5396 GB, free: 6.133 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.713e-05/0.4639, allocations: 10.28 kB / 0.5396 GB, free: 6.129 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.045e-05/0.464, allocations: 23.92 kB / 0.5396 GB, free: 6.113 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/0.464, allocations: 5.281 kB / 0.5396 GB, free: 6.109 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.952e-06/0.464, allocations: 1.406 kB / 0.5396 GB, free: 6.109 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.464, allocations: 0 / 0.5396 GB, free: 6.109 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007694/0.4648, allocations: 0.5519 MB / 0.5401 GB, free: 5.625 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.4648, allocations: 1.219 kB / 0.5401 GB, free: 5.625 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001713/0.465, allocations: 34.48 kB / 0.5402 GB, free: 5.617 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001073/0.4651, allocations: 32.73 kB / 0.5402 GB, free: 5.598 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.275e-05/0.4651, allocations: 1 kB / 0.5402 GB, free: 5.598 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001125/0.4662, allocations: 1.477 MB / 0.5417 GB, free: 4.098 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.4662, allocations: 1.094 kB / 0.5417 GB, free: 4.098 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000513/0.4668, allocations: 344.2 kB / 0.542 GB, free: 3.848 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.661e-05/0.4668, allocations: 93.31 kB / 0.5421 GB, free: 3.742 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.972e-05/0.4669, allocations: 5.094 kB / 0.5421 GB, free: 3.738 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.686e-05/0.467, allocations: 3.25 kB / 0.5421 GB, free: 3.738 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.143e-05/0.467, allocations: 26.56 kB / 0.5421 GB, free: 3.719 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.173e-05/0.467, allocations: 7.391 kB / 0.5421 GB, free: 3.715 MB / 398.1 MB Notification: Performance of sorting global known variables: time 9.024e-05/0.4671, allocations: 115.2 kB / 0.5422 GB, free: 3.621 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4671, allocations: 0 / 0.5422 GB, free: 3.621 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003384/0.4675, allocations: 38.5 kB / 0.5423 GB, free: 3.617 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.0001333/0.4676, allocations: 95.94 kB / 0.5424 GB, free: 3.527 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005293/0.4682, allocations: 267.9 kB / 0.5426 GB, free: 3.34 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.4682, allocations: 0 / 0.5426 GB, free: 3.34 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002704/0.4685, allocations: 196.1 kB / 0.5428 GB, free: 3.188 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003379/0.4688, allocations: 23.61 kB / 0.5428 GB, free: 3.172 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007916/0.4696, allocations: 443.4 kB / 0.5432 GB, free: 2.836 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002876/0.4699, allocations: 0.7237 MB / 0.5439 GB, free: 2.113 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.215e-05/0.47, allocations: 17.89 kB / 0.544 GB, free: 2.105 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.486e-05/0.47, allocations: 12.94 kB / 0.544 GB, free: 2.098 MB / 398.1 MB Notification: Performance of SimCode: time 2.61e-07/0.47, allocations: 0 / 0.544 GB, free: 2.098 MB / 398.1 MB Notification: Performance of Templates: time 0.004853/0.4749, allocations: 1.635 MB / 0.5456 GB, free: 1.285 MB / 398.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches