Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_trunk_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_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009293/0.0009293, allocations: 200.7 kB / 18.1 MB, free: 3.715 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.26/1.26, allocations: 226.5 MB / 245.4 MB, free: 6.34 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007525/0.0007526, allocations: 92.53 kB / 297.5 MB, free: 6.645 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002165/0.0002166, allocations: 8 kB / 358.1 MB, free: 10.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2058/0.2061, allocations: 51.28 MB / 409.4 MB, free: 27.58 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09564/0.3017, allocations: 83.83 MB / 493.2 MB, free: 7.637 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002205/0.302, allocations: 71.97 kB / 493.3 MB, free: 7.566 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03498/0.337, allocations: 14.77 MB / 0.4961 GB, free: 8.566 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.695e-06/0.3371, allocations: 0 / 0.4961 GB, free: 8.566 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.173e-05/0.3371, allocations: 24 kB / 0.4962 GB, free: 8.543 MB / 378.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.00171/0.3389, allocations: 0.978 MB / 0.4971 GB, free: 7.512 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.828e-05/0.3389, allocations: 8.031 kB / 0.4971 GB, free: 7.504 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003072/0.3392, allocations: 115.7 kB / 0.4972 GB, free: 7.391 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008022/0.34, allocations: 0.5441 MB / 0.4978 GB, free: 6.805 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.954e-05/0.3401, allocations: 54.38 kB / 0.4978 GB, free: 6.754 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001168/0.3402, allocations: 92.27 kB / 0.4979 GB, free: 6.664 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001221/0.3414, allocations: 0.8292 MB / 0.4987 GB, free: 5.723 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.687e-05/0.3415, allocations: 24.02 kB / 0.4987 GB, free: 5.699 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.093e-05/0.3416, allocations: 39.94 kB / 0.4988 GB, free: 5.66 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.125e-05/0.3416, allocations: 20 kB / 0.4988 GB, free: 5.641 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008766/0.3425, allocations: 467.3 kB / 0.4992 GB, free: 5.184 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003482/0.346, allocations: 4.4 MB / 0.5035 GB, free: 0.5859 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005254/0.3465, allocations: 303.3 kB / 0.5038 GB, free: 288 kB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002267/0.3468, allocations: 141.5 kB / 0.504 GB, free: 144 kB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2206/0.5674, allocations: 162.9 kB / 0.5041 GB, free: 91.37 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.636e-05/0.5675, allocations: 36.02 kB / 0.5041 GB, free: 91.33 MB / 378.7 MB Notification: Performance of pre-optimization done (n=46): time 4.469e-06/0.5675, allocations: 0 / 0.5041 GB, free: 91.33 MB / 378.7 MB Notification: Performance of matching and sorting (n=57): time 0.005112/0.5727, allocations: 1.741 MB / 0.5058 GB, free: 90.79 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.366e-05/0.5727, allocations: 61.09 kB / 0.5059 GB, free: 90.73 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000946/0.5737, allocations: 0.5321 MB / 0.5064 GB, free: 90.6 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.058e-05/0.5737, allocations: 35.58 kB / 0.5065 GB, free: 90.57 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003444/0.5741, allocations: 480.9 kB / 0.5069 GB, free: 90.36 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001724/0.5743, allocations: 216 kB / 0.5071 GB, free: 90.23 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.564e-05/0.5743, allocations: 15.91 kB / 0.5071 GB, free: 90.23 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001356/0.5745, allocations: 383.8 kB / 0.5075 GB, free: 89.92 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004303/0.5749, allocations: 159.5 kB / 0.5077 GB, free: 89.92 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005996/0.5755, allocations: 458.1 kB / 0.5081 GB, free: 89.58 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001121/0.5766, allocations: 0.6673 MB / 0.5087 GB, free: 89.23 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.417e-06/0.5767, allocations: 3.562 kB / 0.5087 GB, free: 89.23 MB / 378.7 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001826/0.5785, allocations: 0.7345 MB / 0.5095 GB, free: 89.14 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.983e-05/0.5786, allocations: 9.875 kB / 0.5095 GB, free: 89.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.122e-05/0.5786, allocations: 9.656 kB / 0.5095 GB, free: 89.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002518/0.5789, allocations: 49.56 kB / 0.5095 GB, free: 89.13 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001034/0.5799, allocations: 180.3 kB / 0.5097 GB, free: 89.12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001525/0.5815, allocations: 1.517 MB / 0.5112 GB, free: 87.77 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005764/0.5821, allocations: 30.22 kB / 0.5112 GB, free: 87.77 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.32e-05/0.5821, allocations: 36.94 kB / 0.5112 GB, free: 87.77 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 () * Number of clocked 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.0004917/0.5826, allocations: 237.8 kB / 0.5115 GB, free: 87.63 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001379/0.5828, allocations: 75.92 kB / 0.5115 GB, free: 87.59 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001615/0.583, allocations: 77.58 kB / 0.5116 GB, free: 87.57 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.047e-06/0.583, allocations: 6.344 kB / 0.5116 GB, free: 87.57 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.487e-05/0.583, allocations: 1.375 kB / 0.5116 GB, free: 87.57 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.097e-05/0.583, allocations: 5.594 kB / 0.5116 GB, free: 87.57 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002744/0.5858, allocations: 1.417 MB / 0.513 GB, free: 87.05 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.923e-06/0.5858, allocations: 3.531 kB / 0.513 GB, free: 87.05 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007412/0.5866, allocations: 118.3 kB / 0.5131 GB, free: 87.04 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001057/0.5867, allocations: 20.83 kB / 0.5132 GB, free: 87.03 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.089e-05/0.5867, allocations: 16.48 kB / 0.5132 GB, free: 87.03 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008044/0.5875, allocations: 1.277 MB / 0.5144 GB, free: 85.77 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.5876, allocations: 3.688 kB / 0.5144 GB, free: 85.77 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00133/0.5889, allocations: 0.7827 MB / 0.5152 GB, free: 85.46 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000134/0.5891, allocations: 143 kB / 0.5153 GB, free: 85.33 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.599e-05/0.5891, allocations: 17.25 kB / 0.5153 GB, free: 85.33 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003332/0.5895, allocations: 21.25 kB / 0.5154 GB, free: 85.33 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.459e-05/0.5896, allocations: 36.66 kB / 0.5154 GB, free: 85.32 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.465e-05/0.5896, allocations: 20.12 kB / 0.5154 GB, free: 85.32 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005401/0.5902, allocations: 358.9 kB / 0.5158 GB, free: 85.23 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.01e-07/0.5902, allocations: 0 / 0.5158 GB, free: 85.23 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00116/0.5914, allocations: 142.7 kB / 0.5159 GB, free: 85.23 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 () * Number of clocked 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.0001735/0.5916, allocations: 125.8 kB / 0.516 GB, free: 85.13 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001246/0.5928, allocations: 0.574 MB / 0.5166 GB, free: 84.9 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/0.5928, allocations: 7.562 kB / 0.5166 GB, free: 84.89 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005017/0.5934, allocations: 304.9 kB / 0.5169 GB, free: 84.72 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001249/0.5946, allocations: 94.47 kB / 0.517 GB, free: 84.68 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004056/0.5987, allocations: 2.291 MB / 0.5192 GB, free: 83.15 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005163/0.5992, allocations: 0.9647 MB / 0.5201 GB, free: 82.44 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000495/0.5998, allocations: 87.42 kB / 0.5202 GB, free: 82.42 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001562/0.5999, allocations: 57.72 kB / 0.5203 GB, free: 82.41 MB / 378.7 MB Notification: Performance of SimCode: time 1.733e-06/0.5999, allocations: 0 / 0.5203 GB, free: 82.41 MB / 378.7 MB Notification: Performance of Templates: time 0.01423/0.6142, allocations: 4.897 MB / 0.5251 GB, free: 82.09 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.sim & ./Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches