Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.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.FirstGrounded,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.FirstGrounded") translateModel(Modelica.Mechanics.Rotational.Examples.FirstGrounded,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.FirstGrounded") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008683/0.0008684, allocations: 96.73 kB / 17.35 MB, free: 6.023 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00108/0.00108, allocations: 200.3 kB / 18.28 MB, free: 5.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.353/1.353, allocations: 227.7 MB / 246.8 MB, free: 11.39 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002561/0.0002564, allocations: 4 kB / 307.7 MB, free: 0.8359 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0951/0.09537, allocations: 51.53 MB / 359.2 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.FirstGrounded): time 0.002829/0.09824, allocations: 2.044 MB / 361.3 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001144/0.09941, allocations: 0.6389 MB / 361.9 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001672/0.0996, allocations: 4 kB / 361.9 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001385/0.09975, allocations: 27.78 kB / 362 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001861/0.09995, allocations: 63.45 kB / 362 MB, free: 10.51 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002833/0.1002, allocations: 51.97 kB / 362.1 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003393/0.1006, allocations: 254.7 kB / 362.3 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001785/0.1008, allocations: 80.72 kB / 362.4 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002381/0.101, allocations: 83.64 kB / 362.5 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001781/0.1012, allocations: 95.5 kB / 362.6 MB, free: 9.953 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.174e-05/0.1013, allocations: 12 kB / 362.6 MB, free: 9.941 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.361e-05/0.1013, allocations: 15.98 kB / 362.6 MB, free: 9.926 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.909e-05/0.1014, allocations: 43.78 kB / 362.6 MB, free: 9.883 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001268/0.1015, allocations: 129.1 kB / 362.8 MB, free: 9.75 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002438/0.1018, allocations: 235.3 kB / 363 MB, free: 9.52 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.1018, allocations: 0 / 363 MB, free: 9.52 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.522e-06/0.1018, allocations: 4 kB / 363 MB, free: 9.516 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.513e-06/0.1018, allocations: 0 / 363 MB, free: 9.516 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0007206/0.1025, allocations: 483.1 kB / 363.5 MB, free: 8.992 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.615e-05/0.1026, allocations: 12.03 kB / 363.5 MB, free: 8.98 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002061/0.1028, allocations: 36.64 kB / 363.5 MB, free: 8.945 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003503/0.1032, allocations: 244.5 kB / 363.8 MB, free: 8.664 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.473e-05/0.1032, allocations: 16.81 kB / 363.8 MB, free: 8.648 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.162e-05/0.1032, allocations: 24.28 kB / 363.8 MB, free: 8.625 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003997/0.1037, allocations: 214.2 kB / 364 MB, free: 8.402 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.701e-05/0.1037, allocations: 0 / 364 MB, free: 8.402 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.141e-05/0.1037, allocations: 11.94 kB / 364 MB, free: 8.391 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.958e-06/0.1037, allocations: 8 kB / 364 MB, free: 8.383 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002701/0.104, allocations: 137.6 kB / 364.2 MB, free: 8.25 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001051/0.1051, allocations: 0.7132 MB / 364.9 MB, free: 7.48 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002587/0.1053, allocations: 146.5 kB / 365 MB, free: 7.328 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001375/0.1055, allocations: 72.84 kB / 365.1 MB, free: 7.254 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.758e-05/0.1055, allocations: 7.984 kB / 365.1 MB, free: 7.246 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.359e-05/0.1055, allocations: 38.44 kB / 365.1 MB, free: 7.199 MB / 302.1 MB Notification: Performance of pre-optimization done (n=20): time 1.493e-06/0.1055, allocations: 0 / 365.1 MB, free: 7.199 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.00153/0.1071, allocations: 0.8914 MB / 366 MB, free: 6.219 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.631e-05/0.1071, allocations: 63.39 kB / 366.1 MB, free: 6.145 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001595/0.1073, allocations: 172.3 kB / 366.3 MB, free: 5.961 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.723e-05/0.1073, allocations: 29.7 kB / 366.3 MB, free: 5.926 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.982e-05/0.1074, allocations: 144.3 kB / 366.4 MB, free: 5.781 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.7e-05/0.1075, allocations: 86.73 kB / 366.5 MB, free: 5.695 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.878e-05/0.1075, allocations: 29.7 kB / 366.5 MB, free: 5.66 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001149/0.1076, allocations: 334.8 kB / 366.9 MB, free: 5.324 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001203/0.1078, allocations: 55.97 kB / 366.9 MB, free: 5.27 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001444/0.1079, allocations: 96.27 kB / 367 MB, free: 5.16 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002865/0.1082, allocations: 181.8 kB / 367.2 MB, free: 4.969 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-06/0.1082, allocations: 4 kB / 367.2 MB, free: 4.965 MB / 302.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004352/0.1087, allocations: 254 kB / 367.4 MB, free: 4.707 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.638e-05/0.1087, allocations: 8 kB / 367.5 MB, free: 4.699 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.63e-06/0.1087, allocations: 0 / 367.5 MB, free: 4.699 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001499/0.1089, allocations: 32.84 kB / 367.5 MB, free: 4.664 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002023/0.1091, allocations: 60.03 kB / 367.5 MB, free: 4.605 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001096/0.1102, allocations: 1.374 MB / 368.9 MB, free: 3.094 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001127/0.1103, allocations: 12.03 kB / 368.9 MB, free: 3.082 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.674e-05/0.1103, allocations: 11.92 kB / 368.9 MB, free: 3.07 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (28): * Single equations (assignments): 27 * 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 prepare postOptimizeDAE: time 0.0001203/0.1105, allocations: 137.8 kB / 369.1 MB, free: 2.926 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.919e-05/0.1105, allocations: 15.81 kB / 369.1 MB, free: 2.91 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.464e-05/0.1106, allocations: 29.86 kB / 369.1 MB, free: 2.883 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.1106, allocations: 3.938 kB / 369.1 MB, free: 2.879 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.1106, allocations: 8.062 kB / 369.1 MB, free: 2.871 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.1106, allocations: 3.938 kB / 369.1 MB, free: 2.867 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008756/0.1115, allocations: 0.6574 MB / 369.8 MB, free: 2.141 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/0.1115, allocations: 3.984 kB / 369.8 MB, free: 2.137 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002089/0.1117, allocations: 39.98 kB / 369.8 MB, free: 2.098 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001118/0.1118, allocations: 40.77 kB / 369.9 MB, free: 2.055 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.477e-05/0.1118, allocations: 4 kB / 369.9 MB, free: 2.051 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001021/0.1129, allocations: 1.378 MB / 371.3 MB, free: 0.543 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.826e-06/0.1129, allocations: 3.938 kB / 371.3 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005513/0.1134, allocations: 409.6 kB / 371.7 MB, free: 120 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.643e-05/0.1135, allocations: 97.06 kB / 371.8 MB, free: 4 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.272e-05/0.1135, allocations: 4 kB / 371.8 MB, free: 0 / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.1598/0.2733, allocations: 5.25 kB / 371.8 MB, free: 19.1 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.478e-05/0.2734, allocations: 19.89 kB / 371.8 MB, free: 19.1 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.758e-05/0.2735, allocations: 6.531 kB / 371.8 MB, free: 19.1 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001311/0.2736, allocations: 131.4 kB / 371.9 MB, free: 19.02 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2736, allocations: 3.656 kB / 371.9 MB, free: 19.02 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004305/0.2741, allocations: 58.59 kB / 372 MB, free: 19.02 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (21): * Single equations (assignments): 20 * 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.0001136/0.2742, allocations: 102.5 kB / 372.1 MB, free: 18.93 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006043/0.2748, allocations: 302.7 kB / 372.4 MB, free: 18.82 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.2748, allocations: 0.875 kB / 372.4 MB, free: 18.82 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003182/0.2751, allocations: 217.6 kB / 372.6 MB, free: 18.71 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005217/0.2757, allocations: 41.44 kB / 372.6 MB, free: 18.71 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00129/0.277, allocations: 0.8438 MB / 373.5 MB, free: 18.25 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002108/0.2772, allocations: 0.7511 MB / 374.2 MB, free: 17.55 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.454e-05/0.2773, allocations: 18.31 kB / 374.2 MB, free: 17.55 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.786e-05/0.2773, allocations: 18.31 kB / 374.3 MB, free: 17.54 MB / 302.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2773, allocations: 0.875 kB / 374.3 MB, free: 17.54 MB / 302.1 MB Notification: Performance of Templates: time 0.006135/0.2835, allocations: 2.234 MB / 376.5 MB, free: 17.39 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/FirstGrounded/FirstGrounded.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches