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.0007755/0.0007756, allocations: 90.48 kB / 17.31 MB, free: 6.535 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.0008452/0.0008453, allocations: 174.9 kB / 18.21 MB, free: 5.684 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.12/1.12, allocations: 223.3 MB / 242.3 MB, free: 188 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002068/0.0002068, allocations: 7.938 kB / 302.1 MB, free: 6.125 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06764/0.06786, allocations: 50.42 MB / 352.5 MB, free: 3.695 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Oscillator): time 0.001978/0.06985, allocations: 2.109 MB / 354.6 MB, free: 1.57 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00075/0.07061, allocations: 0.5688 MB / 355.2 MB, free: 0.9961 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001022/0.07073, allocations: 7.938 kB / 355.2 MB, free: 0.9883 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 9.538e-05/0.07083, allocations: 23.83 kB / 355.2 MB, free: 0.9648 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000113/0.07095, allocations: 55.48 kB / 355.2 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001775/0.07113, allocations: 55.94 kB / 355.3 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002248/0.07137, allocations: 242.9 kB / 355.5 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001443/0.07152, allocations: 77.91 kB / 355.6 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001099/0.07163, allocations: 79.72 kB / 355.7 MB, free: 468 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000125/0.07177, allocations: 103.5 kB / 355.8 MB, free: 364 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.848e-05/0.0718, allocations: 15.94 kB / 355.8 MB, free: 348 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.592e-05/0.07183, allocations: 8 kB / 355.8 MB, free: 340 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.192e-05/0.07187, allocations: 35.84 kB / 355.9 MB, free: 304 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.376e-05/0.07197, allocations: 133 kB / 356 MB, free: 164 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001559/0.07213, allocations: 187.7 kB / 356.2 MB, free: 15.98 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.803e-06/0.07214, allocations: 0 / 356.2 MB, free: 15.98 MB / 302.1 MB Notification: Performance of FrontEnd: time 6.51e-07/0.07215, allocations: 0 / 356.2 MB, free: 15.98 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.658e-06/0.07215, allocations: 0 / 356.2 MB, free: 15.98 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.0005636/0.07272, allocations: 495.1 kB / 356.7 MB, free: 15.45 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.783e-05/0.07276, allocations: 8.031 kB / 356.7 MB, free: 15.44 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.664e-05/0.07281, allocations: 28.66 kB / 356.7 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002038/0.07302, allocations: 237.5 kB / 356.9 MB, free: 15.14 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.438e-05/0.07304, allocations: 16.81 kB / 356.9 MB, free: 15.12 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.469e-05/0.07308, allocations: 20.38 kB / 357 MB, free: 15.1 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003563/0.07344, allocations: 229.2 kB / 357.2 MB, free: 14.87 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.312e-05/0.07346, allocations: 3.906 kB / 357.2 MB, free: 14.86 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.091e-05/0.07349, allocations: 12 kB / 357.2 MB, free: 14.85 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.151e-06/0.0735, allocations: 4 kB / 357.2 MB, free: 14.85 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002921/0.0738, allocations: 155.9 kB / 357.4 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009628/0.07477, allocations: 0.787 MB / 358.1 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000343/0.07512, allocations: 209 kB / 358.3 MB, free: 13.62 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002017/0.07533, allocations: 113.6 kB / 358.5 MB, free: 13.5 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.814e-05/0.07536, allocations: 4 kB / 358.5 MB, free: 13.5 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.952e-05/0.07539, allocations: 42.62 kB / 358.5 MB, free: 13.45 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.333e-06/0.07539, allocations: 4 kB / 358.5 MB, free: 13.45 MB / 302.1 MB Notification: Performance of matching and sorting (n=26): time 0.001332/0.07673, allocations: 0.8744 MB / 359.4 MB, free: 12.48 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.368e-05/0.07678, allocations: 85.11 kB / 359.5 MB, free: 12.38 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001299/0.07691, allocations: 182.2 kB / 359.6 MB, free: 12.19 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.805e-05/0.07694, allocations: 29.7 kB / 359.7 MB, free: 12.16 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.567e-05/0.07701, allocations: 140.3 kB / 359.8 MB, free: 12.02 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.606e-05/0.07707, allocations: 90.66 kB / 359.9 MB, free: 11.93 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.459e-05/0.07711, allocations: 29.7 kB / 359.9 MB, free: 11.89 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.699e-05/0.0772, allocations: 330.8 kB / 360.2 MB, free: 11.56 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001431/0.07735, allocations: 71.95 kB / 360.3 MB, free: 11.49 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001558/0.07751, allocations: 120.1 kB / 360.4 MB, free: 11.36 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002989/0.07782, allocations: 191 kB / 360.6 MB, free: 11.16 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-06/0.07783, allocations: 3.938 kB / 360.6 MB, free: 11.15 MB / 302.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0003837/0.07822, allocations: 253.2 kB / 360.9 MB, free: 10.9 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.169e-05/0.07824, allocations: 11.94 kB / 360.9 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.07825, allocations: 0 / 360.9 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.258e-05/0.07827, allocations: 4 kB / 360.9 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000221/0.07849, allocations: 59.97 kB / 360.9 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.406e-06/0.07851, allocations: 7.938 kB / 361 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000106/0.07862, allocations: 27.92 kB / 361 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.322e-05/0.07864, allocations: 4 kB / 361 MB, free: 10.79 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 (32): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.657e-05/0.07874, allocations: 142.2 kB / 361.1 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.223e-05/0.0788, allocations: 15.81 kB / 361.1 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.037e-05/0.07887, allocations: 29.86 kB / 361.2 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.07887, allocations: 4 kB / 361.2 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.07888, allocations: 0 / 361.2 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.541e-06/0.07889, allocations: 4 kB / 361.2 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006865/0.07959, allocations: 0.5936 MB / 361.8 MB, free: 9.93 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.145e-06/0.0796, allocations: 0 / 361.8 MB, free: 9.93 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002327/0.07984, allocations: 64 kB / 361.8 MB, free: 9.867 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.098e-06/0.07985, allocations: 4 kB / 361.8 MB, free: 9.863 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.355e-05/0.07987, allocations: 4 kB / 361.8 MB, free: 9.859 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.529e-06/0.07988, allocations: 4 kB / 361.8 MB, free: 9.855 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.548e-06/0.07989, allocations: 11.88 kB / 361.9 MB, free: 9.844 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005519/0.08045, allocations: 0.4931 MB / 362.3 MB, free: 9.324 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.71e-05/0.0805, allocations: 92.95 kB / 362.4 MB, free: 9.215 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.669e-05/0.08054, allocations: 12 kB / 362.4 MB, free: 9.203 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001532/0.0807, allocations: 12 kB / 362.5 MB, free: 9.191 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.639e-05/0.08075, allocations: 23.91 kB / 362.5 MB, free: 9.168 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.067e-05/0.08076, allocations: 4 kB / 362.5 MB, free: 9.164 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.916e-05/0.08085, allocations: 136.3 kB / 362.6 MB, free: 9.031 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.08086, allocations: 0 / 362.6 MB, free: 9.031 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002988/0.08116, allocations: 52 kB / 362.7 MB, free: 8.98 MB / 302.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 7.355e-05/0.08124, allocations: 115.1 kB / 362.8 MB, free: 8.855 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003277/0.08157, allocations: 190.4 kB / 363 MB, free: 8.672 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.08159, allocations: 0 / 363 MB, free: 8.672 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001574/0.08175, allocations: 100.8 kB / 363.1 MB, free: 8.574 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004435/0.0822, allocations: 39.91 kB / 363.1 MB, free: 8.535 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009819/0.08319, allocations: 0.8708 MB / 364 MB, free: 7.621 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002332/0.08344, allocations: 0.7482 MB / 364.7 MB, free: 6.848 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.897e-05/0.0835, allocations: 23.44 kB / 364.7 MB, free: 6.824 MB / 302.1 MB Notification: Performance of SimCode: time 2.21e-07/0.08351, allocations: 0 / 364.7 MB, free: 6.824 MB / 302.1 MB Notification: Performance of Templates: time 0.003612/0.08713, allocations: 2.576 MB / 367.3 MB, free: 4.254 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Oscillator/Oscillator.csv","/var/lib/jenkins1/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