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.001871/0.001871, allocations: 115.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002159/0.002159, allocations: 207.5 kB / 19.36 MB, free: 3.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.406/1.406, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001471/0.001471, allocations: 66.88 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.1035, allocations: 50.53 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.004035/0.1075, allocations: 2.353 MB / 361.3 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001456/0.109, allocations: 0.6582 MB / 361.9 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002578/0.1093, allocations: 4 kB / 361.9 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002072/0.1096, allocations: 39.58 kB / 362 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002402/0.1098, allocations: 75.34 kB / 362 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002997/0.1101, allocations: 63.86 kB / 362.1 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003175/0.1104, allocations: 274.7 kB / 362.4 MB, free: 9.859 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002175/0.1107, allocations: 110.7 kB / 362.5 MB, free: 9.746 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001951/0.1109, allocations: 107.6 kB / 362.6 MB, free: 9.641 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001544/0.111, allocations: 119.4 kB / 362.7 MB, free: 9.523 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.244e-05/0.1111, allocations: 20 kB / 362.7 MB, free: 9.504 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.871e-05/0.1112, allocations: 28 kB / 362.7 MB, free: 9.477 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.392e-05/0.1112, allocations: 47.83 kB / 362.8 MB, free: 9.43 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001089/0.1113, allocations: 123.4 kB / 362.9 MB, free: 9.309 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000298/0.1116, allocations: 274.9 kB / 363.2 MB, free: 9.039 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.1116, allocations: 0 / 363.2 MB, free: 9.039 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.1117, allocations: 3.938 kB / 363.2 MB, free: 9.035 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.118e-05/0.1117, allocations: 0 / 363.2 MB, free: 9.035 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.0006989/0.1124, allocations: 0.5262 MB / 363.7 MB, free: 8.457 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.244e-05/0.1124, allocations: 8.031 kB / 363.7 MB, free: 8.449 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001537/0.1126, allocations: 36.64 kB / 363.7 MB, free: 8.414 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002915/0.1129, allocations: 238.2 kB / 364 MB, free: 8.141 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.789e-05/0.1129, allocations: 16.81 kB / 364 MB, free: 8.125 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.477e-05/0.1129, allocations: 24.38 kB / 364 MB, free: 8.102 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003434/0.1133, allocations: 203.5 kB / 364.2 MB, free: 7.895 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.585e-05/0.1133, allocations: 3.984 kB / 364.2 MB, free: 7.891 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.12e-05/0.1134, allocations: 8 kB / 364.2 MB, free: 7.883 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.345e-06/0.1134, allocations: 8 kB / 364.2 MB, free: 7.875 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002639/0.1136, allocations: 133.7 kB / 364.4 MB, free: 7.746 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008956/0.1145, allocations: 0.6267 MB / 365 MB, free: 7.07 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002898/0.1148, allocations: 182.5 kB / 365.2 MB, free: 6.883 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001636/0.115, allocations: 104.8 kB / 365.3 MB, free: 6.777 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.842e-05/0.1151, allocations: 7.984 kB / 365.3 MB, free: 6.77 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.574e-05/0.1151, allocations: 34.56 kB / 365.3 MB, free: 6.727 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.523e-06/0.1151, allocations: 3.938 kB / 365.3 MB, free: 6.723 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.001818/0.1169, allocations: 1.065 MB / 366.4 MB, free: 5.57 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.048e-05/0.117, allocations: 59.34 kB / 366.4 MB, free: 5.5 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001679/0.1171, allocations: 187.1 kB / 366.6 MB, free: 5.309 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.137e-05/0.1172, allocations: 33.7 kB / 366.7 MB, free: 5.27 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.184e-05/0.1173, allocations: 144.6 kB / 366.8 MB, free: 5.125 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.874e-05/0.1173, allocations: 110.4 kB / 366.9 MB, free: 5.016 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.509e-05/0.1174, allocations: 53.7 kB / 367 MB, free: 4.957 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000108/0.1175, allocations: 334.8 kB / 367.3 MB, free: 4.621 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001444/0.1177, allocations: 71.72 kB / 367.4 MB, free: 4.551 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001597/0.1179, allocations: 110.8 kB / 367.5 MB, free: 4.434 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003049/0.1182, allocations: 193 kB / 367.7 MB, free: 4.238 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.1182, allocations: 4 kB / 367.7 MB, free: 4.234 MB / 302.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004798/0.1187, allocations: 303 kB / 368 MB, free: 3.93 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.1187, allocations: 4 kB / 368 MB, free: 3.926 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.1187, allocations: 0 / 368 MB, free: 3.926 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001666/0.1189, allocations: 44.83 kB / 368 MB, free: 3.879 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002435/0.1191, allocations: 59.91 kB / 368.1 MB, free: 3.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001396/0.1205, allocations: 1.732 MB / 369.8 MB, free: 1.945 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001246/0.1207, allocations: 12.02 kB / 369.8 MB, free: 1.934 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.864e-05/0.1207, allocations: 12 kB / 369.8 MB, free: 1.922 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.0001263/0.1208, allocations: 145.8 kB / 370 MB, free: 1.77 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.562e-05/0.1209, allocations: 23.66 kB / 370 MB, free: 1.746 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.726e-05/0.121, allocations: 30.66 kB / 370 MB, free: 1.719 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.658e-06/0.121, allocations: 7.984 kB / 370 MB, free: 1.711 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.121, allocations: 0 / 370 MB, free: 1.711 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.121, allocations: 0 / 370 MB, free: 1.711 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00107/0.1221, allocations: 0.7853 MB / 370.8 MB, free: 0.8477 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.1221, allocations: 0 / 370.8 MB, free: 0.8477 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002623/0.1223, allocations: 63.91 kB / 370.9 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001163/0.1225, allocations: 36.92 kB / 370.9 MB, free: 0.7461 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.055e-05/0.1225, allocations: 8 kB / 370.9 MB, free: 0.7383 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1408/0.2633, allocations: 1.473 MB / 372.4 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.2634, allocations: 8.266 kB / 372.4 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007174/0.2641, allocations: 478.4 kB / 372.9 MB, free: 18.68 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.236e-05/0.2642, allocations: 96.3 kB / 373 MB, free: 18.58 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.946e-05/0.2642, allocations: 8.469 kB / 373 MB, free: 18.58 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001442/0.2643, allocations: 8.672 kB / 373 MB, free: 18.58 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.51e-05/0.2644, allocations: 30.3 kB / 373 MB, free: 18.58 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.729e-05/0.2644, allocations: 9.875 kB / 373 MB, free: 18.58 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.205e-05/0.2645, allocations: 133.2 kB / 373.1 MB, free: 18.5 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2645, allocations: 0 / 373.1 MB, free: 18.5 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003844/0.2649, allocations: 69.12 kB / 373.2 MB, free: 18.5 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.0001305/0.2651, allocations: 117.6 kB / 373.3 MB, free: 18.42 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005586/0.2656, allocations: 337 kB / 373.7 MB, free: 18.3 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.2656, allocations: 1.281 kB / 373.7 MB, free: 18.3 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002954/0.2659, allocations: 245 kB / 373.9 MB, free: 18.2 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004005/0.2664, allocations: 46.14 kB / 373.9 MB, free: 18.2 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001146/0.2675, allocations: 0.7295 MB / 374.7 MB, free: 17.86 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001942/0.2677, allocations: 0.7561 MB / 375.4 MB, free: 17.15 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.59e-05/0.2678, allocations: 22.72 kB / 375.4 MB, free: 17.14 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.125e-05/0.2679, allocations: 21.73 kB / 375.5 MB, free: 17.14 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2679, allocations: 1.062 kB / 375.5 MB, free: 17.14 MB / 302.1 MB Notification: Performance of Templates: time 0.006296/0.2742, allocations: 2.665 MB / 378.1 MB, free: 17 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 -s gbode -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/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_trunk_Modelica.Mechanics.Rotational.Examples.First.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches