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: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Oscillator,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Oscillator,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001454/0.001454, allocations: 107.1 kB / 17.06 MB, free: 6.125 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.001699/0.001699, allocations: 199 kB / 18 MB, free: 5.199 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.247/1.247, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001056/0.001056, allocations: 51.94 kB / 350.8 MB, free: 3.758 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2615/0.2625, allocations: 49.43 MB / 400.2 MB, free: 8.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Oscillator): time 0.003658/0.2662, allocations: 2.426 MB / 402.6 MB, free: 6.516 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008622/0.2671, allocations: 0.5765 MB / 403.2 MB, free: 5.934 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001055/0.2672, allocations: 4 kB / 403.2 MB, free: 5.93 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001349/0.2674, allocations: 39.58 kB / 403.3 MB, free: 5.891 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001124/0.2676, allocations: 67.36 kB / 403.3 MB, free: 5.824 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002143/0.2678, allocations: 63.91 kB / 403.4 MB, free: 5.762 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002491/0.268, allocations: 254.8 kB / 403.6 MB, free: 5.512 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001775/0.2682, allocations: 93.34 kB / 403.7 MB, free: 5.422 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001246/0.2683, allocations: 99.64 kB / 403.8 MB, free: 5.324 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000148/0.2685, allocations: 111.5 kB / 403.9 MB, free: 5.215 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.395e-05/0.2685, allocations: 20 kB / 404 MB, free: 5.195 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.268e-05/0.2686, allocations: 20 kB / 404 MB, free: 5.176 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.925e-05/0.2686, allocations: 43.84 kB / 404 MB, free: 5.133 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.995e-05/0.2687, allocations: 123.4 kB / 404.1 MB, free: 5.012 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002347/0.269, allocations: 252.7 kB / 404.4 MB, free: 4.766 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.269, allocations: 0 / 404.4 MB, free: 4.766 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.269, allocations: 0 / 404.4 MB, free: 4.766 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.49e-06/0.269, allocations: 0 / 404.4 MB, free: 4.766 MB / 318.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.0007007/0.2697, allocations: 0.5224 MB / 404.9 MB, free: 4.195 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.474e-05/0.2697, allocations: 12.03 kB / 404.9 MB, free: 4.184 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.66e-05/0.2698, allocations: 58.72 kB / 405 MB, free: 4.117 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.37e-05/0.2699, allocations: 24.66 kB / 405 MB, free: 4.094 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002387/0.2701, allocations: 233.3 kB / 405.2 MB, free: 3.824 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.768e-05/0.2701, allocations: 20.75 kB / 405.3 MB, free: 3.805 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.499e-05/0.2702, allocations: 20.38 kB / 405.3 MB, free: 3.785 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003661/0.2705, allocations: 221.1 kB / 405.5 MB, free: 3.555 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.557e-05/0.2706, allocations: 7.984 kB / 405.5 MB, free: 3.547 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.852e-05/0.2706, allocations: 8 kB / 405.5 MB, free: 3.539 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.675e-06/0.2706, allocations: 4 kB / 405.5 MB, free: 3.535 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003025/0.2709, allocations: 151.8 kB / 405.7 MB, free: 3.387 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001006/0.2719, allocations: 0.7908 MB / 406.4 MB, free: 2.527 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000352/0.2723, allocations: 201 kB / 406.6 MB, free: 2.312 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000213/0.2725, allocations: 101.7 kB / 406.7 MB, free: 2.207 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.204e-05/0.2725, allocations: 4.188 kB / 406.7 MB, free: 2.203 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.508e-05/0.2726, allocations: 42.5 kB / 406.8 MB, free: 2.152 MB / 318.1 MB Notification: Performance of pre-optimization done (n=22): time 1.623e-06/0.2726, allocations: 0 / 406.8 MB, free: 2.152 MB / 318.1 MB Notification: Performance of matching and sorting (n=26): time 0.001404/0.274, allocations: 0.8578 MB / 407.6 MB, free: 1.203 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.042e-05/0.274, allocations: 77.11 kB / 407.7 MB, free: 1.109 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001311/0.2742, allocations: 182.3 kB / 407.9 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.808e-05/0.2742, allocations: 29.64 kB / 407.9 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.593e-05/0.2743, allocations: 140.4 kB / 408.1 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.991e-05/0.2743, allocations: 94.64 kB / 408.2 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.122e-05/0.2744, allocations: 53.69 kB / 408.2 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001058/0.2745, allocations: 334.8 kB / 408.5 MB, free: 264 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000143/0.2747, allocations: 63.97 kB / 408.6 MB, free: 200 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001627/0.2748, allocations: 108.8 kB / 408.7 MB, free: 76 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000346/0.2752, allocations: 196 kB / 408.9 MB, free: 15.87 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.2752, allocations: 3.938 kB / 408.9 MB, free: 15.86 MB / 334.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0003976/0.2756, allocations: 244 kB / 409.1 MB, free: 15.62 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.657e-05/0.2756, allocations: 6.344 kB / 409.1 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.073e-06/0.2757, allocations: 8.094 kB / 409.2 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.908e-05/0.2757, allocations: 0 / 409.2 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002395/0.2759, allocations: 59.91 kB / 409.2 MB, free: 15.55 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.937e-06/0.2759, allocations: 4 kB / 409.2 MB, free: 15.55 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001027/0.2761, allocations: 11.91 kB / 409.2 MB, free: 15.54 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.104e-05/0.2761, allocations: 15.98 kB / 409.2 MB, free: 15.52 MB / 334.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 0.0001254/0.2762, allocations: 141.7 kB / 409.4 MB, free: 15.37 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.652e-05/0.2763, allocations: 19.81 kB / 409.4 MB, free: 15.35 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.555e-05/0.2763, allocations: 29.88 kB / 409.4 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.928e-06/0.2764, allocations: 4 kB / 409.4 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.2764, allocations: 0 / 409.4 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.556e-06/0.2764, allocations: 7.969 kB / 409.4 MB, free: 15.31 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007352/0.2771, allocations: 0.5786 MB / 410 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.586e-06/0.2771, allocations: 8.094 kB / 410 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002521/0.2774, allocations: 63.89 kB / 410.1 MB, free: 14.59 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/0.2774, allocations: 3.938 kB / 410.1 MB, free: 14.59 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.739e-05/0.2774, allocations: 8 kB / 410.1 MB, free: 14.58 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.041e-06/0.2774, allocations: 7.938 kB / 410.1 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.2774, allocations: 0 / 410.1 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005665/0.278, allocations: 492.9 kB / 410.6 MB, free: 14.07 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.82e-05/0.2781, allocations: 92.83 kB / 410.7 MB, free: 13.96 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.941e-05/0.2781, allocations: 12.03 kB / 410.7 MB, free: 13.94 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001598/0.2783, allocations: 11.94 kB / 410.7 MB, free: 13.93 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.928e-05/0.2783, allocations: 23.91 kB / 410.7 MB, free: 13.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.446e-05/0.2784, allocations: 12 kB / 410.7 MB, free: 13.89 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.136e-05/0.2784, allocations: 128.3 kB / 410.9 MB, free: 13.77 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2784, allocations: 0 / 410.9 MB, free: 13.77 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003087/0.2788, allocations: 52 kB / 410.9 MB, free: 13.72 MB / 334.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.0008016/0.2796, allocations: 1.034 MB / 411.9 MB, free: 12.64 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003511/0.2799, allocations: 179.9 kB / 412.1 MB, free: 12.47 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.2799, allocations: 0 / 412.1 MB, free: 12.47 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001614/0.2801, allocations: 99.2 kB / 412.2 MB, free: 12.38 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004535/0.2806, allocations: 44.05 kB / 412.3 MB, free: 12.33 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002754/0.2833, allocations: 2.634 MB / 414.9 MB, free: 9.57 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002601/0.2836, allocations: 0.7518 MB / 415.7 MB, free: 8.793 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.785e-05/0.2837, allocations: 17.95 kB / 415.7 MB, free: 8.773 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001058/0.2838, allocations: 71.41 kB / 415.7 MB, free: 8.703 MB / 334.1 MB Notification: Performance of SimCode: time 6.92e-07/0.2838, allocations: 0 / 415.7 MB, free: 8.703 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01878/0.3026, allocations: 4.449 MB / 420.2 MB, free: 4.367 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.153/7.455, allocations: 8.047 kB / 420.2 MB, free: 4.359 MB / 334.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Oscillator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Oscillator.fmu > 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