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.002026/0.002026, allocations: 118.8 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002007/0.002008, allocations: 201.2 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.492/1.492, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2359/0.2359, allocations: 46.1 MB / 344.3 MB, free: 11.53 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001607/0.001607, allocations: 79.86 kB / 481.3 MB, free: 4.102 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4664/0.468, allocations: 62.43 MB / 0.531 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003547/0.4716, allocations: 1.911 MB / 0.5328 GB, free: 12.13 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001053/0.4727, allocations: 0.5632 MB / 0.5334 GB, free: 11.68 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001052/0.4728, allocations: 2.75 kB / 0.5334 GB, free: 11.68 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000146/0.473, allocations: 26.53 kB / 0.5334 GB, free: 11.65 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 9.38e-05/0.4731, allocations: 39.7 kB / 0.5335 GB, free: 11.62 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002479/0.4733, allocations: 44.2 kB / 0.5335 GB, free: 11.58 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002228/0.4736, allocations: 158.4 kB / 0.5336 GB, free: 11.48 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000182/0.4738, allocations: 59.16 kB / 0.5337 GB, free: 11.45 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001721/0.4739, allocations: 68.64 kB / 0.5338 GB, free: 11.41 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000121/0.4741, allocations: 61.58 kB / 0.5338 GB, free: 11.37 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.431e-05/0.4741, allocations: 12.38 kB / 0.5338 GB, free: 11.37 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.59e-05/0.4742, allocations: 17.75 kB / 0.5339 GB, free: 11.37 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.206e-05/0.4742, allocations: 31.97 kB / 0.5339 GB, free: 11.34 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 9.316e-05/0.4743, allocations: 69.61 kB / 0.534 GB, free: 11.29 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002472/0.4746, allocations: 159.8 kB / 0.5341 GB, free: 11.18 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.4746, allocations: 0 / 0.5341 GB, free: 11.18 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.106e-06/0.4746, allocations: 0 / 0.5341 GB, free: 11.18 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.061e-05/0.4746, allocations: 4 kB / 0.5341 GB, free: 11.18 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.000631/0.4752, allocations: 435.1 kB / 0.5345 GB, free: 10.75 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/0.4753, allocations: 8.688 kB / 0.5345 GB, free: 10.75 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001708/0.4755, allocations: 18.69 kB / 0.5346 GB, free: 10.75 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003071/0.4758, allocations: 217.1 kB / 0.5348 GB, free: 10.51 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.82e-05/0.4758, allocations: 9.844 kB / 0.5348 GB, free: 10.51 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.405e-05/0.4759, allocations: 16.94 kB / 0.5348 GB, free: 10.5 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003094/0.4762, allocations: 131.4 kB / 0.5349 GB, free: 10.41 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.927e-05/0.4762, allocations: 4.938 kB / 0.5349 GB, free: 10.41 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.835e-05/0.4762, allocations: 5.875 kB / 0.5349 GB, free: 10.4 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.055e-06/0.4762, allocations: 2.5 kB / 0.5349 GB, free: 10.4 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001989/0.4764, allocations: 84.14 kB / 0.535 GB, free: 10.36 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000749/0.4772, allocations: 461.7 kB / 0.5354 GB, free: 9.945 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002526/0.4775, allocations: 128.1 kB / 0.5356 GB, free: 9.867 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001194/0.4776, allocations: 54.31 kB / 0.5356 GB, free: 9.84 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.435e-05/0.4776, allocations: 13 kB / 0.5356 GB, free: 9.828 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.85e-05/0.4777, allocations: 36.66 kB / 0.5357 GB, free: 9.785 MB / 398.1 MB Notification: Performance of pre-optimization done (n=13): time 1.312e-06/0.4777, allocations: 0 / 0.5357 GB, free: 9.785 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.001545/0.4792, allocations: 0.8087 MB / 0.5365 GB, free: 9.117 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.345e-05/0.4793, allocations: 57.66 kB / 0.5365 GB, free: 9.051 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001333/0.4794, allocations: 147.5 kB / 0.5366 GB, free: 8.926 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.039e-05/0.4794, allocations: 30.83 kB / 0.5367 GB, free: 8.891 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.95e-05/0.4795, allocations: 109.5 kB / 0.5368 GB, free: 8.781 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.444e-05/0.4796, allocations: 70.66 kB / 0.5369 GB, free: 8.719 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.096e-05/0.4797, allocations: 37.58 kB / 0.5369 GB, free: 8.688 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001147/0.4798, allocations: 322.5 kB / 0.5372 GB, free: 8.367 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001049/0.4799, allocations: 38.64 kB / 0.5372 GB, free: 8.352 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001235/0.48, allocations: 89.47 kB / 0.5373 GB, free: 8.281 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002447/0.4803, allocations: 132.2 kB / 0.5374 GB, free: 8.195 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.242e-06/0.4803, allocations: 0 / 0.5374 GB, free: 8.195 MB / 398.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003784/0.4807, allocations: 202.2 kB / 0.5376 GB, free: 8.078 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.29e-05/0.4807, allocations: 13.44 kB / 0.5376 GB, free: 8.07 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.221e-06/0.4807, allocations: 1.188 kB / 0.5376 GB, free: 8.07 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001771/0.4809, allocations: 42.42 kB / 0.5377 GB, free: 8.047 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001753/0.4811, allocations: 34.8 kB / 0.5377 GB, free: 8.039 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001612/0.4827, allocations: 1.742 MB / 0.5394 GB, free: 6.32 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.987e-05/0.4828, allocations: 6.344 kB / 0.5394 GB, free: 6.316 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.53e-05/0.4828, allocations: 4.438 kB / 0.5394 GB, free: 6.316 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.000134/0.483, allocations: 129.2 kB / 0.5396 GB, free: 6.188 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.36e-05/0.483, allocations: 10.97 kB / 0.5396 GB, free: 6.184 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.355e-05/0.4831, allocations: 23.23 kB / 0.5396 GB, free: 6.168 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.552e-06/0.4831, allocations: 6.469 kB / 0.5396 GB, free: 6.164 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/0.4831, allocations: 1.188 kB / 0.5396 GB, free: 6.164 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.4831, allocations: 4.031 kB / 0.5396 GB, free: 6.16 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008661/0.484, allocations: 0.5499 MB / 0.5401 GB, free: 5.676 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.484, allocations: 0 / 0.5401 GB, free: 5.676 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001874/0.4842, allocations: 35.86 kB / 0.5402 GB, free: 5.668 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001069/0.4843, allocations: 35.58 kB / 0.5402 GB, free: 5.645 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.198e-05/0.4843, allocations: 1.281 kB / 0.5402 GB, free: 5.645 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001117/0.4854, allocations: 1.481 MB / 0.5417 GB, free: 4.141 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/0.4855, allocations: 1.188 kB / 0.5417 GB, free: 4.141 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005393/0.486, allocations: 352.6 kB / 0.542 GB, free: 3.883 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.997e-05/0.4861, allocations: 88.45 kB / 0.5421 GB, free: 3.781 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.95e-05/0.4861, allocations: 6.281 kB / 0.5421 GB, free: 3.777 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.01e-05/0.4862, allocations: 2.312 kB / 0.5421 GB, free: 3.777 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.459e-05/0.4863, allocations: 26.69 kB / 0.5421 GB, free: 3.758 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.13e-05/0.4863, allocations: 3.5 kB / 0.5421 GB, free: 3.758 MB / 398.1 MB Notification: Performance of sorting global known variables: time 8.645e-05/0.4864, allocations: 111.7 kB / 0.5422 GB, free: 3.668 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4864, allocations: 0 / 0.5422 GB, free: 3.668 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003467/0.4867, allocations: 41.81 kB / 0.5423 GB, free: 3.66 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.0001317/0.4869, allocations: 99.56 kB / 0.5424 GB, free: 3.566 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005597/0.4874, allocations: 268.2 kB / 0.5426 GB, free: 3.379 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.377e-06/0.4875, allocations: 0 / 0.5426 GB, free: 3.379 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002799/0.4877, allocations: 198.5 kB / 0.5428 GB, free: 3.227 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003497/0.4881, allocations: 18.14 kB / 0.5428 GB, free: 3.219 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008378/0.489, allocations: 453.9 kB / 0.5432 GB, free: 2.871 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004852/0.4895, allocations: 0.7208 MB / 0.544 GB, free: 2.152 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.991e-05/0.4895, allocations: 15.7 kB / 0.544 GB, free: 2.145 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.928e-05/0.4896, allocations: 15.16 kB / 0.544 GB, free: 2.137 MB / 398.1 MB Notification: Performance of SimCode: time 2.21e-07/0.4896, allocations: 0 / 0.544 GB, free: 2.137 MB / 398.1 MB Notification: Performance of Templates: time 0.004989/0.4946, allocations: 1.671 MB / 0.5456 GB, free: 1.301 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