Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.001372/0.001372, allocations: 111.2 kB / 17.29 MB, free: 6.059 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.001181/0.001182, allocations: 197.3 kB / 18.21 MB, free: 5.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.381/1.381, allocations: 222.9 MB / 241.9 MB, free: 13.7 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001018/0.001019, allocations: 46.41 kB / 300.8 MB, free: 5.977 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1081, allocations: 49.45 MB / 350.2 MB, free: 4.52 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.003918/0.112, allocations: 2.386 MB / 352.6 MB, free: 2.113 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001316/0.1134, allocations: 0.5805 MB / 353.2 MB, free: 1.527 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002824/0.1137, allocations: 4 kB / 353.2 MB, free: 1.523 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002166/0.114, allocations: 27.78 kB / 353.2 MB, free: 1.496 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003142/0.1143, allocations: 67.45 kB / 353.3 MB, free: 1.43 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002773/0.1146, allocations: 43.97 kB / 353.3 MB, free: 1.387 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000418/0.115, allocations: 278.7 kB / 353.6 MB, free: 1.113 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002667/0.1153, allocations: 102.7 kB / 353.7 MB, free: 1.004 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002316/0.1155, allocations: 107.6 kB / 353.8 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002019/0.1157, allocations: 115.4 kB / 353.9 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.898e-05/0.1158, allocations: 20 kB / 354 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.527e-05/0.1159, allocations: 20 kB / 354 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.536e-05/0.1159, allocations: 47.84 kB / 354 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001432/0.1161, allocations: 123.4 kB / 354.1 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002572/0.1163, allocations: 211.7 kB / 354.3 MB, free: 380 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.1163, allocations: 0 / 354.3 MB, free: 380 kB / 286.1 MB Notification: Performance of FrontEnd: time 4.108e-06/0.1164, allocations: 0 / 354.3 MB, free: 380 kB / 286.1 MB Notification: Performance of Transformations before backend: time 1.567e-05/0.1164, allocations: 7.938 kB / 354.4 MB, free: 372 kB / 286.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.0009025/0.1173, allocations: 0.517 MB / 354.9 MB, free: 15.8 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.537e-05/0.1173, allocations: 11.89 kB / 354.9 MB, free: 15.79 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.79e-05/0.1174, allocations: 28.66 kB / 354.9 MB, free: 15.76 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000323/0.1178, allocations: 232.6 kB / 355.1 MB, free: 15.49 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.918e-05/0.1178, allocations: 16.81 kB / 355.2 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.5e-05/0.1179, allocations: 28.28 kB / 355.2 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004089/0.1183, allocations: 203.5 kB / 355.4 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.846e-05/0.1183, allocations: 0 / 355.4 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.501e-05/0.1183, allocations: 8 kB / 355.4 MB, free: 15.24 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.826e-06/0.1183, allocations: 4 kB / 355.4 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002895/0.1186, allocations: 137.7 kB / 355.5 MB, free: 15.1 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009848/0.1196, allocations: 0.6346 MB / 356.2 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002906/0.1199, allocations: 178.5 kB / 356.3 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001603/0.1201, allocations: 108.8 kB / 356.4 MB, free: 14.12 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.259e-05/0.1201, allocations: 4 kB / 356.4 MB, free: 14.12 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.48e-05/0.1202, allocations: 34.56 kB / 356.5 MB, free: 14.07 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.533e-06/0.1202, allocations: 0 / 356.5 MB, free: 14.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.001937/0.1221, allocations: 1.08 MB / 357.6 MB, free: 12.91 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.512e-05/0.1222, allocations: 63.33 kB / 357.6 MB, free: 12.83 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001662/0.1224, allocations: 176 kB / 357.8 MB, free: 12.65 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.296e-05/0.1224, allocations: 33.69 kB / 357.8 MB, free: 12.61 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.166e-05/0.1225, allocations: 140.7 kB / 358 MB, free: 12.47 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.112e-05/0.1226, allocations: 114.3 kB / 358.1 MB, free: 12.36 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.801e-05/0.1227, allocations: 53.7 kB / 358.1 MB, free: 12.3 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001163/0.1228, allocations: 330.8 kB / 358.5 MB, free: 11.97 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001563/0.123, allocations: 71.97 kB / 358.5 MB, free: 11.9 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001623/0.1231, allocations: 107.1 kB / 358.6 MB, free: 11.79 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003109/0.1235, allocations: 193.3 kB / 358.8 MB, free: 11.59 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.242e-06/0.1235, allocations: 0 / 358.8 MB, free: 11.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005018/0.124, allocations: 298.1 kB / 359.1 MB, free: 11.29 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.036e-05/0.124, allocations: 8 kB / 359.1 MB, free: 11.28 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.114e-06/0.124, allocations: 4.062 kB / 359.1 MB, free: 11.28 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002047/0.1242, allocations: 48.83 kB / 359.2 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002531/0.1245, allocations: 55.91 kB / 359.2 MB, free: 11.17 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001576/0.1261, allocations: 1.748 MB / 361 MB, free: 9.285 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001384/0.1262, allocations: 8 kB / 361 MB, free: 9.277 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.807e-05/0.1263, allocations: 12.06 kB / 361 MB, free: 9.266 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.0001516/0.1264, allocations: 137.8 kB / 361.1 MB, free: 9.121 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.196e-05/0.1265, allocations: 23.75 kB / 361.1 MB, free: 9.098 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.983e-05/0.1265, allocations: 30.64 kB / 361.2 MB, free: 9.07 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.1265, allocations: 4 kB / 361.2 MB, free: 9.066 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.623e-06/0.1266, allocations: 0 / 361.2 MB, free: 9.066 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.1266, allocations: 0 / 361.2 MB, free: 9.066 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001104/0.1277, allocations: 0.7743 MB / 362 MB, free: 8.219 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.02e-06/0.1277, allocations: 8.094 kB / 362 MB, free: 8.211 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002666/0.128, allocations: 59.91 kB / 362 MB, free: 8.152 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001271/0.1281, allocations: 36.83 kB / 362.1 MB, free: 8.113 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.119e-05/0.1281, allocations: 4 kB / 362.1 MB, free: 8.109 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00124/0.1294, allocations: 1.492 MB / 363.6 MB, free: 6.473 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.1294, allocations: 64 / 363.6 MB, free: 6.473 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006902/0.1301, allocations: 486.5 kB / 364 MB, free: 5.969 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.843e-05/0.1302, allocations: 92.92 kB / 364.1 MB, free: 5.859 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.104e-05/0.1302, allocations: 15.94 kB / 364.1 MB, free: 5.844 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001408/0.1304, allocations: 8 kB / 364.1 MB, free: 5.836 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.353e-05/0.1305, allocations: 19.97 kB / 364.2 MB, free: 5.816 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.636e-05/0.1305, allocations: 12 kB / 364.2 MB, free: 5.805 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001172/0.1306, allocations: 131.2 kB / 364.3 MB, free: 5.676 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1306, allocations: 3.938 kB / 364.3 MB, free: 5.672 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003881/0.131, allocations: 68 kB / 364.4 MB, free: 5.605 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.0001495/0.1312, allocations: 114.3 kB / 364.5 MB, free: 5.488 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007136/0.1319, allocations: 351.5 kB / 364.8 MB, free: 5.133 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.1319, allocations: 3.938 kB / 364.8 MB, free: 5.129 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003579/0.1323, allocations: 235.4 kB / 365.1 MB, free: 4.887 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005188/0.1328, allocations: 59.08 kB / 365.1 MB, free: 4.832 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001419/0.1342, allocations: 0.8401 MB / 366 MB, free: 3.945 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003429/0.1346, allocations: 0.7603 MB / 366.7 MB, free: 3.16 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.534e-05/0.1347, allocations: 19.44 kB / 366.7 MB, free: 3.141 MB / 302.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1347, allocations: 0 / 366.7 MB, free: 3.141 MB / 302.1 MB Notification: Performance of Templates: time 0.1747/0.3094, allocations: 3.826 MB / 370.6 MB, free: 24.89 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/First/First.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches