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.001148/0.001148, allocations: 103.9 kB / 17.58 MB, free: 5.422 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.00127/0.00127, allocations: 192.2 kB / 18.51 MB, free: 4.508 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.383/1.383, allocations: 205.1 MB / 224.4 MB, free: 12.3 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.001205/0.001206, allocations: 51.92 kB / 280.6 MB, free: 3.188 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09037/0.09159, allocations: 46.63 MB / 327.3 MB, free: 4.48 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.003768/0.0954, allocations: 2.337 MB / 329.6 MB, free: 2.117 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001062/0.09649, allocations: 0.6242 MB / 330.2 MB, free: 1.484 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001719/0.09668, allocations: 11.94 kB / 330.3 MB, free: 1.473 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001782/0.0969, allocations: 31.66 kB / 330.3 MB, free: 1.441 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001972/0.0971, allocations: 75.33 kB / 330.4 MB, free: 1.367 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002073/0.09732, allocations: 51.88 kB / 330.4 MB, free: 1.316 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003052/0.09763, allocations: 278.7 kB / 330.7 MB, free: 1.043 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002025/0.09784, allocations: 102.7 kB / 330.8 MB, free: 0.9453 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001638/0.09801, allocations: 103.6 kB / 330.9 MB, free: 0.8438 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001621/0.09818, allocations: 115.4 kB / 331 MB, free: 0.7305 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.524e-05/0.09823, allocations: 20 kB / 331 MB, free: 0.7109 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.194e-05/0.09827, allocations: 20 kB / 331 MB, free: 0.6914 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 4.605e-05/0.09832, allocations: 55.77 kB / 331.1 MB, free: 0.6367 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001228/0.09845, allocations: 119.4 kB / 331.2 MB, free: 0.5195 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002728/0.09873, allocations: 263.3 kB / 331.5 MB, free: 268 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.09874, allocations: 0 / 331.5 MB, free: 268 kB / 270.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.09875, allocations: 4 kB / 331.5 MB, free: 264 kB / 270.1 MB Notification: Performance of Transformations before backend: time 1.376e-05/0.09877, allocations: 0 / 331.5 MB, free: 264 kB / 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.0007158/0.09949, allocations: 0.5184 MB / 332 MB, free: 15.69 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.519e-05/0.09953, allocations: 11.89 kB / 332 MB, free: 15.68 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.993e-05/0.0996, allocations: 24.66 kB / 332 MB, free: 15.65 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002568/0.09986, allocations: 244.6 kB / 332.3 MB, free: 15.38 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.611e-05/0.09989, allocations: 12.81 kB / 332.3 MB, free: 15.36 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.271e-05/0.09993, allocations: 28.38 kB / 332.3 MB, free: 15.34 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003371/0.1003, allocations: 199.6 kB / 332.5 MB, free: 15.13 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.719e-05/0.1003, allocations: 3.906 kB / 332.5 MB, free: 15.13 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.023e-05/0.1003, allocations: 8 kB / 332.5 MB, free: 15.12 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.195e-06/0.1003, allocations: 8 kB / 332.5 MB, free: 15.11 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000257/0.1006, allocations: 137.6 kB / 332.6 MB, free: 14.98 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008872/0.1015, allocations: 0.6346 MB / 333.3 MB, free: 14.3 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000289/0.1018, allocations: 183.3 kB / 333.5 MB, free: 14.11 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000163/0.102, allocations: 104.8 kB / 333.6 MB, free: 14 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.019e-05/0.102, allocations: 0 / 333.6 MB, free: 14 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.104e-05/0.102, allocations: 38.59 kB / 333.6 MB, free: 13.96 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.092e-06/0.102, allocations: 0 / 333.6 MB, free: 13.96 MB / 286.1 MB Notification: Performance of matching and sorting (n=32): time 0.001784/0.1038, allocations: 1.065 MB / 334.7 MB, free: 12.8 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.798e-05/0.1039, allocations: 63.28 kB / 334.7 MB, free: 12.73 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000159/0.104, allocations: 182.9 kB / 334.9 MB, free: 12.54 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.148e-05/0.1041, allocations: 33.7 kB / 334.9 MB, free: 12.5 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.374e-05/0.1042, allocations: 136.7 kB / 335.1 MB, free: 12.36 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.32e-05/0.1042, allocations: 122.3 kB / 335.2 MB, free: 12.24 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.044e-05/0.1043, allocations: 49.7 kB / 335.2 MB, free: 12.18 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001098/0.1044, allocations: 330.8 kB / 335.6 MB, free: 11.85 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001348/0.1046, allocations: 71.95 kB / 335.6 MB, free: 11.78 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001666/0.1047, allocations: 114.3 kB / 335.7 MB, free: 11.66 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002933/0.105, allocations: 196.7 kB / 335.9 MB, free: 11.46 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-06/0.1051, allocations: 0 / 335.9 MB, free: 11.46 MB / 286.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004737/0.1055, allocations: 286 kB / 336.2 MB, free: 11.17 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.521e-05/0.1056, allocations: 8.062 kB / 336.2 MB, free: 11.16 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.1056, allocations: 0 / 336.2 MB, free: 11.16 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001663/0.1057, allocations: 48.77 kB / 336.3 MB, free: 11.11 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002341/0.106, allocations: 55.91 kB / 336.3 MB, free: 11.06 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001381/0.1074, allocations: 1.736 MB / 338.1 MB, free: 9.18 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001219/0.1075, allocations: 16.08 kB / 338.1 MB, free: 9.164 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.82e-05/0.1075, allocations: 12 kB / 338.1 MB, free: 9.152 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 (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.0001214/0.1077, allocations: 137.8 kB / 338.2 MB, free: 9.008 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.598e-05/0.1077, allocations: 23.66 kB / 338.2 MB, free: 8.984 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.086e-05/0.1078, allocations: 30.66 kB / 338.3 MB, free: 8.957 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.648e-06/0.1078, allocations: 7.984 kB / 338.3 MB, free: 8.949 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.1078, allocations: 0 / 338.3 MB, free: 8.949 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.703e-06/0.1078, allocations: 7.984 kB / 338.3 MB, free: 8.941 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001068/0.1089, allocations: 0.7814 MB / 339.1 MB, free: 8.082 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.1089, allocations: 11.88 kB / 339.1 MB, free: 8.07 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002474/0.1091, allocations: 55.97 kB / 339.1 MB, free: 8.016 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001093/0.1093, allocations: 32.83 kB / 339.2 MB, free: 7.98 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.865e-05/0.1093, allocations: 8.188 kB / 339.2 MB, free: 7.973 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001061/0.1104, allocations: 1.485 MB / 340.7 MB, free: 6.348 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.1104, allocations: 8 kB / 340.7 MB, free: 6.34 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006384/0.111, allocations: 478.5 kB / 341.1 MB, free: 5.844 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.815e-05/0.1111, allocations: 109.1 kB / 341.2 MB, free: 5.719 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.869e-05/0.1111, allocations: 4 kB / 341.3 MB, free: 5.715 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001304/0.1113, allocations: 8 kB / 341.3 MB, free: 5.707 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.623e-05/0.1113, allocations: 27.95 kB / 341.3 MB, free: 5.68 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.331e-05/0.1114, allocations: 8 kB / 341.3 MB, free: 5.672 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001019/0.1115, allocations: 131.2 kB / 341.4 MB, free: 5.543 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1115, allocations: 0 / 341.4 MB, free: 5.543 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000345/0.1118, allocations: 64 kB / 341.5 MB, free: 5.48 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 (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.0001189/0.1119, allocations: 115.2 kB / 341.6 MB, free: 5.359 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0006075/0.1126, allocations: 344.1 kB / 341.9 MB, free: 5.012 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.1126, allocations: 0 / 341.9 MB, free: 5.012 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003221/0.1129, allocations: 250.8 kB / 342.2 MB, free: 4.754 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004054/0.1133, allocations: 44.89 kB / 342.2 MB, free: 4.711 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001198/0.1145, allocations: 0.7299 MB / 343 MB, free: 3.945 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003253/0.1149, allocations: 0.7561 MB / 343.7 MB, free: 3.164 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 8.667e-05/0.115, allocations: 26.28 kB / 343.7 MB, free: 3.137 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.72e-05/0.115, allocations: 23.38 kB / 343.8 MB, free: 3.113 MB / 286.1 MB Notification: Performance of SimCode: time 3.01e-07/0.115, allocations: 0 / 343.8 MB, free: 3.113 MB / 286.1 MB Notification: Performance of Templates: time 0.005835/0.1209, allocations: 2.664 MB / 346.4 MB, free: 460 kB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.makefile (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) 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches