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.001354/0.001354, allocations: 113.2 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.001447/0.001447, allocations: 207.8 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.384/1.384, 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.2268/0.2268, allocations: 46.11 MB / 344.3 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001357/0.001357, allocations: 79.88 kB / 481.3 MB, free: 4.109 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4482/0.4495, allocations: 62.43 MB / 0.531 GB, free: 13.63 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003809/0.4534, allocations: 1.917 MB / 0.5328 GB, free: 12.14 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001184/0.4546, allocations: 0.559 MB / 0.5334 GB, free: 11.69 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001232/0.4547, allocations: 6.75 kB / 0.5334 GB, free: 11.68 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001572/0.4549, allocations: 18.55 kB / 0.5334 GB, free: 11.67 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001099/0.455, allocations: 39.75 kB / 0.5335 GB, free: 11.63 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002826/0.4553, allocations: 48.14 kB / 0.5335 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002422/0.4556, allocations: 154.4 kB / 0.5336 GB, free: 11.5 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002126/0.4558, allocations: 63.7 kB / 0.5337 GB, free: 11.46 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001683/0.456, allocations: 67.27 kB / 0.5338 GB, free: 11.42 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001239/0.4561, allocations: 62.95 kB / 0.5338 GB, free: 11.38 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.797e-05/0.4561, allocations: 12.38 kB / 0.5338 GB, free: 11.38 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.71e-05/0.4562, allocations: 17.75 kB / 0.5339 GB, free: 11.38 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.113e-05/0.4562, allocations: 24.05 kB / 0.5339 GB, free: 11.36 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 8.711e-05/0.4563, allocations: 69.52 kB / 0.534 GB, free: 11.31 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002968/0.4566, allocations: 165.7 kB / 0.5341 GB, free: 11.19 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.993e-06/0.4567, allocations: 4 kB / 0.5341 GB, free: 11.19 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.404e-06/0.4567, allocations: 0 / 0.5341 GB, free: 11.19 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.428e-05/0.4567, allocations: 1.031 kB / 0.5341 GB, free: 11.19 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.0007119/0.4574, allocations: 434 kB / 0.5345 GB, free: 10.76 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.179e-05/0.4575, allocations: 8.938 kB / 0.5345 GB, free: 10.76 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001883/0.4577, allocations: 25.73 kB / 0.5346 GB, free: 10.75 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003039/0.458, allocations: 210.5 kB / 0.5348 GB, free: 10.52 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.598e-05/0.458, allocations: 14.03 kB / 0.5348 GB, free: 10.51 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.198e-05/0.4581, allocations: 20.98 kB / 0.5348 GB, free: 10.5 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003365/0.4584, allocations: 127.8 kB / 0.5349 GB, free: 10.41 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.854e-05/0.4584, allocations: 0 / 0.5349 GB, free: 10.41 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.069e-05/0.4585, allocations: 4.969 kB / 0.5349 GB, free: 10.41 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.007e-06/0.4585, allocations: 3.344 kB / 0.5349 GB, free: 10.41 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002175/0.4587, allocations: 81.03 kB / 0.535 GB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007769/0.4595, allocations: 468.7 kB / 0.5355 GB, free: 9.949 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002511/0.4597, allocations: 120.4 kB / 0.5356 GB, free: 9.879 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001337/0.4599, allocations: 62.53 kB / 0.5356 GB, free: 9.844 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.534e-05/0.4599, allocations: 1.219 kB / 0.5356 GB, free: 9.844 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.21e-05/0.46, allocations: 39.84 kB / 0.5357 GB, free: 9.797 MB / 398.1 MB Notification: Performance of pre-optimization done (n=13): time 1.623e-06/0.46, allocations: 0 / 0.5357 GB, free: 9.797 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.001855/0.4618, allocations: 0.8104 MB / 0.5365 GB, free: 9.129 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.462e-05/0.4619, allocations: 57.88 kB / 0.5365 GB, free: 9.062 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001722/0.4621, allocations: 142.2 kB / 0.5366 GB, free: 8.941 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.514e-05/0.4621, allocations: 30.73 kB / 0.5367 GB, free: 8.906 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.694e-05/0.4622, allocations: 117.8 kB / 0.5368 GB, free: 8.789 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.437e-05/0.4623, allocations: 71 kB / 0.5369 GB, free: 8.727 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.539e-05/0.4624, allocations: 33.47 kB / 0.5369 GB, free: 8.699 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001561/0.4625, allocations: 330 kB / 0.5372 GB, free: 8.371 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001145/0.4627, allocations: 43.69 kB / 0.5372 GB, free: 8.352 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001462/0.4628, allocations: 87.72 kB / 0.5373 GB, free: 8.285 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002528/0.4631, allocations: 128.5 kB / 0.5374 GB, free: 8.203 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.4631, allocations: 0 / 0.5374 GB, free: 8.203 MB / 398.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004455/0.4635, allocations: 218.2 kB / 0.5377 GB, free: 8.07 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.567e-05/0.4636, allocations: 9.344 kB / 0.5377 GB, free: 8.066 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.117e-05/0.4636, allocations: 5.156 kB / 0.5377 GB, free: 8.062 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002095/0.4638, allocations: 42.08 kB / 0.5377 GB, free: 8.039 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001825/0.464, allocations: 30.67 kB / 0.5377 GB, free: 8.035 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001747/0.4658, allocations: 1.733 MB / 0.5394 GB, free: 6.324 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.939e-05/0.4659, allocations: 11.64 kB / 0.5394 GB, free: 6.316 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.398e-05/0.4659, allocations: 12.16 kB / 0.5395 GB, free: 6.309 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.0001228/0.466, allocations: 125.2 kB / 0.5396 GB, free: 6.184 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.856e-05/0.4661, allocations: 14.62 kB / 0.5396 GB, free: 6.176 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.925e-05/0.4661, allocations: 19.88 kB / 0.5396 GB, free: 6.164 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.891e-06/0.4661, allocations: 6.469 kB / 0.5396 GB, free: 6.16 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.217e-06/0.4661, allocations: 5.047 kB / 0.5396 GB, free: 6.156 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.4661, allocations: 0 / 0.5396 GB, free: 6.156 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007957/0.4669, allocations: 0.5529 MB / 0.5402 GB, free: 5.668 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/0.467, allocations: 5.031 kB / 0.5402 GB, free: 5.664 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001661/0.4671, allocations: 35.39 kB / 0.5402 GB, free: 5.656 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001018/0.4672, allocations: 31.42 kB / 0.5402 GB, free: 5.637 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.299e-05/0.4673, allocations: 5.562 kB / 0.5402 GB, free: 5.633 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001184/0.4684, allocations: 1.478 MB / 0.5417 GB, free: 4.133 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.432e-06/0.4685, allocations: 5.078 kB / 0.5417 GB, free: 4.129 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005179/0.469, allocations: 343.5 kB / 0.542 GB, free: 3.879 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.907e-05/0.4691, allocations: 93.5 kB / 0.5421 GB, free: 3.773 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.787e-05/0.4691, allocations: 1.156 kB / 0.5421 GB, free: 3.773 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.459e-05/0.4692, allocations: 11.59 kB / 0.5421 GB, free: 3.766 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.034e-05/0.4693, allocations: 13.55 kB / 0.5421 GB, free: 3.758 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.431e-05/0.4693, allocations: 8.531 kB / 0.5421 GB, free: 3.754 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001086/0.4694, allocations: 111.5 kB / 0.5422 GB, free: 3.664 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4694, allocations: 0 / 0.5422 GB, free: 3.664 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003637/0.4698, allocations: 41.91 kB / 0.5423 GB, free: 3.656 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.0001276/0.4699, allocations: 92.09 kB / 0.5424 GB, free: 3.57 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005577/0.4705, allocations: 267.6 kB / 0.5426 GB, free: 3.383 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.4705, allocations: 0 / 0.5426 GB, free: 3.383 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002715/0.4708, allocations: 203 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.0003474/0.4711, allocations: 25.69 kB / 0.5428 GB, free: 3.211 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008245/0.472, allocations: 450 kB / 0.5433 GB, free: 2.867 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003133/0.4723, allocations: 0.7269 MB / 0.544 GB, free: 2.141 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.774e-05/0.4724, allocations: 12.52 kB / 0.544 GB, free: 2.137 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.911e-05/0.4724, allocations: 15.09 kB / 0.544 GB, free: 2.129 MB / 398.1 MB Notification: Performance of SimCode: time 2.2e-07/0.4724, allocations: 0 / 0.544 GB, free: 2.129 MB / 398.1 MB Notification: Performance of Templates: time 0.004799/0.4772, allocations: 1.621 MB / 0.5456 GB, free: 1.332 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