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.001336/0.001336, allocations: 113.8 kB / 16.63 MB, free: 6.816 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.00126/0.00126, allocations: 190 kB / 17.55 MB, free: 5.93 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.309/1.309, allocations: 222.9 MB / 241.2 MB, free: 15.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001293/0.001293, allocations: 50.41 kB / 300.2 MB, free: 6.113 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08674/0.08805, allocations: 49.45 MB / 349.7 MB, free: 4.656 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Oscillator): time 0.003995/0.09208, allocations: 2.457 MB / 352.1 MB, free: 2.18 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001264/0.09338, allocations: 0.5765 MB / 352.7 MB, free: 1.598 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002035/0.0936, allocations: 8 kB / 352.7 MB, free: 1.59 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001643/0.0938, allocations: 27.78 kB / 352.8 MB, free: 1.562 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001777/0.09398, allocations: 59.47 kB / 352.8 MB, free: 1.504 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002472/0.09424, allocations: 47.95 kB / 352.9 MB, free: 1.457 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003987/0.09465, allocations: 254.8 kB / 353.1 MB, free: 1.207 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002338/0.09489, allocations: 97.34 kB / 353.2 MB, free: 1.105 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000184/0.09508, allocations: 99.58 kB / 353.3 MB, free: 1.008 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002327/0.09532, allocations: 107.5 kB / 353.4 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.828e-05/0.09538, allocations: 24 kB / 353.4 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.874e-05/0.09542, allocations: 20 kB / 353.4 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.757e-05/0.09552, allocations: 47.84 kB / 353.5 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001298/0.09567, allocations: 119.4 kB / 353.6 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002698/0.09594, allocations: 247.3 kB / 353.9 MB, free: 464 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.09596, allocations: 0 / 353.9 MB, free: 464 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.09597, allocations: 0 / 353.9 MB, free: 464 kB / 286.1 MB Notification: Performance of Transformations before backend: time 1.096e-05/0.09598, allocations: 0 / 353.9 MB, free: 464 kB / 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.0008688/0.09686, allocations: 0.5263 MB / 354.4 MB, free: 15.88 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.064e-05/0.0969, allocations: 8.031 kB / 354.4 MB, free: 15.87 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.719e-05/0.09698, allocations: 54.73 kB / 354.4 MB, free: 15.81 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.341e-05/0.09705, allocations: 24.66 kB / 354.5 MB, free: 15.79 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000311/0.09736, allocations: 232.6 kB / 354.7 MB, free: 15.52 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.146e-05/0.09739, allocations: 16.81 kB / 354.7 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.528e-05/0.09744, allocations: 24.22 kB / 354.7 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000423/0.09787, allocations: 229 kB / 355 MB, free: 15.24 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.84e-05/0.0979, allocations: 4 kB / 355 MB, free: 15.24 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.987e-05/0.09793, allocations: 4 kB / 355 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.803e-06/0.09794, allocations: 4 kB / 355 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003753/0.09832, allocations: 143.9 kB / 355.1 MB, free: 15.09 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001293/0.09962, allocations: 0.8026 MB / 355.9 MB, free: 14.22 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003993/0.1, allocations: 197 kB / 356.1 MB, free: 14.01 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002277/0.1003, allocations: 101.7 kB / 356.2 MB, free: 13.91 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.41e-05/0.1003, allocations: 8.188 kB / 356.2 MB, free: 13.9 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.838e-05/0.1003, allocations: 38.59 kB / 356.2 MB, free: 13.85 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.503e-06/0.1003, allocations: 0 / 356.2 MB, free: 13.85 MB / 302.1 MB Notification: Performance of matching and sorting (n=26): time 0.001753/0.1021, allocations: 0.8612 MB / 357.1 MB, free: 12.9 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.534e-05/0.1022, allocations: 81.11 kB / 357.2 MB, free: 12.8 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001701/0.1023, allocations: 178.2 kB / 357.4 MB, free: 12.62 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.211e-05/0.1024, allocations: 29.7 kB / 357.4 MB, free: 12.59 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001029/0.1025, allocations: 144.3 kB / 357.5 MB, free: 12.44 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.376e-05/0.1026, allocations: 94.64 kB / 357.6 MB, free: 12.35 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001294/0.1027, allocations: 49.7 kB / 357.7 MB, free: 12.29 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001541/0.1029, allocations: 334.8 kB / 358 MB, free: 11.96 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001446/0.103, allocations: 63.91 kB / 358.1 MB, free: 11.89 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001827/0.1032, allocations: 108.7 kB / 358.2 MB, free: 11.77 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003169/0.1035, allocations: 190.9 kB / 358.4 MB, free: 11.57 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.1036, allocations: 11.88 kB / 358.4 MB, free: 11.56 MB / 302.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004844/0.1041, allocations: 237.2 kB / 358.6 MB, free: 11.32 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.903e-05/0.1041, allocations: 12.09 kB / 358.6 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.1041, allocations: 0 / 358.6 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.508e-05/0.1041, allocations: 0 / 358.6 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002376/0.1044, allocations: 59.91 kB / 358.7 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.848e-06/0.1044, allocations: 4 kB / 358.7 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001183/0.1045, allocations: 15.94 kB / 358.7 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.093e-05/0.1045, allocations: 12.39 kB / 358.7 MB, free: 11.22 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 0.000128/0.1047, allocations: 145.7 kB / 358.8 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.82e-05/0.1047, allocations: 23.72 kB / 358.9 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.528e-05/0.1048, allocations: 25.88 kB / 358.9 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.468e-06/0.1048, allocations: 4 kB / 358.9 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.394e-06/0.1048, allocations: 3.938 kB / 358.9 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.1048, allocations: 3.984 kB / 358.9 MB, free: 11.01 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008864/0.1057, allocations: 0.5865 MB / 359.5 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.1057, allocations: 0 / 359.5 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002658/0.106, allocations: 59.95 kB / 359.5 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.67e-06/0.106, allocations: 4 kB / 359.5 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.214e-05/0.106, allocations: 8 kB / 359.6 MB, free: 10.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.226e-06/0.106, allocations: 7.875 kB / 359.6 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.1061, allocations: 4 kB / 359.6 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007031/0.1068, allocations: 485.1 kB / 360 MB, free: 9.777 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.166e-05/0.1068, allocations: 92.92 kB / 360.1 MB, free: 9.668 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.435e-05/0.1069, allocations: 8.031 kB / 360.1 MB, free: 9.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001755/0.1071, allocations: 19.94 kB / 360.2 MB, free: 9.641 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.752e-05/0.1071, allocations: 19.91 kB / 360.2 MB, free: 9.621 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.454e-05/0.1072, allocations: 8 kB / 360.2 MB, free: 9.613 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001409/0.1073, allocations: 128.3 kB / 360.3 MB, free: 9.488 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.1073, allocations: 0 / 360.3 MB, free: 9.488 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003636/0.1077, allocations: 52 kB / 360.4 MB, free: 9.438 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 0.00105/0.1088, allocations: 1.038 MB / 361.4 MB, free: 8.359 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004273/0.1092, allocations: 191.3 kB / 361.6 MB, free: 8.176 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 8.255e-06/0.1092, allocations: 0 / 361.6 MB, free: 8.176 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000215/0.1095, allocations: 106.9 kB / 361.7 MB, free: 8.074 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005256/0.11, allocations: 31.92 kB / 361.7 MB, free: 8.043 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003542/0.1136, allocations: 2.72 MB / 364.4 MB, free: 5.207 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004218/0.114, allocations: 0.748 MB / 365.2 MB, free: 4.43 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001061/0.1141, allocations: 21.95 kB / 365.2 MB, free: 4.41 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001239/0.1142, allocations: 71.41 kB / 365.3 MB, free: 4.34 MB / 302.1 MB Notification: Performance of SimCode: time 7.22e-07/0.1142, allocations: 3.938 kB / 365.3 MB, free: 4.336 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1103/0.2245, allocations: 4.181 MB / 369.5 MB, free: 296 kB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002045/0.2247, allocations: 213.8 kB / 369.7 MB, free: 24 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.928/2.153, allocations: 0 / 369.7 MB, free: 24 kB / 302.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