Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: 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_3.2.3_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_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001346/0.001346, allocations: 103.8 kB / 17.16 MB, free: 6.316 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.001603/0.001603, allocations: 190 kB / 18.07 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.479/1.479, allocations: 205.1 MB / 223.9 MB, free: 12.46 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00202/0.00202, allocations: 47.92 kB / 280 MB, free: 3.594 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1248/0.1269, allocations: 46.62 MB / 326.6 MB, free: 4.906 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.00741/0.1343, allocations: 4.564 MB / 331.2 MB, free: 316 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003303/0.1377, allocations: 1.353 MB / 332.5 MB, free: 14.95 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001099/0.1389, allocations: 19.88 kB / 332.5 MB, free: 14.93 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000622/0.1395, allocations: 134.9 kB / 332.7 MB, free: 14.8 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006488/0.1402, allocations: 126.8 kB / 332.8 MB, free: 14.67 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001093/0.1413, allocations: 315.7 kB / 333.1 MB, free: 14.36 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001002/0.1423, allocations: 0.9196 MB / 334 MB, free: 13.44 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005703/0.1429, allocations: 383.1 kB / 334.4 MB, free: 13.04 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003772/0.1433, allocations: 298.5 kB / 334.7 MB, free: 12.75 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003233/0.1436, allocations: 330 kB / 335 MB, free: 12.43 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.424e-05/0.1437, allocations: 47.94 kB / 335 MB, free: 12.38 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000218/0.1439, allocations: 79.98 kB / 335.1 MB, free: 12.3 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001196/0.144, allocations: 135.3 kB / 335.3 MB, free: 12.17 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003061/0.1444, allocations: 397.5 kB / 335.6 MB, free: 11.78 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008776/0.1452, allocations: 0.9729 MB / 336.6 MB, free: 10.8 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.1453, allocations: 0 / 336.6 MB, free: 10.8 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1453, allocations: 0 / 336.6 MB, free: 10.8 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.289e-05/0.1453, allocations: 0 / 336.6 MB, free: 10.8 MB / 286.1 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.00161/0.1469, allocations: 1.138 MB / 337.8 MB, free: 9.613 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.268e-05/0.147, allocations: 12.03 kB / 337.8 MB, free: 9.602 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001542/0.1471, allocations: 102.7 kB / 337.9 MB, free: 9.5 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007885/0.1479, allocations: 0.5955 MB / 338.5 MB, free: 8.859 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.671e-05/0.148, allocations: 58 kB / 338.5 MB, free: 8.801 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001064/0.1481, allocations: 84 kB / 338.6 MB, free: 8.719 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001289/0.1494, allocations: 0.8481 MB / 339.4 MB, free: 7.766 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.858e-05/0.1494, allocations: 15.84 kB / 339.5 MB, free: 7.75 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.934e-05/0.1495, allocations: 32 kB / 339.5 MB, free: 7.719 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.965e-05/0.1495, allocations: 24 kB / 339.5 MB, free: 7.695 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008612/0.1504, allocations: 471.3 kB / 340 MB, free: 7.234 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003838/0.1542, allocations: 4.4 MB / 344.4 MB, free: 2.641 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006057/0.1549, allocations: 314.9 kB / 344.7 MB, free: 2.324 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000246/0.1551, allocations: 141.6 kB / 344.8 MB, free: 2.184 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003692/0.1555, allocations: 174.6 kB / 345 MB, free: 1.977 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.154e-05/0.1556, allocations: 42.94 kB / 345 MB, free: 1.926 MB / 286.1 MB Notification: Performance of pre-optimization done (n=46): time 1.843e-06/0.1556, allocations: 0 / 345 MB, free: 1.926 MB / 286.1 MB Notification: Performance of matching and sorting (n=57): time 0.003474/0.159, allocations: 1.724 MB / 346.8 MB, free: 108 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.388e-05/0.1591, allocations: 63.91 kB / 346.8 MB, free: 32 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000637/0.1597, allocations: 0.5391 MB / 347.4 MB, free: 15.48 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.859e-05/0.1598, allocations: 37.64 kB / 347.4 MB, free: 15.44 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000339/0.1601, allocations: 486.3 kB / 347.9 MB, free: 14.95 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001534/0.1603, allocations: 209 kB / 348.1 MB, free: 14.75 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001662/0.1605, allocations: 142.5 kB / 348.2 MB, free: 14.6 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002212/0.1607, allocations: 378.8 kB / 348.6 MB, free: 14.22 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002746/0.161, allocations: 165.9 kB / 348.7 MB, free: 14.06 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004499/0.1615, allocations: 455.2 kB / 349.2 MB, free: 13.48 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008268/0.1623, allocations: 0.6634 MB / 349.9 MB, free: 12.69 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/0.1623, allocations: 4 kB / 349.9 MB, free: 12.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001184/0.1635, allocations: 0.7418 MB / 350.6 MB, free: 11.93 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.572e-05/0.1635, allocations: 8 kB / 350.6 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.835e-05/0.1636, allocations: 15.98 kB / 350.6 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001793/0.1637, allocations: 40.84 kB / 350.7 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005794/0.1643, allocations: 188.3 kB / 350.8 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001355/0.1657, allocations: 1.518 MB / 352.4 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003056/0.166, allocations: 28 kB / 352.4 MB, free: 10.01 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.386e-05/0.1661, allocations: 40.06 kB / 352.4 MB, free: 9.969 MB / 302.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003596/0.1664, allocations: 233.5 kB / 352.7 MB, free: 9.73 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.837e-05/0.1665, allocations: 67.16 kB / 352.7 MB, free: 9.664 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000129/0.1667, allocations: 71.08 kB / 352.8 MB, free: 9.59 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.075e-06/0.1667, allocations: 11.94 kB / 352.8 MB, free: 9.578 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.137e-05/0.1667, allocations: 0 / 352.8 MB, free: 9.578 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.165e-06/0.1667, allocations: 3.984 kB / 352.8 MB, free: 9.574 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002024/0.1688, allocations: 1.423 MB / 354.2 MB, free: 8.047 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.57e-06/0.1688, allocations: 4 kB / 354.2 MB, free: 8.043 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004684/0.1693, allocations: 115.9 kB / 354.4 MB, free: 7.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.386e-05/0.1693, allocations: 25.25 kB / 354.4 MB, free: 7.902 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.656e-05/0.1694, allocations: 23.91 kB / 354.4 MB, free: 7.879 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008884/0.1703, allocations: 1.272 MB / 355.7 MB, free: 6.477 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.639e-06/0.1703, allocations: 4 kB / 355.7 MB, free: 6.473 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00106/0.1714, allocations: 0.7684 MB / 356.4 MB, free: 5.652 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001117/0.1715, allocations: 148.2 kB / 356.6 MB, free: 5.488 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.594e-05/0.1716, allocations: 16 kB / 356.6 MB, free: 5.473 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000203/0.1718, allocations: 12 kB / 356.6 MB, free: 5.461 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.826e-05/0.1719, allocations: 47.86 kB / 356.7 MB, free: 5.414 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.935e-05/0.1719, allocations: 19.98 kB / 356.7 MB, free: 5.395 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004463/0.1724, allocations: 355.1 kB / 357 MB, free: 5.051 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1724, allocations: 4 kB / 357 MB, free: 5.047 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007423/0.1731, allocations: 144 kB / 357.2 MB, free: 4.906 MB / 302.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000203/0.1733, allocations: 115.1 kB / 357.3 MB, free: 4.781 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001092/0.1744, allocations: 0.5878 MB / 357.9 MB, free: 4.18 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.1744, allocations: 192 / 357.9 MB, free: 4.18 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004404/0.1749, allocations: 308.2 kB / 358.2 MB, free: 3.867 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006915/0.1756, allocations: 104 kB / 358.3 MB, free: 3.77 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003156/0.1788, allocations: 2.227 MB / 360.5 MB, free: 1.477 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005281/0.1793, allocations: 0.9613 MB / 361.5 MB, free: 500 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002909/0.1796, allocations: 89.92 kB / 361.6 MB, free: 408 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001241/0.1797, allocations: 63.41 kB / 361.6 MB, free: 344 kB / 302.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1798, allocations: 0 / 361.6 MB, free: 344 kB / 302.1 MB Notification: Performance of Templates: time 0.01092/0.1907, allocations: 5.045 MB / 366.7 MB, free: 11.29 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.sim & ./Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches