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.001445/0.001445, allocations: 109.8 kB / 17.33 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001809/0.001809, allocations: 205.8 kB / 18.26 MB, free: 5.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.354/1.354, allocations: 227.4 MB / 246.4 MB, free: 10.8 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001484/0.001484, allocations: 62.61 kB / 306.4 MB, free: 0.9531 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08793/0.08943, allocations: 50.53 MB / 357 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.003967/0.09344, allocations: 2.403 MB / 359.4 MB, free: 12.01 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0013/0.09477, allocations: 0.6467 MB / 360 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002066/0.095, allocations: 7.938 kB / 360 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001751/0.09521, allocations: 27.78 kB / 360.1 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002357/0.09546, allocations: 63.48 kB / 360.1 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003156/0.09578, allocations: 59.94 kB / 360.2 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003845/0.09618, allocations: 274.7 kB / 360.4 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002792/0.09647, allocations: 102.7 kB / 360.5 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003063/0.09679, allocations: 111.6 kB / 360.7 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002182/0.09702, allocations: 119.4 kB / 360.8 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.303e-05/0.09707, allocations: 20 kB / 360.8 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.195e-05/0.09717, allocations: 24 kB / 360.8 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.42e-05/0.09723, allocations: 51.83 kB / 360.9 MB, free: 10.51 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001416/0.09738, allocations: 119.4 kB / 361 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003405/0.09773, allocations: 271.3 kB / 361.2 MB, free: 10.12 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.09774, allocations: 0 / 361.2 MB, free: 10.12 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.056e-06/0.09775, allocations: 0 / 361.2 MB, free: 10.12 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.049e-05/0.09777, allocations: 3.938 kB / 361.2 MB, free: 10.12 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.0007921/0.09856, allocations: 0.5262 MB / 361.8 MB, free: 9.543 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.694e-05/0.09861, allocations: 12.03 kB / 361.8 MB, free: 9.531 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001782/0.09879, allocations: 36.64 kB / 361.8 MB, free: 9.496 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003041/0.09911, allocations: 240.6 kB / 362.1 MB, free: 9.219 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.891e-05/0.09914, allocations: 20.75 kB / 362.1 MB, free: 9.199 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.575e-05/0.09919, allocations: 20.38 kB / 362.1 MB, free: 9.18 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003773/0.09957, allocations: 199.5 kB / 362.3 MB, free: 8.977 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.758e-05/0.0996, allocations: 4 kB / 362.3 MB, free: 8.973 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.381e-05/0.09963, allocations: 12 kB / 362.3 MB, free: 8.961 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.524e-06/0.09965, allocations: 7.938 kB / 362.3 MB, free: 8.953 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002704/0.09992, allocations: 141.7 kB / 362.5 MB, free: 8.816 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001025/0.101, allocations: 0.6384 MB / 363.1 MB, free: 8.129 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000308/0.1013, allocations: 174.5 kB / 363.3 MB, free: 7.949 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001687/0.1015, allocations: 100.8 kB / 363.4 MB, free: 7.848 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.218e-05/0.1015, allocations: 8 kB / 363.4 MB, free: 7.84 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.261e-05/0.1015, allocations: 30.56 kB / 363.4 MB, free: 7.801 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.503e-06/0.1015, allocations: 0 / 363.4 MB, free: 7.801 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.001945/0.1035, allocations: 1.064 MB / 364.5 MB, free: 6.648 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.402e-05/0.1035, allocations: 59.34 kB / 364.5 MB, free: 6.578 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001718/0.1037, allocations: 186.2 kB / 364.7 MB, free: 6.387 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.029e-05/0.1037, allocations: 29.7 kB / 364.7 MB, free: 6.352 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.655e-05/0.1038, allocations: 140.6 kB / 364.9 MB, free: 6.211 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.717e-05/0.1039, allocations: 114.4 kB / 365 MB, free: 6.098 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.584e-05/0.104, allocations: 53.7 kB / 365 MB, free: 6.039 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001221/0.1041, allocations: 334.8 kB / 365.4 MB, free: 5.703 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001396/0.1043, allocations: 71.72 kB / 365.4 MB, free: 5.633 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001615/0.1044, allocations: 106.8 kB / 365.5 MB, free: 5.52 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003065/0.1048, allocations: 193 kB / 365.7 MB, free: 5.324 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-06/0.1048, allocations: 0 / 365.7 MB, free: 5.324 MB / 302.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005069/0.1053, allocations: 295.1 kB / 366 MB, free: 5.027 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.153e-05/0.1053, allocations: 4 kB / 366 MB, free: 5.023 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.633e-06/0.1053, allocations: 0 / 366 MB, free: 5.023 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001981/0.1055, allocations: 52.89 kB / 366.1 MB, free: 4.969 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002445/0.1058, allocations: 55.91 kB / 366.1 MB, free: 4.914 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001601/0.1074, allocations: 1.736 MB / 367.9 MB, free: 3.035 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001253/0.1075, allocations: 8.031 kB / 367.9 MB, free: 3.027 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.829e-05/0.1076, allocations: 8 kB / 367.9 MB, free: 3.02 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 (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.0001487/0.1077, allocations: 154 kB / 368 MB, free: 2.859 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.692e-05/0.1078, allocations: 23.66 kB / 368 MB, free: 2.836 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.654e-05/0.1078, allocations: 26.66 kB / 368.1 MB, free: 2.812 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.1078, allocations: 7.984 kB / 368.1 MB, free: 2.805 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.1079, allocations: 4 kB / 368.1 MB, free: 2.801 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.983e-06/0.1079, allocations: 3.984 kB / 368.1 MB, free: 2.797 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001135/0.109, allocations: 0.7897 MB / 368.9 MB, free: 1.93 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.654e-06/0.109, allocations: 0 / 368.9 MB, free: 1.93 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002573/0.1093, allocations: 59.84 kB / 368.9 MB, free: 1.871 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001147/0.1094, allocations: 44.92 kB / 369 MB, free: 1.824 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.802e-05/0.1094, allocations: 4 kB / 369 MB, free: 1.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001085/0.1105, allocations: 1.481 MB / 370.5 MB, free: 204 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.868e-06/0.1105, allocations: 4.031 kB / 370.5 MB, free: 200 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1786/0.2892, allocations: 480.4 kB / 370.9 MB, free: 19.98 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001342/0.2893, allocations: 95.83 kB / 371 MB, free: 19.88 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.377e-05/0.2894, allocations: 5.609 kB / 371 MB, free: 19.88 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002103/0.2896, allocations: 8.328 kB / 371 MB, free: 19.88 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001373/0.2898, allocations: 23.38 kB / 371.1 MB, free: 19.88 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.005e-05/0.2898, allocations: 14.56 kB / 371.1 MB, free: 19.88 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000209/0.29, allocations: 139.8 kB / 371.2 MB, free: 19.81 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.29, allocations: 0 / 371.2 MB, free: 19.81 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006939/0.2907, allocations: 67.59 kB / 371.3 MB, free: 19.81 MB / 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 (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.0001854/0.2909, allocations: 104.9 kB / 371.4 MB, free: 19.72 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009866/0.2919, allocations: 358.9 kB / 371.7 MB, free: 19.61 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.2919, allocations: 0 / 371.7 MB, free: 19.61 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004751/0.2924, allocations: 238.6 kB / 372 MB, free: 19.5 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006971/0.2931, allocations: 44.25 kB / 372 MB, free: 19.5 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001872/0.295, allocations: 0.8361 MB / 372.8 MB, free: 19.06 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003365/0.2954, allocations: 0.7593 MB / 373.6 MB, free: 18.36 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001352/0.2955, allocations: 25.97 kB / 373.6 MB, free: 18.36 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.699e-05/0.2956, allocations: 21.97 kB / 373.7 MB, free: 18.35 MB / 302.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2956, allocations: 0 / 373.7 MB, free: 18.35 MB / 302.1 MB Notification: Performance of Templates: time 0.009788/0.3054, allocations: 2.658 MB / 376.3 MB, free: 18.18 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches