Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|directMass.mass.s|directMass.mass.v|mass2a.s|mass2a.v|mass2b.s|mass2b.v|mass3a.s|mass3a.v|mass3b.s|mass3b.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs") translateModel(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|directMass.mass.s|directMass.mass.v|mass2a.s|mass2a.v|mass2b.s|mass2b.v|mass3a.s|mass3a.v|mass3b.s|mass3b.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001708/0.001709, allocations: 175.5 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.503/1.503, allocations: 221.3 MB / 235.5 MB, free: 2.949 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009807/0.0009808, allocations: 102.2 kB / 286.5 MB, free: 216 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.457e-05/3.489e-05, allocations: 0 / 343.8 MB, free: 4.305 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1321/0.1321, allocations: 50.42 MB / 394.2 MB, free: 1.844 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3741/0.5063, allocations: 82.97 MB / 477.2 MB, free: 4.559 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002058/0.5066, allocations: 79.78 kB / 477.3 MB, free: 4.484 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03663/0.5432, allocations: 14.63 MB / 491.9 MB, free: 5.617 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.835e-06/0.5433, allocations: 0 / 491.9 MB, free: 5.617 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.442e-05/0.5434, allocations: 24 kB / 491.9 MB, free: 5.594 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 201 * Number of variables: 201 Notification: Performance of Generate backend data structure: time 0.00158/0.545, allocations: 0.8987 MB / 492.8 MB, free: 4.648 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.398e-05/0.545, allocations: 8.031 kB / 492.8 MB, free: 4.641 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001613/0.5452, allocations: 106.8 kB / 492.9 MB, free: 4.535 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000892/0.5461, allocations: 0.5199 MB / 493.5 MB, free: 3.977 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.238e-05/0.5462, allocations: 58 kB / 493.5 MB, free: 3.918 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001128/0.5463, allocations: 83.98 kB / 493.6 MB, free: 3.836 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00129/0.5476, allocations: 0.8093 MB / 494.4 MB, free: 2.918 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.894e-05/0.5476, allocations: 19.83 kB / 494.4 MB, free: 2.898 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.579e-05/0.5477, allocations: 39.95 kB / 494.5 MB, free: 2.859 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.644e-05/0.5477, allocations: 24 kB / 494.5 MB, free: 2.836 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008339/0.5486, allocations: 439.5 kB / 494.9 MB, free: 2.402 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004015/0.5526, allocations: 4.401 MB / 499.3 MB, free: 13.81 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005144/0.5531, allocations: 285.1 kB / 499.6 MB, free: 13.52 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002082/0.5533, allocations: 137.6 kB / 499.7 MB, free: 13.39 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002244/0.5536, allocations: 166.6 kB / 499.9 MB, free: 13.19 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.728e-05/0.5536, allocations: 50.86 kB / 500 MB, free: 13.13 MB / 378.7 MB Notification: Performance of pre-optimization done (n=46): time 2.625e-06/0.5536, allocations: 0 / 500 MB, free: 13.13 MB / 378.7 MB Notification: Performance of matching and sorting (n=57): time 0.003021/0.5567, allocations: 1.578 MB / 0.4898 GB, free: 11.46 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.991e-05/0.5567, allocations: 67.86 kB / 0.4898 GB, free: 11.38 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005516/0.5573, allocations: 467.4 kB / 0.4903 GB, free: 10.92 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.907e-05/0.5574, allocations: 37.7 kB / 0.4903 GB, free: 10.88 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003404/0.5577, allocations: 474.5 kB / 0.4908 GB, free: 10.4 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001659/0.5579, allocations: 213 kB / 0.491 GB, free: 10.19 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.377e-05/0.5579, allocations: 12 kB / 0.491 GB, free: 10.18 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000202/0.5581, allocations: 386.7 kB / 0.4914 GB, free: 9.793 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002599/0.5584, allocations: 150 kB / 0.4915 GB, free: 9.645 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004628/0.5589, allocations: 439.3 kB / 0.4919 GB, free: 9.086 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003543/0.5592, allocations: 229.5 kB / 0.4921 GB, free: 8.859 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.5592, allocations: 0 / 0.4921 GB, free: 8.859 MB / 378.7 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001057/0.5603, allocations: 0.7142 MB / 0.4928 GB, free: 8.133 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.658e-05/0.5603, allocations: 8 kB / 0.4928 GB, free: 8.125 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.312e-05/0.5603, allocations: 8.844 kB / 0.4929 GB, free: 8.117 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001664/0.5605, allocations: 48.84 kB / 0.4929 GB, free: 8.066 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005567/0.5611, allocations: 187.7 kB / 0.4931 GB, free: 7.883 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001315/0.5624, allocations: 1.51 MB / 0.4946 GB, free: 6.238 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002774/0.5627, allocations: 28 kB / 0.4946 GB, free: 6.211 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.576e-05/0.5628, allocations: 36.19 kB / 0.4946 GB, free: 6.176 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (101): * Single equations (assignments): 100 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000156/0.5629, allocations: 160.6 kB / 0.4948 GB, free: 6.012 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.569e-05/0.563, allocations: 67.16 kB / 0.4948 GB, free: 5.945 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001468/0.5632, allocations: 83.11 kB / 0.4949 GB, free: 5.863 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.571e-06/0.5632, allocations: 7.984 kB / 0.4949 GB, free: 5.855 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.218e-06/0.5632, allocations: 4.062 kB / 0.4949 GB, free: 5.852 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.917e-06/0.5632, allocations: 0 / 0.4949 GB, free: 5.852 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001947/0.5652, allocations: 1.398 MB / 0.4963 GB, free: 4.34 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.195e-06/0.5652, allocations: 12.02 kB / 0.4963 GB, free: 4.328 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004714/0.5657, allocations: 115.8 kB / 0.4964 GB, free: 4.215 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.942e-05/0.5658, allocations: 24.86 kB / 0.4964 GB, free: 4.188 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.183e-05/0.5658, allocations: 15.98 kB / 0.4964 GB, free: 4.172 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008519/0.5667, allocations: 1.272 MB / 0.4977 GB, free: 2.766 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.5667, allocations: 4 kB / 0.4977 GB, free: 2.762 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001004/0.5677, allocations: 0.8804 MB / 0.4986 GB, free: 1.762 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001239/0.5678, allocations: 136.2 kB / 0.4987 GB, free: 1.609 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.888e-05/0.5679, allocations: 16 kB / 0.4987 GB, free: 1.594 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001977/0.5681, allocations: 16 kB / 0.4987 GB, free: 1.578 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.498e-05/0.5682, allocations: 43.84 kB / 0.4988 GB, free: 1.535 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.79e-05/0.5682, allocations: 19.98 kB / 0.4988 GB, free: 1.516 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003888/0.5686, allocations: 359.2 kB / 0.4991 GB, free: 1.168 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5686, allocations: 0 / 0.4991 GB, free: 1.168 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006217/0.5692, allocations: 136 kB / 0.4992 GB, free: 1.035 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 10 (directMass.mass.s,directMass.mass.v,mass2a.s,mass2a.v,mass2b.s,mass2b.v,mass3a.s,mass3a.v,mass3b.s,mass3b.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 55 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002108/0.5694, allocations: 128.7 kB / 0.4994 GB, free: 0.9023 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008346/0.5703, allocations: 0.5535 MB / 0.4999 GB, free: 344 kB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.377e-06/0.5703, allocations: 0 / 0.4999 GB, free: 344 kB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003471/0.5707, allocations: 303.5 kB / 0.5002 GB, free: 28 kB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004813/0.5711, allocations: 83.09 kB / 0.5003 GB, free: 15.95 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002258/0.5734, allocations: 1.556 MB / 0.5018 GB, free: 14.34 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005445/0.574, allocations: 0.989 MB / 0.5028 GB, free: 13.32 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002972/0.5743, allocations: 89.91 kB / 0.5028 GB, free: 13.23 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001167/0.5744, allocations: 55.42 kB / 0.5029 GB, free: 13.18 MB / 394.7 MB Notification: Performance of SimCode: time 2.51e-07/0.5744, allocations: 0 / 0.5029 GB, free: 13.18 MB / 394.7 MB Notification: Performance of Templates: time 0.01048/0.5849, allocations: 4.868 MB / 0.5077 GB, free: 8.328 MB / 394.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.sim & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches