Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001408/0.001408, allocations: 116.9 kB / 18.49 MB, free: 4.535 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001455/0.001455, allocations: 220.7 kB / 21.46 MB, free: 1.582 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.467/1.467, allocations: 230.4 MB / 254.7 MB, free: 15.02 MB / 206.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Oscillator,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Oscillator",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Oscillator,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Oscillator",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001764/0.001764, allocations: 63.89 kB / 373.7 MB, free: 10.08 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09708/0.09884, allocations: 53.36 MB / 427 MB, free: 4.621 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Oscillator): time 0.004003/0.1028, allocations: 2.453 MB / 429.5 MB, free: 2.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001191/0.104, allocations: 0.6621 MB / 430.2 MB, free: 1.492 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001108/0.1041, allocations: 7.938 kB / 430.2 MB, free: 1.484 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001353/0.1043, allocations: 35.64 kB / 430.2 MB, free: 1.449 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001344/0.1044, allocations: 75.34 kB / 430.3 MB, free: 1.375 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000269/0.1047, allocations: 71.84 kB / 430.3 MB, free: 1.305 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003075/0.105, allocations: 266.8 kB / 430.6 MB, free: 1.043 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001664/0.1052, allocations: 69.36 kB / 430.7 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002082/0.1054, allocations: 111.6 kB / 430.8 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001546/0.1055, allocations: 103.5 kB / 430.9 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.146e-05/0.1056, allocations: 20 kB / 430.9 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.399e-05/0.1056, allocations: 28 kB / 430.9 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.736e-05/0.1057, allocations: 51.77 kB / 431 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001078/0.1058, allocations: 119.3 kB / 431.1 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003145/0.1061, allocations: 262.9 kB / 431.4 MB, free: 296 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.1061, allocations: 0 / 431.4 MB, free: 296 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.1061, allocations: 0 / 431.4 MB, free: 296 kB / 350.1 MB Notification: Performance of Transformations before backend: time 5.841e-06/0.1061, allocations: 0 / 431.4 MB, free: 296 kB / 350.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.1587/0.2648, allocations: 0.5318 MB / 431.9 MB, free: 10.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.253e-05/0.2649, allocations: 9.312 kB / 431.9 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.634e-05/0.2649, allocations: 5.562 kB / 431.9 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.125e-05/0.2649, allocations: 56.95 kB / 432 MB, free: 10.94 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002653/0.2652, allocations: 47.7 kB / 432 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000286/0.2655, allocations: 238.5 kB / 432.2 MB, free: 10.72 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.22e-05/0.2655, allocations: 17.25 kB / 432.3 MB, free: 10.72 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.634e-05/0.2655, allocations: 25.09 kB / 432.3 MB, free: 10.72 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003989/0.2659, allocations: 217.7 kB / 432.5 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.61e-05/0.266, allocations: 4.031 kB / 432.5 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.929e-05/0.266, allocations: 7.844 kB / 432.5 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.954e-06/0.266, allocations: 9.625 kB / 432.5 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003176/0.2663, allocations: 146.9 kB / 432.7 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009592/0.2673, allocations: 0.7855 MB / 433.4 MB, free: 10.22 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003692/0.2676, allocations: 198 kB / 433.6 MB, free: 10.17 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000206/0.2678, allocations: 91.38 kB / 433.7 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.588e-05/0.2679, allocations: 7.875 kB / 433.7 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.493e-05/0.2679, allocations: 37.69 kB / 433.8 MB, free: 10.11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.532e-06/0.2679, allocations: 1 kB / 433.8 MB, free: 10.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=26): time 0.001335/0.2692, allocations: 0.876 MB / 434.6 MB, free: 9.621 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.872e-05/0.2692, allocations: 79.77 kB / 434.7 MB, free: 9.527 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001242/0.2694, allocations: 181.6 kB / 434.9 MB, free: 9.426 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.426e-05/0.2694, allocations: 30.33 kB / 434.9 MB, free: 9.395 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.18e-05/0.2694, allocations: 140.9 kB / 435.1 MB, free: 9.293 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.898e-05/0.2695, allocations: 102.7 kB / 435.2 MB, free: 9.227 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.45e-05/0.2695, allocations: 47.89 kB / 435.2 MB, free: 9.211 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.725e-05/0.2696, allocations: 330.7 kB / 435.5 MB, free: 8.898 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001402/0.2697, allocations: 64.56 kB / 435.6 MB, free: 8.898 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001454/0.2699, allocations: 112.6 kB / 435.7 MB, free: 8.855 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002845/0.2702, allocations: 194.1 kB / 435.9 MB, free: 8.805 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-06/0.2702, allocations: 2.125 kB / 435.9 MB, free: 8.805 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0003836/0.2705, allocations: 247.8 kB / 436.1 MB, free: 8.699 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.456e-05/0.2706, allocations: 10.34 kB / 436.2 MB, free: 8.699 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.2706, allocations: 4 kB / 436.2 MB, free: 8.699 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.602e-05/0.2706, allocations: 2.469 kB / 436.2 MB, free: 8.699 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000239/0.2708, allocations: 59.5 kB / 436.2 MB, free: 8.699 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.083e-06/0.2708, allocations: 2.562 kB / 436.2 MB, free: 8.699 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001035/0.2709, allocations: 11 kB / 436.2 MB, free: 8.695 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.587e-05/0.2709, allocations: 11.22 kB / 436.2 MB, free: 8.691 MB / 350.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 8.041e-05/0.271, allocations: 141.6 kB / 436.4 MB, free: 8.562 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.746e-05/0.2711, allocations: 25.8 kB / 436.4 MB, free: 8.547 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.863e-05/0.2711, allocations: 28.73 kB / 436.4 MB, free: 8.516 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.055e-06/0.2711, allocations: 3.469 kB / 436.4 MB, free: 8.516 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.2712, allocations: 1.188 kB / 436.4 MB, free: 8.516 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.2712, allocations: 0 / 436.4 MB, free: 8.516 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000657/0.2718, allocations: 0.5833 MB / 437 MB, free: 8.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.2718, allocations: 1.094 kB / 437 MB, free: 8.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002583/0.2721, allocations: 59 kB / 437.1 MB, free: 8.086 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.017e-06/0.2721, allocations: 3.469 kB / 437.1 MB, free: 8.086 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.68e-05/0.2721, allocations: 8.828 kB / 437.1 MB, free: 8.082 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/0.2721, allocations: 10.16 kB / 437.1 MB, free: 8.074 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.457e-06/0.2721, allocations: 6.938 kB / 437.1 MB, free: 8.07 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005295/0.2726, allocations: 0.4905 MB / 437.6 MB, free: 7.734 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.442e-05/0.2727, allocations: 91.14 kB / 437.7 MB, free: 7.633 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.924e-05/0.2727, allocations: 6.406 kB / 437.7 MB, free: 7.629 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001721/0.2729, allocations: 13.45 kB / 437.7 MB, free: 7.625 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.006e-05/0.2729, allocations: 18.03 kB / 437.7 MB, free: 7.621 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.487e-05/0.2729, allocations: 10.16 kB / 437.7 MB, free: 7.617 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.513e-05/0.273, allocations: 136.5 kB / 437.9 MB, free: 7.523 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.273, allocations: 0 / 437.9 MB, free: 7.523 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003231/0.2733, allocations: 53.09 kB / 437.9 MB, free: 7.516 MB / 350.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 0.000652/0.274, allocations: 1.032 MB / 439 MB, free: 6.652 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003512/0.2743, allocations: 173.5 kB / 439.1 MB, free: 6.609 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.2743, allocations: 0 / 439.1 MB, free: 6.609 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001629/0.2745, allocations: 92.09 kB / 439.2 MB, free: 6.586 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004574/0.275, allocations: 45.38 kB / 439.3 MB, free: 6.566 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002647/0.2776, allocations: 2.647 MB / 441.9 MB, free: 4.617 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002079/0.2778, allocations: 0.7484 MB / 442.6 MB, free: 3.918 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.846e-05/0.2779, allocations: 24.81 kB / 442.7 MB, free: 3.91 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001041/0.278, allocations: 70.94 kB / 442.7 MB, free: 3.859 MB / 350.1 MB Notification: Performance of SimCode: time 5.41e-07/0.278, allocations: 0 / 442.7 MB, free: 3.859 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02322/0.3012, allocations: 4.52 MB / 447.3 MB, free: 3.266 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.125/8.426, allocations: 22.81 kB / 447.3 MB, free: 3.246 MB / 350.1 MB " [Timeout remaining time 651] (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Translational_Examples_Oscillator_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Translational_Examples_Oscillator.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/Oscillator/Oscillator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,damper1.s_rel,damper1.v_rel,mass1.s,mass1.v Variables in the result:damper1.d,damper1.f,damper1.flange_a.f,damper1.flange_a.s,damper1.flange_b.f,damper1.flange_b.s,damper1.lossPower,damper1.s_nominal,damper1.s_rel,damper1.stateSelect,damper1.useHeatPort,damper1.v_rel,der(damper1.s_rel),der(damper1.v_rel),der(der(mass2.flange_b.s)),der(mass1.s),der(mass1.v),der(mass2.flange_b.s),der(mass2.s),der(mass2.v),fixed1.flange.f,fixed1.flange.s,fixed1.s0,fixed2.flange.f,fixed2.flange.s,fixed2.s0,force1.f,force1.flange.f,force1.flange.s,force1.s,force1.useSupport,force2.f,force2.flange.f,force2.flange.s,force2.s,force2.useSupport,mass1.L,mass1.a,mass1.flange_a.f,mass1.flange_a.s,mass1.flange_b.f,mass1.flange_b.s,mass1.m,mass1.s,mass1.stateSelect,mass1.v,mass2.L,mass2.a,mass2.flange_a.f,mass2.flange_a.s,mass2.flange_b.f,mass2.flange_b.s,mass2.m,mass2.s,mass2.stateSelect,mass2.v,sine1.amplitude,sine1.continuous,sine1.f,sine1.offset,sine1.phase,sine1.startTime,sine1.y,sine2.amplitude,sine2.continuous,sine2.f,sine2.offset,sine2.phase,sine2.startTime,sine2.y,spring1.c,spring1.f,spring1.flange_a.f,spring1.flange_a.s,spring1.flange_b.f,spring1.flange_b.s,spring1.s_rel,spring1.s_rel0,spring2.c,spring2.f,spring2.flange_a.f,spring2.flange_a.s,spring2.flange_b.f,spring2.flange_b.s,spring2.s_rel,spring2.s_rel0,time [Calling sys.exit(0), Time elapsed: 10.878326195990667]