Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.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.Translational.Examples.Oscillator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper1.s_rel|damper1.v_rel|mass1.s|mass1.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator") translateModel(Modelica.Mechanics.Translational.Examples.Oscillator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper1.s_rel|damper1.v_rel|mass1.s|mass1.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001094/0.001094, allocations: 91.77 kB / 16.31 MB, free: 5.996 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.001386/0.001386, allocations: 183.3 kB / 17.21 MB, free: 5.902 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.378/1.378, allocations: 223.2 MB / 241.2 MB, free: 5.449 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003027/0.0003028, allocations: 6.656 kB / 300.8 MB, free: 6.023 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.1057, allocations: 50.43 MB / 351.2 MB, free: 11.74 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Oscillator): time 0.002355/0.1081, allocations: 2.035 MB / 353.3 MB, free: 9.695 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007761/0.1089, allocations: 0.5457 MB / 353.8 MB, free: 9.145 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.368e-05/0.109, allocations: 7.938 kB / 353.8 MB, free: 9.137 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001049/0.1091, allocations: 31.77 kB / 353.9 MB, free: 9.105 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000111/0.1092, allocations: 55.53 kB / 353.9 MB, free: 9.051 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001749/0.1094, allocations: 43.95 kB / 354 MB, free: 9.008 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002284/0.1096, allocations: 234.9 kB / 354.2 MB, free: 8.777 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001582/0.1098, allocations: 69.34 kB / 354.3 MB, free: 8.703 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001327/0.1099, allocations: 83.66 kB / 354.3 MB, free: 8.621 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001312/0.1101, allocations: 91.59 kB / 354.4 MB, free: 8.531 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.607e-05/0.1101, allocations: 12 kB / 354.4 MB, free: 8.52 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.045e-05/0.1102, allocations: 12 kB / 354.4 MB, free: 8.508 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.293e-05/0.1102, allocations: 35.8 kB / 354.5 MB, free: 8.473 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.731e-05/0.1103, allocations: 69.56 kB / 354.5 MB, free: 8.398 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001715/0.1104, allocations: 183.5 kB / 354.7 MB, free: 8.219 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.1104, allocations: 0 / 354.7 MB, free: 8.219 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1105, allocations: 0 / 354.7 MB, free: 8.219 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.458e-06/0.1105, allocations: 0 / 354.7 MB, free: 8.219 MB / 286.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.0006494/0.1111, allocations: 0.4988 MB / 355.2 MB, free: 7.672 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.331e-05/0.1112, allocations: 8.031 kB / 355.2 MB, free: 7.664 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.999e-05/0.1112, allocations: 27.67 kB / 355.3 MB, free: 7.637 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002577/0.1115, allocations: 223.4 kB / 355.5 MB, free: 7.375 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.621e-05/0.1115, allocations: 20.36 kB / 355.5 MB, free: 7.355 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.702e-05/0.1115, allocations: 20 kB / 355.5 MB, free: 7.336 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004046/0.112, allocations: 221.3 kB / 355.7 MB, free: 7.109 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.491e-05/0.112, allocations: 3.938 kB / 355.7 MB, free: 7.105 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.11e-05/0.112, allocations: 12 kB / 355.8 MB, free: 7.094 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/0.112, allocations: 4 kB / 355.8 MB, free: 7.09 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003163/0.1123, allocations: 156.4 kB / 355.9 MB, free: 6.938 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001108/0.1135, allocations: 0.7919 MB / 356.7 MB, free: 6.082 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003624/0.1138, allocations: 201 kB / 356.9 MB, free: 5.867 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002175/0.1141, allocations: 109.7 kB / 357 MB, free: 5.754 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.268e-05/0.1141, allocations: 7.953 kB / 357 MB, free: 5.746 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.557e-05/0.1141, allocations: 42.48 kB / 357.1 MB, free: 5.695 MB / 286.1 MB Notification: Performance of pre-optimization done (n=22): time 1.663e-06/0.1141, allocations: 0 / 357.1 MB, free: 5.695 MB / 286.1 MB Notification: Performance of matching and sorting (n=26): time 0.001528/0.1157, allocations: 0.8804 MB / 357.9 MB, free: 4.727 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.257e-05/0.1157, allocations: 85.11 kB / 358 MB, free: 4.625 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001749/0.1159, allocations: 182.2 kB / 358.2 MB, free: 4.438 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.109e-05/0.1159, allocations: 29.7 kB / 358.2 MB, free: 4.402 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.613e-05/0.116, allocations: 136.4 kB / 358.4 MB, free: 4.266 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.526e-05/0.1161, allocations: 98.59 kB / 358.5 MB, free: 4.168 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.209e-05/0.1161, allocations: 4 kB / 358.5 MB, free: 4.164 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000116/0.1163, allocations: 326.8 kB / 358.8 MB, free: 3.836 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001453/0.1164, allocations: 71.95 kB / 358.8 MB, free: 3.766 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001701/0.1166, allocations: 112.7 kB / 359 MB, free: 3.641 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001657/0.1168, allocations: 84.23 kB / 359 MB, free: 3.559 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-06/0.1168, allocations: 0 / 359 MB, free: 3.559 MB / 286.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004203/0.1172, allocations: 251.8 kB / 359.3 MB, free: 3.309 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.825e-05/0.1172, allocations: 11.94 kB / 359.3 MB, free: 3.297 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.6e-06/0.1172, allocations: 0 / 359.3 MB, free: 3.297 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.391e-05/0.1173, allocations: 4.094 kB / 359.3 MB, free: 3.293 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002558/0.1175, allocations: 71.89 kB / 359.4 MB, free: 3.223 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.438e-06/0.1175, allocations: 4 kB / 359.4 MB, free: 3.219 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001059/0.1177, allocations: 8 kB / 359.4 MB, free: 3.211 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.04e-05/0.1177, allocations: 8 kB / 359.4 MB, free: 3.203 MB / 286.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 (32): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001277/0.1178, allocations: 141.7 kB / 359.5 MB, free: 3.055 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.999e-05/0.1179, allocations: 19.72 kB / 359.5 MB, free: 3.035 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.692e-05/0.118, allocations: 37.8 kB / 359.6 MB, free: 3 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.538e-06/0.118, allocations: 4 kB / 359.6 MB, free: 2.996 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.195e-06/0.118, allocations: 0 / 359.6 MB, free: 2.996 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.089e-06/0.118, allocations: 3.938 kB / 359.6 MB, free: 2.992 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008306/0.1188, allocations: 0.5865 MB / 360.2 MB, free: 2.34 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.1188, allocations: 0 / 360.2 MB, free: 2.34 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002656/0.1191, allocations: 55.97 kB / 360.2 MB, free: 2.285 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.59e-06/0.1191, allocations: 7.938 kB / 360.2 MB, free: 2.277 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.945e-05/0.1192, allocations: 11.98 kB / 360.3 MB, free: 2.266 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.801e-06/0.1192, allocations: 4 kB / 360.3 MB, free: 2.262 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.1192, allocations: 0 / 360.3 MB, free: 2.262 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006467/0.1198, allocations: 0.497 MB / 360.8 MB, free: 1.738 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.897e-05/0.1199, allocations: 96.77 kB / 360.8 MB, free: 1.625 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.079e-05/0.1199, allocations: 8 kB / 360.9 MB, free: 1.617 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001662/0.1201, allocations: 16.03 kB / 360.9 MB, free: 1.602 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.805e-05/0.1202, allocations: 19.94 kB / 360.9 MB, free: 1.582 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.315e-05/0.1202, allocations: 7.984 kB / 360.9 MB, free: 1.574 MB / 286.1 MB Notification: Performance of sorting global known variables: time 9.154e-05/0.1203, allocations: 136.3 kB / 361 MB, free: 1.441 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1203, allocations: 0 / 361 MB, free: 1.441 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003445/0.1206, allocations: 52 kB / 361.1 MB, free: 1.391 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (damper1.s_rel,damper1.v_rel,mass1.s,mass1.v) * 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 (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001216/0.1208, allocations: 103.7 kB / 361.2 MB, free: 1.277 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003894/0.1212, allocations: 183.9 kB / 361.4 MB, free: 1.098 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.1212, allocations: 0 / 361.4 MB, free: 1.098 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001833/0.1214, allocations: 99.88 kB / 361.5 MB, free: 1 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000517/0.1219, allocations: 34.42 kB / 361.5 MB, free: 0.9688 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001235/0.1231, allocations: 0.8417 MB / 362.3 MB, free: 92 kB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003452/0.1235, allocations: 0.7445 MB / 363.1 MB, free: 15.32 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001011/0.1236, allocations: 21.95 kB / 363.1 MB, free: 15.3 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.606e-05/0.1237, allocations: 19.44 kB / 363.1 MB, free: 15.28 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1237, allocations: 0 / 363.1 MB, free: 15.28 MB / 302.1 MB Notification: Performance of Templates: time 0.004966/0.1286, allocations: 1.81 MB / 364.9 MB, free: 13.48 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.sim & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Oscillator/Oscillator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches