Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002183/0.002183, allocations: 199.6 kB / 18.07 MB, free: 3.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 3.166/3.166, allocations: 226.5 MB / 245.3 MB, free: 8.246 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00132/0.001321, allocations: 91.62 kB / 297.4 MB, free: 6.926 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006172/0.0006176, allocations: 4 kB / 357.4 MB, free: 10.99 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6253/0.626, allocations: 51.29 MB / 408.7 MB, free: 27.76 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.231/0.8572, allocations: 83.83 MB / 492.5 MB, free: 7.816 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005148/0.8578, allocations: 72.8 kB / 492.6 MB, free: 7.746 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07/0.9278, allocations: 14.76 MB / 0.4954 GB, free: 8.742 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.218e-06/0.9279, allocations: 224 / 0.4954 GB, free: 8.742 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.135e-05/0.928, allocations: 28 kB / 0.4955 GB, free: 8.715 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.002512/0.9305, allocations: 0.978 MB / 0.4964 GB, free: 7.684 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.337e-05/0.9306, allocations: 12.03 kB / 0.4964 GB, free: 7.672 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004361/0.931, allocations: 115.7 kB / 0.4965 GB, free: 7.559 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001491/0.9326, allocations: 0.5363 MB / 0.4971 GB, free: 6.98 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.312e-05/0.9327, allocations: 62.38 kB / 0.4971 GB, free: 6.922 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002049/0.9329, allocations: 80.28 kB / 0.4972 GB, free: 6.844 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002441/0.9353, allocations: 0.8448 MB / 0.498 GB, free: 5.887 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.037e-05/0.9354, allocations: 12.03 kB / 0.498 GB, free: 5.875 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001114/0.9356, allocations: 35.94 kB / 0.4981 GB, free: 5.84 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.144e-05/0.9356, allocations: 24 kB / 0.4981 GB, free: 5.816 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01901/0.9546, allocations: 467.3 kB / 0.4985 GB, free: 5.359 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01304/0.9677, allocations: 4.408 MB / 0.5028 GB, free: 0.7539 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01768/0.9855, allocations: 295.3 kB / 0.5031 GB, free: 468 kB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006488/0.9863, allocations: 145.5 kB / 0.5033 GB, free: 320 kB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004247/0.9867, allocations: 174.6 kB / 0.5034 GB, free: 108 kB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.922e-05/0.9868, allocations: 34.94 kB / 0.5035 GB, free: 64 kB / 378.7 MB Notification: Performance of pre-optimization done (n=46): time 6.332e-06/0.9868, allocations: 4 kB / 0.5035 GB, free: 60 kB / 378.7 MB Notification: Performance of matching and sorting (n=57): time 0.6614/1.648, allocations: 1.734 MB / 0.5052 GB, free: 91.06 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.657e-05/1.648, allocations: 58.94 kB / 0.5052 GB, free: 91 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005639/1.654, allocations: 0.5312 MB / 0.5057 GB, free: 90.86 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001222/1.654, allocations: 32.86 kB / 0.5058 GB, free: 90.83 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005259/1.655, allocations: 479.3 kB / 0.5062 GB, free: 90.63 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003169/1.655, allocations: 216.6 kB / 0.5064 GB, free: 90.5 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.752e-05/1.655, allocations: 20.44 kB / 0.5064 GB, free: 90.5 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002207/1.655, allocations: 383.4 kB / 0.5068 GB, free: 90.19 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005524/1.656, allocations: 160 kB / 0.507 GB, free: 90.19 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008291/1.657, allocations: 451.9 kB / 0.5074 GB, free: 89.84 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001611/1.658, allocations: 0.6659 MB / 0.508 GB, free: 89.5 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.878e-05/1.658, allocations: 2.75 kB / 0.508 GB, free: 89.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.002615/1.661, allocations: 0.7371 MB / 0.5088 GB, free: 89.4 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.011e-05/1.661, allocations: 8.281 kB / 0.5088 GB, free: 89.4 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.117e-05/1.661, allocations: 11.72 kB / 0.5088 GB, free: 89.4 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003009/1.661, allocations: 52.28 kB / 0.5088 GB, free: 89.39 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001066/1.663, allocations: 181.7 kB / 0.509 GB, free: 89.39 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00179/1.664, allocations: 1.511 MB / 0.5105 GB, free: 88.04 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007299/1.665, allocations: 29.77 kB / 0.5105 GB, free: 88.04 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001179/1.665, allocations: 37.62 kB / 0.5105 GB, free: 88.04 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.0006608/1.666, allocations: 231.7 kB / 0.5108 GB, free: 87.91 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001974/1.666, allocations: 76.78 kB / 0.5108 GB, free: 87.86 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002049/1.666, allocations: 75.62 kB / 0.5109 GB, free: 87.85 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.475e-05/1.666, allocations: 5.812 kB / 0.5109 GB, free: 87.85 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.987e-05/1.666, allocations: 2.844 kB / 0.5109 GB, free: 87.85 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.23e-05/1.666, allocations: 2.188 kB / 0.5109 GB, free: 87.85 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00335/1.67, allocations: 1.42 MB / 0.5123 GB, free: 87.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.799e-06/1.67, allocations: 3.781 kB / 0.5123 GB, free: 87.32 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007976/1.671, allocations: 124 kB / 0.5124 GB, free: 87.31 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001508/1.671, allocations: 26.86 kB / 0.5125 GB, free: 87.3 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.298e-05/1.671, allocations: 13.44 kB / 0.5125 GB, free: 87.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009772/1.672, allocations: 1.28 MB / 0.5137 GB, free: 86.04 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.87e-06/1.672, allocations: 3.719 kB / 0.5137 GB, free: 86.04 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006123/1.678, allocations: 0.7765 MB / 0.5145 GB, free: 85.73 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002164/1.678, allocations: 139.9 kB / 0.5146 GB, free: 85.6 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.738e-05/1.678, allocations: 24.38 kB / 0.5146 GB, free: 85.6 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003859/1.679, allocations: 14.19 kB / 0.5147 GB, free: 85.6 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001342/1.679, allocations: 34.3 kB / 0.5147 GB, free: 85.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.31e-05/1.679, allocations: 21.66 kB / 0.5147 GB, free: 85.59 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007481/1.68, allocations: 360.3 kB / 0.515 GB, free: 85.5 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.01e-07/1.68, allocations: 0 / 0.515 GB, free: 85.5 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00134/1.681, allocations: 144.5 kB / 0.5152 GB, free: 85.5 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.0002332/1.681, allocations: 126.8 kB / 0.5153 GB, free: 85.4 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001487/1.683, allocations: 0.5719 MB / 0.5159 GB, free: 85.2 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/1.683, allocations: 4.062 kB / 0.5159 GB, free: 85.2 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005117/1.683, allocations: 309.1 kB / 0.5162 GB, free: 85.02 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001216/1.685, allocations: 94.72 kB / 0.5163 GB, free: 84.98 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004558/1.689, allocations: 2.326 MB / 0.5185 GB, free: 83.42 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005951/1.69, allocations: 0.9715 MB / 0.5195 GB, free: 82.71 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002343/1.69, allocations: 63.05 kB / 0.5195 GB, free: 82.7 MB / 378.7 MB Notification: Performance of SimCode: time 2.806e-06/1.69, allocations: 0 / 0.5195 GB, free: 82.7 MB / 378.7 MB Notification: Performance of Templates: time 0.03404/1.724, allocations: 12.13 MB / 0.5314 GB, free: 76.98 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches