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.001408/0.001408, allocations: 111.9 kB / 17.28 MB, free: 6.219 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.001581/0.001581, allocations: 193.3 kB / 18.2 MB, free: 5.301 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.496/1.496, allocations: 205.1 MB / 224.1 MB, free: 12.44 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.001107/0.001107, allocations: 51.92 kB / 280.1 MB, free: 3.508 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09935/0.1005, allocations: 46.63 MB / 326.8 MB, free: 4.809 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.003958/0.1045, allocations: 2.391 MB / 329.2 MB, free: 2.395 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001018/0.1055, allocations: 0.6125 MB / 329.8 MB, free: 1.773 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000127/0.1057, allocations: 4 kB / 329.8 MB, free: 1.77 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001799/0.1059, allocations: 31.78 kB / 329.8 MB, free: 1.738 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001555/0.106, allocations: 67.45 kB / 329.9 MB, free: 1.672 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002093/0.1062, allocations: 51.95 kB / 329.9 MB, free: 1.621 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003185/0.1066, allocations: 270.7 kB / 330.2 MB, free: 1.355 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002552/0.1068, allocations: 102.7 kB / 330.3 MB, free: 1.258 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001623/0.107, allocations: 111.6 kB / 330.4 MB, free: 1.148 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001789/0.1072, allocations: 111.4 kB / 330.5 MB, free: 1.039 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.417e-05/0.1072, allocations: 24 kB / 330.5 MB, free: 1.016 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.208e-05/0.1073, allocations: 20 kB / 330.6 MB, free: 0.9961 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.563e-05/0.1074, allocations: 43.84 kB / 330.6 MB, free: 0.9531 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001345/0.1075, allocations: 127.4 kB / 330.7 MB, free: 0.8281 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002926/0.1078, allocations: 263.3 kB / 331 MB, free: 0.5703 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.1078, allocations: 0 / 331 MB, free: 0.5703 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.1078, allocations: 3.938 kB / 331 MB, free: 0.5664 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.514e-06/0.1078, allocations: 0 / 331 MB, free: 0.5664 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.0007682/0.1086, allocations: 0.5184 MB / 331.5 MB, free: 16 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.463e-05/0.1087, allocations: 15.89 kB / 331.5 MB, free: 15.98 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.658e-05/0.1087, allocations: 28.66 kB / 331.5 MB, free: 15.95 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002654/0.109, allocations: 232.6 kB / 331.8 MB, free: 15.69 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.333e-05/0.109, allocations: 24.81 kB / 331.8 MB, free: 15.66 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.556e-05/0.1091, allocations: 20.38 kB / 331.8 MB, free: 15.64 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003625/0.1095, allocations: 207.5 kB / 332 MB, free: 15.43 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.126e-05/0.1095, allocations: 7.906 kB / 332 MB, free: 15.43 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.15e-05/0.1095, allocations: 4 kB / 332 MB, free: 15.42 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.895e-06/0.1095, allocations: 4 kB / 332 MB, free: 15.42 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000273/0.1098, allocations: 137.7 kB / 332.2 MB, free: 15.29 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009784/0.1108, allocations: 0.6346 MB / 332.8 MB, free: 14.6 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003462/0.1112, allocations: 182.4 kB / 333 MB, free: 14.41 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001755/0.1113, allocations: 104.8 kB / 333.1 MB, free: 14.31 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.029e-05/0.1114, allocations: 4 kB / 333.1 MB, free: 14.3 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.23e-05/0.1114, allocations: 34.56 kB / 333.1 MB, free: 14.26 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.623e-06/0.1114, allocations: 0 / 333.1 MB, free: 14.26 MB / 286.1 MB Notification: Performance of matching and sorting (n=32): time 0.001999/0.1134, allocations: 1.069 MB / 334.2 MB, free: 13.1 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.197e-05/0.1135, allocations: 59.34 kB / 334.2 MB, free: 13.03 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001978/0.1137, allocations: 182.9 kB / 334.4 MB, free: 12.84 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.761e-05/0.1137, allocations: 33.7 kB / 334.5 MB, free: 12.8 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001017/0.1139, allocations: 140.7 kB / 334.6 MB, free: 12.66 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000101/0.114, allocations: 114.3 kB / 334.7 MB, free: 12.55 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.654e-05/0.114, allocations: 49.7 kB / 334.8 MB, free: 12.49 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001507/0.1142, allocations: 330.8 kB / 335.1 MB, free: 12.16 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001375/0.1143, allocations: 75.95 kB / 335.2 MB, free: 12.09 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001621/0.1145, allocations: 106.3 kB / 335.3 MB, free: 11.97 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003114/0.1148, allocations: 196.7 kB / 335.5 MB, free: 11.77 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.452e-06/0.1149, allocations: 0 / 335.5 MB, free: 11.77 MB / 286.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005175/0.1154, allocations: 290 kB / 335.7 MB, free: 11.48 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.458e-05/0.1154, allocations: 8 kB / 335.7 MB, free: 11.47 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.183e-06/0.1154, allocations: 0 / 335.7 MB, free: 11.47 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000207/0.1156, allocations: 44.89 kB / 335.8 MB, free: 11.43 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002537/0.1159, allocations: 63.91 kB / 335.8 MB, free: 11.36 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001599/0.1175, allocations: 1.74 MB / 337.6 MB, free: 9.48 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001182/0.1176, allocations: 12.02 kB / 337.6 MB, free: 9.469 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.673e-05/0.1177, allocations: 8 kB / 337.6 MB, free: 9.461 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.0001466/0.1178, allocations: 141.8 kB / 337.7 MB, free: 9.312 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.932e-05/0.1179, allocations: 31.64 kB / 337.8 MB, free: 9.281 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.474e-05/0.1179, allocations: 26.66 kB / 337.8 MB, free: 9.258 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.506e-06/0.1179, allocations: 4 kB / 337.8 MB, free: 9.254 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.118, allocations: 3.938 kB / 337.8 MB, free: 9.25 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.493e-06/0.118, allocations: 3.984 kB / 337.8 MB, free: 9.246 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001105/0.1191, allocations: 0.7853 MB / 338.6 MB, free: 8.383 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.1191, allocations: 4.094 kB / 338.6 MB, free: 8.379 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002478/0.1194, allocations: 63.84 kB / 338.7 MB, free: 8.316 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001114/0.1195, allocations: 32.83 kB / 338.7 MB, free: 8.281 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.228e-05/0.1195, allocations: 12 kB / 338.7 MB, free: 8.27 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001197/0.1207, allocations: 1.481 MB / 340.2 MB, free: 6.648 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.1207, allocations: 0 / 340.2 MB, free: 6.648 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006979/0.1214, allocations: 490.6 kB / 340.7 MB, free: 6.141 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.601e-05/0.1215, allocations: 96.86 kB / 340.8 MB, free: 6.027 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.784e-05/0.1216, allocations: 8 kB / 340.8 MB, free: 6.02 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000129/0.1217, allocations: 12 kB / 340.8 MB, free: 6.008 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.607e-05/0.1218, allocations: 23.97 kB / 340.8 MB, free: 5.984 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.538e-05/0.1218, allocations: 8 kB / 340.8 MB, free: 5.977 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001096/0.1219, allocations: 135.2 kB / 340.9 MB, free: 5.844 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1219, allocations: 0 / 340.9 MB, free: 5.844 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000365/0.1223, allocations: 68 kB / 341 MB, free: 5.777 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.0001242/0.1224, allocations: 103.2 kB / 341.1 MB, free: 5.668 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0006589/0.1231, allocations: 347.5 kB / 341.5 MB, free: 5.316 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.1231, allocations: 0 / 341.5 MB, free: 5.316 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003333/0.1234, allocations: 242.8 kB / 341.7 MB, free: 5.066 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00051/0.1239, allocations: 53.2 kB / 341.7 MB, free: 5.016 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001293/0.1253, allocations: 0.8152 MB / 342.6 MB, free: 4.164 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000331/0.1256, allocations: 0.7561 MB / 343.3 MB, free: 3.383 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 8.295e-05/0.1257, allocations: 22.28 kB / 343.3 MB, free: 3.359 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.133e-05/0.1257, allocations: 19.44 kB / 343.4 MB, free: 3.34 MB / 286.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1257, allocations: 0 / 343.4 MB, free: 3.34 MB / 286.1 MB Notification: Performance of Templates: time 0.006009/0.1318, allocations: 2.656 MB / 346 MB, free: 0.6875 MB / 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","../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches