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.0009575/0.0009575, allocations: 93.45 kB / 16.65 MB, free: 6.535 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.001195/0.001195, allocations: 175.9 kB / 17.56 MB, free: 6.18 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.334/1.334, allocations: 223.3 MB / 241.6 MB, free: 196 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002871/0.0002871, allocations: 8 kB / 301.4 MB, free: 6.137 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1208/0.1211, allocations: 50.41 MB / 351.8 MB, free: 3.711 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.004784/0.1259, allocations: 4.138 MB / 356 MB, free: 15.55 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002967/0.129, allocations: 1.294 MB / 357.3 MB, free: 14.25 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007469/0.1297, allocations: 19.88 kB / 357.3 MB, free: 14.23 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004221/0.1302, allocations: 134.9 kB / 357.4 MB, free: 14.1 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004474/0.1306, allocations: 134.8 kB / 357.5 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008439/0.1315, allocations: 319.7 kB / 357.9 MB, free: 13.65 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008935/0.1324, allocations: 0.9118 MB / 358.8 MB, free: 12.73 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005403/0.1329, allocations: 374.9 kB / 359.1 MB, free: 12.35 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000391/0.1333, allocations: 254.5 kB / 359.4 MB, free: 12.1 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002824/0.1336, allocations: 286.1 kB / 359.7 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.604e-05/0.1337, allocations: 28 kB / 359.7 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001829/0.1339, allocations: 75.91 kB / 359.8 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.503e-05/0.134, allocations: 119.4 kB / 359.9 MB, free: 11.6 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000316/0.1343, allocations: 395.2 kB / 360.3 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008393/0.1352, allocations: 0.9455 MB / 361.2 MB, free: 10.25 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.304e-06/0.1352, allocations: 4 kB / 361.2 MB, free: 10.25 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.1352, allocations: 0 / 361.2 MB, free: 10.25 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.239e-05/0.1352, allocations: 4 kB / 361.2 MB, free: 10.25 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.001367/0.1366, allocations: 0.9743 MB / 362.2 MB, free: 9.223 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.03e-05/0.1366, allocations: 8.031 kB / 362.2 MB, free: 9.215 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000127/0.1368, allocations: 106.7 kB / 362.3 MB, free: 9.109 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007557/0.1375, allocations: 0.5915 MB / 362.9 MB, free: 8.473 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.114e-05/0.1376, allocations: 66 kB / 363 MB, free: 8.406 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001115/0.1377, allocations: 79.98 kB / 363 MB, free: 8.328 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001338/0.139, allocations: 0.8559 MB / 363.9 MB, free: 7.363 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.372e-05/0.1391, allocations: 11.84 kB / 363.9 MB, free: 7.352 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.285e-05/0.1392, allocations: 36 kB / 363.9 MB, free: 7.316 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.1e-05/0.1392, allocations: 20 kB / 364 MB, free: 7.297 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008697/0.1401, allocations: 479.3 kB / 364.4 MB, free: 6.828 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003654/0.1437, allocations: 4.404 MB / 368.8 MB, free: 2.23 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005619/0.1443, allocations: 311.4 kB / 369.1 MB, free: 1.918 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002354/0.1446, allocations: 145.6 kB / 369.3 MB, free: 1.773 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002255/0.1448, allocations: 166.6 kB / 369.4 MB, free: 1.574 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.418e-05/0.1448, allocations: 38.94 kB / 369.5 MB, free: 1.527 MB / 302.1 MB Notification: Performance of pre-optimization done (n=46): time 2.264e-06/0.1448, allocations: 0 / 369.5 MB, free: 1.527 MB / 302.1 MB Notification: Performance of matching and sorting (n=57): time 0.2233/0.3681, allocations: 1.74 MB / 371.2 MB, free: 24.7 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.412e-05/0.3682, allocations: 60.92 kB / 371.3 MB, free: 24.64 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009475/0.3692, allocations: 0.5359 MB / 371.8 MB, free: 24.51 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.816e-05/0.3692, allocations: 34.52 kB / 371.8 MB, free: 24.48 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003141/0.3696, allocations: 486.5 kB / 372.3 MB, free: 24.23 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001845/0.3698, allocations: 208.9 kB / 372.5 MB, free: 24.1 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.186e-05/0.3699, allocations: 68.95 kB / 372.6 MB, free: 24.09 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001188/0.37, allocations: 382.8 kB / 373 MB, free: 23.77 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003453/0.3703, allocations: 164 kB / 373.1 MB, free: 23.77 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004662/0.3708, allocations: 460.6 kB / 373.6 MB, free: 23.43 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008864/0.3717, allocations: 0.6711 MB / 374.3 MB, free: 23.06 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.18e-05/0.3717, allocations: 2.688 kB / 374.3 MB, free: 23.06 MB / 302.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001426/0.3732, allocations: 0.7434 MB / 375 MB, free: 22.86 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.903e-05/0.3732, allocations: 9.641 kB / 375 MB, free: 22.86 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.028e-05/0.3732, allocations: 9.75 kB / 375 MB, free: 22.86 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002433/0.3735, allocations: 54.81 kB / 375.1 MB, free: 22.85 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005944/0.3741, allocations: 179.4 kB / 375.2 MB, free: 22.83 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001091/0.3752, allocations: 1.515 MB / 376.8 MB, free: 21.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004092/0.3756, allocations: 29.88 kB / 376.8 MB, free: 21.35 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.219e-05/0.3757, allocations: 46.86 kB / 376.8 MB, free: 21.33 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.000318/0.376, allocations: 234.8 kB / 377.1 MB, free: 21.14 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.658e-05/0.3761, allocations: 67.19 kB / 377.1 MB, free: 21.1 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001297/0.3762, allocations: 77.88 kB / 377.2 MB, free: 21.05 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.031e-06/0.3762, allocations: 5.5 kB / 377.2 MB, free: 21.05 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.324e-05/0.3763, allocations: 0.9688 kB / 377.2 MB, free: 21.05 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.147e-06/0.3763, allocations: 5.297 kB / 377.2 MB, free: 21.05 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001774/0.378, allocations: 1.426 MB / 378.6 MB, free: 20.19 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/0.3781, allocations: 3.094 kB / 378.6 MB, free: 20.19 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004614/0.3785, allocations: 118.1 kB / 378.8 MB, free: 20.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.721e-05/0.3786, allocations: 23.62 kB / 378.8 MB, free: 20.16 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.282e-05/0.3787, allocations: 19.5 kB / 378.8 MB, free: 20.15 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006591/0.3793, allocations: 1.272 MB / 380.1 MB, free: 18.85 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.522e-06/0.3794, allocations: 9.906 kB / 380.1 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001047/0.3804, allocations: 0.7816 MB / 380.9 MB, free: 18.37 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.005e-05/0.3805, allocations: 136.2 kB / 381 MB, free: 18.24 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.393e-05/0.3806, allocations: 15.95 kB / 381 MB, free: 18.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000208/0.3808, allocations: 19.88 kB / 381 MB, free: 18.22 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.395e-05/0.3809, allocations: 47.25 kB / 381.1 MB, free: 18.21 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.687e-05/0.3809, allocations: 17.92 kB / 381.1 MB, free: 18.2 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003968/0.3813, allocations: 364.3 kB / 381.5 MB, free: 18.04 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.3813, allocations: 0 / 381.5 MB, free: 18.04 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007307/0.3821, allocations: 138.2 kB / 381.6 MB, free: 18.02 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.0001233/0.3822, allocations: 123.5 kB / 381.7 MB, free: 17.91 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009856/0.3832, allocations: 0.5929 MB / 382.3 MB, free: 17.63 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.397e-06/0.3832, allocations: 1.156 kB / 382.3 MB, free: 17.63 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003428/0.3836, allocations: 310.9 kB / 382.6 MB, free: 17.46 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008106/0.3844, allocations: 95.8 kB / 382.7 MB, free: 17.41 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002647/0.387, allocations: 2.388 MB / 385.1 MB, free: 15.73 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004333/0.3875, allocations: 0.9655 MB / 386.1 MB, free: 15.02 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002983/0.3878, allocations: 87.05 kB / 386.1 MB, free: 15 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001226/0.3879, allocations: 59.12 kB / 386.2 MB, free: 14.99 MB / 302.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3879, allocations: 0 / 386.2 MB, free: 14.99 MB / 302.1 MB Notification: Performance of Templates: time 0.01158/0.3995, allocations: 5.007 MB / 391.2 MB, free: 13.8 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches