Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.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) 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(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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.First") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001122/0.001123, allocations: 93.55 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001362/0.001362, allocations: 205.5 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.408/1.408, allocations: 227.2 MB / 245.9 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002268/0.0002268, allocations: 4 kB / 306.6 MB, free: 1.418 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09607/0.09631, allocations: 51.49 MB / 358.1 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.002592/0.09896, allocations: 1.893 MB / 359.9 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001121/0.1001, allocations: 0.6082 MB / 360.6 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001672/0.1003, allocations: 7.938 kB / 360.6 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 6.387e-05/0.1004, allocations: 19.84 kB / 360.6 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002372/0.1006, allocations: 87.75 kB / 360.7 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002195/0.1009, allocations: 43.94 kB / 360.7 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003194/0.1012, allocations: 191.5 kB / 360.9 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001749/0.1014, allocations: 81.27 kB / 361 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002176/0.1016, allocations: 91.7 kB / 361.1 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001607/0.1018, allocations: 99.48 kB / 361.2 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.611e-05/0.1018, allocations: 12 kB / 361.2 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.858e-05/0.1019, allocations: 16 kB / 361.2 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.43e-05/0.1019, allocations: 35.83 kB / 361.2 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.669e-05/0.102, allocations: 69.58 kB / 361.3 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001994/0.1022, allocations: 191.7 kB / 361.5 MB, free: 10.47 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.084e-06/0.1022, allocations: 3.938 kB / 361.5 MB, free: 10.47 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1022, allocations: 4 kB / 361.5 MB, free: 10.46 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.019e-05/0.1022, allocations: 0 / 361.5 MB, free: 10.46 MB / 302.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.000716/0.103, allocations: 0.4897 MB / 362 MB, free: 9.93 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.766e-05/0.103, allocations: 8.031 kB / 362 MB, free: 9.922 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001837/0.1032, allocations: 35.7 kB / 362 MB, free: 9.887 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002945/0.1035, allocations: 235.4 kB / 362.3 MB, free: 9.613 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.192e-05/0.1035, allocations: 16.44 kB / 362.3 MB, free: 9.598 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.956e-05/0.1036, allocations: 35.86 kB / 362.3 MB, free: 9.562 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003463/0.1039, allocations: 187.3 kB / 362.5 MB, free: 9.371 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.688e-05/0.104, allocations: 0 / 362.5 MB, free: 9.371 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.281e-05/0.104, allocations: 15.94 kB / 362.5 MB, free: 9.355 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/0.104, allocations: 4 kB / 362.5 MB, free: 9.352 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002741/0.1043, allocations: 145.7 kB / 362.6 MB, free: 9.207 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009531/0.1052, allocations: 0.6308 MB / 363.3 MB, free: 8.527 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002949/0.1056, allocations: 178.6 kB / 363.5 MB, free: 8.344 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.113e-05/0.1056, allocations: 4 kB / 363.5 MB, free: 8.34 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.304e-05/0.1056, allocations: 38.56 kB / 363.5 MB, free: 8.293 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.563e-06/0.1056, allocations: 0 / 363.5 MB, free: 8.293 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.001841/0.1075, allocations: 1.085 MB / 364.6 MB, free: 7.121 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.674e-05/0.1075, allocations: 55.41 kB / 364.6 MB, free: 7.055 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001683/0.1077, allocations: 180 kB / 364.8 MB, free: 6.871 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.198e-05/0.1077, allocations: 29.7 kB / 364.8 MB, free: 6.836 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.06e-05/0.1078, allocations: 140.7 kB / 365 MB, free: 6.695 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.122e-05/0.1079, allocations: 122.2 kB / 365.1 MB, free: 6.574 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.136e-05/0.1079, allocations: 4 kB / 365.1 MB, free: 6.57 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001262/0.1081, allocations: 334.8 kB / 365.4 MB, free: 6.234 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001423/0.1082, allocations: 79.7 kB / 365.5 MB, free: 6.156 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001567/0.1084, allocations: 102.8 kB / 365.6 MB, free: 6.047 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001655/0.1086, allocations: 81.41 kB / 365.7 MB, free: 5.969 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.182e-06/0.1086, allocations: 0 / 365.7 MB, free: 5.969 MB / 302.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004873/0.1091, allocations: 299.9 kB / 366 MB, free: 5.668 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.69e-05/0.1091, allocations: 8 kB / 366 MB, free: 5.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.461e-06/0.1091, allocations: 0 / 366 MB, free: 5.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001634/0.1093, allocations: 40.8 kB / 366 MB, free: 5.617 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002499/0.1095, allocations: 63.97 kB / 366.1 MB, free: 5.555 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001373/0.1109, allocations: 1.577 MB / 367.7 MB, free: 3.84 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001239/0.1111, allocations: 8.031 kB / 367.7 MB, free: 3.832 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.88e-05/0.1111, allocations: 12 kB / 367.7 MB, free: 3.82 MB / 302.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.0001314/0.1112, allocations: 141.8 kB / 367.8 MB, free: 3.672 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.304e-05/0.1113, allocations: 23.67 kB / 367.8 MB, free: 3.648 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.211e-05/0.1113, allocations: 38.58 kB / 367.9 MB, free: 3.613 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.1113, allocations: 4 kB / 367.9 MB, free: 3.609 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.1114, allocations: 4.062 kB / 367.9 MB, free: 3.605 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.141e-06/0.1114, allocations: 3.984 kB / 367.9 MB, free: 3.602 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001094/0.1125, allocations: 0.7785 MB / 368.7 MB, free: 2.746 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.1125, allocations: 0 / 368.7 MB, free: 2.746 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002623/0.1127, allocations: 67.86 kB / 368.7 MB, free: 2.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000113/0.1129, allocations: 28.84 kB / 368.8 MB, free: 2.648 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.014e-05/0.1129, allocations: 8.094 kB / 368.8 MB, free: 2.641 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001084/0.114, allocations: 1.387 MB / 370.2 MB, free: 1.121 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.114, allocations: 4.062 kB / 370.2 MB, free: 1.117 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006902/0.1147, allocations: 0.5229 MB / 370.7 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.104e-05/0.1148, allocations: 92.83 kB / 370.8 MB, free: 448 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.093e-05/0.1148, allocations: 11.95 kB / 370.8 MB, free: 436 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001411/0.115, allocations: 12.03 kB / 370.8 MB, free: 424 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.368e-05/0.115, allocations: 27.91 kB / 370.8 MB, free: 396 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.382e-05/0.1151, allocations: 12 kB / 370.8 MB, free: 384 kB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000101/0.1152, allocations: 131.5 kB / 371 MB, free: 252 kB / 302.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1152, allocations: 3.938 kB / 371 MB, free: 248 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003945/0.1156, allocations: 64 kB / 371 MB, free: 184 kB / 302.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.0001332/0.1157, allocations: 111.2 kB / 371.1 MB, free: 64 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.1523/0.268, allocations: 330.4 kB / 371.5 MB, free: 19.54 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/0.2681, allocations: 0.5312 kB / 371.5 MB, free: 19.54 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004344/0.2685, allocations: 241.9 kB / 371.7 MB, free: 19.43 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004411/0.269, allocations: 34.72 kB / 371.7 MB, free: 19.43 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001445/0.2704, allocations: 0.871 MB / 372.6 MB, free: 18.97 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002385/0.2707, allocations: 0.7655 MB / 373.4 MB, free: 18.26 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001134/0.2708, allocations: 25.89 kB / 373.4 MB, free: 18.26 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.974e-05/0.2709, allocations: 22.25 kB / 373.4 MB, free: 18.25 MB / 302.1 MB Notification: Performance of SimCode: time 8.61e-07/0.2709, allocations: 0 / 373.4 MB, free: 18.25 MB / 302.1 MB Notification: Performance of Templates: time 0.007778/0.2787, allocations: 2.413 MB / 375.8 MB, free: 18.09 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/First/First.csv","../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches