Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.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 3.2.3+maint.om/package.mo", uses=false) 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.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(Modelica.Mechanics.Rotational.Examples.First,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper.phi_rel|damper.w_rel|inertia3.phi|inertia3.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First") translateModel(Modelica.Mechanics.Rotational.Examples.First,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper.phi_rel|damper.w_rel|inertia3.phi|inertia3.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001193/0.001193, allocations: 97.83 kB / 16.93 MB, free: 6.445 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.001211/0.001211, allocations: 182.8 kB / 17.83 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.421/1.421, allocations: 205.4 MB / 224 MB, free: 13.17 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004615/0.0004615, allocations: 8.781 kB / 280.7 MB, free: 3.762 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08287/0.08334, allocations: 47.59 MB / 328.3 MB, free: 4.105 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.002151/0.08553, allocations: 1.879 MB / 330.2 MB, free: 2.211 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008025/0.08635, allocations: 0.6013 MB / 330.8 MB, free: 1.602 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.377e-05/0.08645, allocations: 7.938 kB / 330.8 MB, free: 1.594 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 4.396e-05/0.08651, allocations: 23.83 kB / 330.8 MB, free: 1.57 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001672/0.08668, allocations: 83.77 kB / 330.9 MB, free: 1.488 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001609/0.08685, allocations: 43.94 kB / 331 MB, free: 1.445 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002338/0.08709, allocations: 191.6 kB / 331.1 MB, free: 1.258 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000156/0.08726, allocations: 77.3 kB / 331.2 MB, free: 1.184 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001231/0.08739, allocations: 95.58 kB / 331.3 MB, free: 1.09 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001225/0.08752, allocations: 95.55 kB / 331.4 MB, free: 0.9961 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.368e-05/0.08755, allocations: 12 kB / 331.4 MB, free: 0.9844 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.119e-05/0.08759, allocations: 12 kB / 331.4 MB, free: 0.9727 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 3.363e-05/0.08763, allocations: 39.83 kB / 331.5 MB, free: 0.9336 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 5.869e-05/0.08769, allocations: 65.58 kB / 331.5 MB, free: 0.8633 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001701/0.08787, allocations: 195.7 kB / 331.7 MB, free: 0.6719 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.405e-06/0.08788, allocations: 0 / 331.7 MB, free: 0.6719 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.08789, allocations: 0 / 331.7 MB, free: 0.6719 MB / 270.1 MB Notification: Performance of Transformations before backend: time 4.207e-06/0.0879, allocations: 0 / 331.7 MB, free: 0.6719 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0006215/0.08852, allocations: 494.8 kB / 332.2 MB, free: 140 kB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.071e-05/0.08856, allocations: 11.97 kB / 332.2 MB, free: 128 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.622e-05/0.08862, allocations: 23.72 kB / 332.2 MB, free: 104 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002576/0.08888, allocations: 239.3 kB / 332.5 MB, free: 15.83 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.103e-05/0.08891, allocations: 16.44 kB / 332.5 MB, free: 15.81 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.132e-05/0.08896, allocations: 24 kB / 332.5 MB, free: 15.79 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003285/0.08929, allocations: 191.3 kB / 332.7 MB, free: 15.59 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.594e-05/0.08932, allocations: 3.906 kB / 332.7 MB, free: 15.59 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.047e-05/0.08935, allocations: 12 kB / 332.7 MB, free: 15.58 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.803e-06/0.08936, allocations: 4 kB / 332.7 MB, free: 15.57 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002635/0.08963, allocations: 149.6 kB / 332.9 MB, free: 15.43 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008748/0.09051, allocations: 0.6308 MB / 333.5 MB, free: 14.75 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002914/0.09082, allocations: 178.5 kB / 333.7 MB, free: 14.57 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.769e-05/0.09084, allocations: 4 kB / 333.7 MB, free: 14.56 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.259e-05/0.09087, allocations: 38.59 kB / 333.7 MB, free: 14.52 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.553e-06/0.09088, allocations: 4 kB / 333.7 MB, free: 14.51 MB / 286.1 MB Notification: Performance of matching and sorting (n=32): time 0.001763/0.09265, allocations: 1.07 MB / 334.8 MB, free: 13.35 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.324e-05/0.0927, allocations: 59.41 kB / 334.8 MB, free: 13.28 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001707/0.09287, allocations: 190.8 kB / 335 MB, free: 13.09 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.136e-05/0.0929, allocations: 29.7 kB / 335.1 MB, free: 13.05 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.752e-05/0.093, allocations: 144.6 kB / 335.2 MB, free: 12.91 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.244e-05/0.09308, allocations: 114.3 kB / 335.3 MB, free: 12.79 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.041e-05/0.09309, allocations: 7.938 kB / 335.3 MB, free: 12.79 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001176/0.09322, allocations: 330.8 kB / 335.6 MB, free: 12.45 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001356/0.09336, allocations: 75.95 kB / 335.7 MB, free: 12.38 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001547/0.09352, allocations: 110.3 kB / 335.8 MB, free: 12.26 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000158/0.09369, allocations: 81.41 kB / 335.9 MB, free: 12.18 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.052e-06/0.0937, allocations: 0 / 335.9 MB, free: 12.18 MB / 286.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004792/0.09418, allocations: 299.1 kB / 336.2 MB, free: 11.88 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.588e-05/0.09421, allocations: 8 kB / 336.2 MB, free: 11.88 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.179e-06/0.09422, allocations: 0 / 336.2 MB, free: 11.88 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001527/0.09438, allocations: 36.84 kB / 336.2 MB, free: 11.84 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002481/0.09463, allocations: 67.89 kB / 336.3 MB, free: 11.77 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001332/0.09598, allocations: 1.577 MB / 337.9 MB, free: 10.05 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000116/0.09611, allocations: 12.09 kB / 337.9 MB, free: 10.04 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.761e-05/0.09613, allocations: 12 kB / 337.9 MB, free: 10.03 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (32): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001275/0.09627, allocations: 141.7 kB / 338 MB, free: 9.883 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.215e-05/0.09632, allocations: 23.7 kB / 338.1 MB, free: 9.859 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.502e-05/0.09639, allocations: 26.66 kB / 338.1 MB, free: 9.836 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.0964, allocations: 4 kB / 338.1 MB, free: 9.832 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.09641, allocations: 384 / 338.1 MB, free: 9.832 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.09642, allocations: 11.92 kB / 338.1 MB, free: 9.82 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001036/0.09746, allocations: 0.7897 MB / 338.9 MB, free: 8.953 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.09748, allocations: 0 / 338.9 MB, free: 8.953 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002537/0.09774, allocations: 59.91 kB / 339 MB, free: 8.895 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001071/0.09785, allocations: 32.84 kB / 339 MB, free: 8.859 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.739e-05/0.09788, allocations: 8 kB / 339 MB, free: 8.852 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001029/0.09892, allocations: 1.386 MB / 340.4 MB, free: 7.328 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.899e-06/0.09894, allocations: 3.984 kB / 340.4 MB, free: 7.324 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006809/0.09962, allocations: 0.5191 MB / 340.9 MB, free: 6.758 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.585e-05/0.09969, allocations: 96.83 kB / 341 MB, free: 6.645 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.936e-05/0.09973, allocations: 8 kB / 341 MB, free: 6.637 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001369/0.09987, allocations: 12.03 kB / 341 MB, free: 6.625 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.626e-05/0.09995, allocations: 19.97 kB / 341 MB, free: 6.605 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.478e-05/0.09997, allocations: 11.94 kB / 341.1 MB, free: 6.594 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001128/0.1001, allocations: 139.5 kB / 341.2 MB, free: 6.457 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.492e-06/0.1001, allocations: 0 / 341.2 MB, free: 6.457 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003808/0.1005, allocations: 67.94 kB / 341.3 MB, free: 6.391 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia3.phi,inertia3.w,damper.phi_rel,damper.w_rel) * 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 (29): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001365/0.1006, allocations: 107.2 kB / 341.4 MB, free: 6.277 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0006134/0.1012, allocations: 347.1 kB / 341.7 MB, free: 5.926 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.1013, allocations: 0 / 341.7 MB, free: 5.926 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003404/0.1016, allocations: 242.8 kB / 341.9 MB, free: 5.676 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003767/0.102, allocations: 40.05 kB / 342 MB, free: 5.637 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001306/0.1033, allocations: 0.8865 MB / 342.9 MB, free: 4.711 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003668/0.1037, allocations: 0.76 MB / 343.6 MB, free: 3.926 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 8.476e-05/0.1038, allocations: 26.27 kB / 343.7 MB, free: 3.902 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.279e-05/0.1038, allocations: 23.44 kB / 343.7 MB, free: 3.879 MB / 286.1 MB Notification: Performance of SimCode: time 2.345e-06/0.1039, allocations: 0 / 343.7 MB, free: 3.879 MB / 286.1 MB Notification: Performance of Templates: time 0.005957/0.1098, allocations: 2.405 MB / 346.1 MB, free: 1.477 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/First/First.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches