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/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: 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008706/0.0008707, allocations: 95.28 kB / 16.3 MB, free: 5.996 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.0008922/0.0008923, allocations: 184.1 kB / 17.2 MB, free: 5.914 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.281/1.281, allocations: 223.2 MB / 241.1 MB, free: 356 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002493/0.0002494, allocations: 10.08 kB / 300.7 MB, free: 6.441 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08769/0.08795, allocations: 50.42 MB / 351.1 MB, free: 4.016 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.00415/0.09215, allocations: 3.784 MB / 354.9 MB, free: 216 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002208/0.09438, allocations: 1.283 MB / 356.2 MB, free: 14.93 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005556/0.09496, allocations: 23.81 kB / 356.2 MB, free: 14.9 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002288/0.0952, allocations: 83.25 kB / 356.3 MB, free: 14.82 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006302/0.09584, allocations: 215.2 kB / 356.5 MB, free: 14.61 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006902/0.09654, allocations: 243.7 kB / 356.8 MB, free: 14.37 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008819/0.09744, allocations: 0.6397 MB / 357.4 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004041/0.09785, allocations: 300.3 kB / 357.7 MB, free: 13.42 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002574/0.09811, allocations: 234.8 kB / 357.9 MB, free: 13.19 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002634/0.09839, allocations: 274.2 kB / 358.2 MB, free: 12.92 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.948e-05/0.09845, allocations: 28 kB / 358.2 MB, free: 12.89 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001535/0.09861, allocations: 63.92 kB / 358.3 MB, free: 12.83 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.221e-05/0.09871, allocations: 115.4 kB / 358.4 MB, free: 12.71 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001168/0.09883, allocations: 177.2 kB / 358.6 MB, free: 12.54 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006233/0.09946, allocations: 0.756 MB / 359.3 MB, free: 11.78 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.795e-06/0.09947, allocations: 0 / 359.3 MB, free: 11.78 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.674e-06/0.09948, allocations: 0 / 359.3 MB, free: 11.78 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.278e-05/0.0995, allocations: 3.938 kB / 359.3 MB, free: 11.77 MB / 302.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.00129/0.1008, allocations: 0.9743 MB / 360.3 MB, free: 10.75 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.26e-05/0.1008, allocations: 8.031 kB / 360.3 MB, free: 10.74 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001306/0.101, allocations: 110.6 kB / 360.4 MB, free: 10.63 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007646/0.1017, allocations: 0.5842 MB / 361 MB, free: 10 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.401e-05/0.1018, allocations: 58 kB / 361.1 MB, free: 9.945 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.817e-05/0.1019, allocations: 83.91 kB / 361.1 MB, free: 9.863 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001173/0.1031, allocations: 0.8364 MB / 362 MB, free: 8.918 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.916e-05/0.1031, allocations: 4 kB / 362 MB, free: 8.914 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.403e-05/0.1032, allocations: 32 kB / 362 MB, free: 8.883 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.791e-05/0.1032, allocations: 31.89 kB / 362 MB, free: 8.852 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008361/0.1041, allocations: 471.3 kB / 362.5 MB, free: 8.391 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003691/0.1078, allocations: 4.408 MB / 366.9 MB, free: 3.789 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005298/0.1083, allocations: 299.5 kB / 367.2 MB, free: 3.488 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001973/0.1085, allocations: 166.6 kB / 367.4 MB, free: 3.289 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.796e-05/0.1086, allocations: 42.94 kB / 367.4 MB, free: 3.238 MB / 302.1 MB Notification: Performance of pre-optimization done (n=46): time 2.384e-06/0.1086, allocations: 0 / 367.4 MB, free: 3.238 MB / 302.1 MB Notification: Performance of matching and sorting (n=57): time 0.003129/0.1117, allocations: 1.741 MB / 369.2 MB, free: 1.414 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.986e-05/0.1118, allocations: 55.97 kB / 369.2 MB, free: 1.348 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005403/0.1123, allocations: 0.5314 MB / 369.7 MB, free: 0.8047 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.848e-05/0.1123, allocations: 37.7 kB / 369.8 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002839/0.1126, allocations: 478.4 kB / 370.2 MB, free: 292 kB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001336/0.1128, allocations: 213 kB / 370.4 MB, free: 76 kB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.423e-05/0.1128, allocations: 16 kB / 370.5 MB, free: 60 kB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.1456/0.2584, allocations: 382.6 kB / 370.8 MB, free: 24.18 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004671/0.2589, allocations: 158.7 kB / 371 MB, free: 24.18 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00044/0.2594, allocations: 456.9 kB / 371.4 MB, free: 23.83 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000406/0.2598, allocations: 239.9 kB / 371.7 MB, free: 23.83 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.452e-06/0.2598, allocations: 2.375 kB / 371.7 MB, free: 23.83 MB / 302.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001215/0.261, allocations: 0.7342 MB / 372.4 MB, free: 23.72 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.284e-05/0.2611, allocations: 9.406 kB / 372.4 MB, free: 23.72 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.659e-05/0.2611, allocations: 10.95 kB / 372.4 MB, free: 23.72 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001654/0.2613, allocations: 50.84 kB / 372.5 MB, free: 23.71 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005736/0.2619, allocations: 180.6 kB / 372.7 MB, free: 23.7 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009538/0.2628, allocations: 1.517 MB / 374.2 MB, free: 22.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003158/0.2631, allocations: 27.64 kB / 374.2 MB, free: 22.36 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.975e-05/0.2632, allocations: 36.92 kB / 374.2 MB, free: 22.36 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 (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.0002977/0.2635, allocations: 235.8 kB / 374.5 MB, free: 22.23 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001038/0.2636, allocations: 75.42 kB / 374.5 MB, free: 22.23 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001421/0.2638, allocations: 77.41 kB / 374.6 MB, free: 22.22 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.747e-06/0.2638, allocations: 5.531 kB / 374.6 MB, free: 22.22 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.2638, allocations: 3.25 kB / 374.6 MB, free: 22.22 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.476e-06/0.2638, allocations: 6.656 kB / 374.6 MB, free: 22.22 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001767/0.2656, allocations: 1.426 MB / 376.1 MB, free: 21.61 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.89e-06/0.2656, allocations: 6.188 kB / 376.1 MB, free: 21.61 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004763/0.2661, allocations: 115.2 kB / 376.2 MB, free: 21.6 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.621e-05/0.2662, allocations: 19.81 kB / 376.2 MB, free: 21.59 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.822e-05/0.2662, allocations: 14.98 kB / 376.2 MB, free: 21.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005696/0.2668, allocations: 1.28 MB / 377.5 MB, free: 20.29 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/0.2668, allocations: 9.172 kB / 377.5 MB, free: 20.28 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009204/0.2677, allocations: 0.9111 MB / 378.4 MB, free: 19.65 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.96e-05/0.2678, allocations: 132.8 kB / 378.5 MB, free: 19.52 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.525e-05/0.2679, allocations: 16.42 kB / 378.6 MB, free: 19.51 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002067/0.2681, allocations: 14.2 kB / 378.6 MB, free: 19.5 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.168e-05/0.2682, allocations: 48.31 kB / 378.6 MB, free: 19.49 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.627e-05/0.2682, allocations: 18.5 kB / 378.6 MB, free: 19.48 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003715/0.2686, allocations: 357.8 kB / 379 MB, free: 19.32 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2686, allocations: 0 / 379 MB, free: 19.32 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006775/0.2693, allocations: 138 kB / 379.1 MB, free: 19.3 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 (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.0001181/0.2694, allocations: 123.2 kB / 379.2 MB, free: 19.19 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008888/0.2703, allocations: 0.5762 MB / 379.8 MB, free: 18.93 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.2703, allocations: 1.094 kB / 379.8 MB, free: 18.93 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003491/0.2707, allocations: 308.5 kB / 380.1 MB, free: 18.75 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004337/0.2711, allocations: 89.7 kB / 380.2 MB, free: 18.71 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002403/0.2735, allocations: 2.298 MB / 382.5 MB, free: 17.12 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003841/0.2739, allocations: 0.9856 MB / 383.5 MB, free: 16.4 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002772/0.2742, allocations: 82.81 kB / 383.6 MB, free: 16.39 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001113/0.2743, allocations: 59.75 kB / 383.6 MB, free: 16.38 MB / 302.1 MB Notification: Performance of SimCode: time 6.62e-07/0.2743, allocations: 0 / 383.6 MB, free: 16.38 MB / 302.1 MB Notification: Performance of Templates: time 0.01027/0.2846, allocations: 4.85 MB / 388.5 MB, free: 15.47 MB / 302.1 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