Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001121/0.001121, allocations: 176 kB / 17.36 MB, free: 4.445 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.556/1.556, allocations: 205.6 MB / 223.7 MB, free: 8.938 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007144/0.0007144, allocations: 103.7 kB / 272.1 MB, free: 8.117 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002394/0.0002395, allocations: 8 kB / 329 MB, free: 15.06 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2242/0.2245, allocations: 47.58 MB / 376.6 MB, free: 45.57 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.003571/0.2281, allocations: 3.918 MB / 380.5 MB, free: 42.49 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002272/0.2304, allocations: 1.686 MB / 382.2 MB, free: 40.95 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004462/0.2309, allocations: 25.09 kB / 382.2 MB, free: 40.94 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002593/0.2311, allocations: 129.3 kB / 382.4 MB, free: 40.82 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003161/0.2315, allocations: 132.2 kB / 382.5 MB, free: 40.71 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006208/0.2321, allocations: 316.8 kB / 382.8 MB, free: 40.45 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008038/0.2329, allocations: 0.9234 MB / 383.7 MB, free: 39.9 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005208/0.2334, allocations: 380.2 kB / 384.1 MB, free: 39.66 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003635/0.2338, allocations: 256.8 kB / 384.3 MB, free: 39.52 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002532/0.2341, allocations: 287.4 kB / 384.6 MB, free: 39.31 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.139e-05/0.2341, allocations: 30.66 kB / 384.6 MB, free: 39.31 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002201/0.2344, allocations: 69.42 kB / 384.7 MB, free: 39.29 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.046e-05/0.2345, allocations: 116.6 kB / 384.8 MB, free: 39.2 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002772/0.2347, allocations: 389.4 kB / 385.2 MB, free: 38.91 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007599/0.2355, allocations: 0.9382 MB / 386.1 MB, free: 38.19 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.2355, allocations: 5.062 kB / 386.2 MB, free: 38.18 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.2355, allocations: 0 / 386.2 MB, free: 38.18 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.19e-05/0.2356, allocations: 0 / 386.2 MB, free: 38.18 MB / 298.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.001345/0.2369, allocations: 0.9881 MB / 387.1 MB, free: 37.36 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.111e-05/0.237, allocations: 8.844 kB / 387.2 MB, free: 37.36 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001428/0.2371, allocations: 107 kB / 387.3 MB, free: 37.31 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007091/0.2378, allocations: 0.594 MB / 387.8 MB, free: 36.79 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.419e-05/0.2379, allocations: 61.69 kB / 387.9 MB, free: 36.76 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001038/0.238, allocations: 80.88 kB / 388 MB, free: 36.73 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001115/0.2391, allocations: 0.8438 MB / 388.8 MB, free: 35.92 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.025e-05/0.2392, allocations: 11.94 kB / 388.8 MB, free: 35.91 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.813e-05/0.2392, allocations: 32 kB / 388.9 MB, free: 35.88 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.502e-05/0.2392, allocations: 24 kB / 388.9 MB, free: 35.85 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007484/0.24, allocations: 471.3 kB / 389.4 MB, free: 35.39 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002578/0.2426, allocations: 4.408 MB / 393.8 MB, free: 30.79 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004535/0.2431, allocations: 311 kB / 394.1 MB, free: 30.48 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001895/0.2433, allocations: 145.5 kB / 394.2 MB, free: 30.33 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001985/0.2435, allocations: 174.6 kB / 394.4 MB, free: 30.12 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.56e-05/0.2435, allocations: 38.88 kB / 394.4 MB, free: 30.08 MB / 298.7 MB Notification: Performance of pre-optimization done (n=46): time 2.014e-06/0.2435, allocations: 0 / 394.4 MB, free: 30.08 MB / 298.7 MB Notification: Performance of matching and sorting (n=57): time 0.002771/0.2463, allocations: 1.735 MB / 396.2 MB, free: 28.25 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.553e-05/0.2463, allocations: 55.97 kB / 396.2 MB, free: 28.18 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004498/0.2468, allocations: 0.5352 MB / 396.7 MB, free: 27.63 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.982e-05/0.2468, allocations: 37.7 kB / 396.8 MB, free: 27.59 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001774/0.247, allocations: 474.4 kB / 397.2 MB, free: 27.12 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001028/0.2471, allocations: 216.9 kB / 397.5 MB, free: 26.9 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.136e-05/0.2471, allocations: 16 kB / 397.5 MB, free: 26.89 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.637e-05/0.2472, allocations: 382.8 kB / 397.8 MB, free: 26.5 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002502/0.2475, allocations: 157.9 kB / 398 MB, free: 26.35 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003168/0.2478, allocations: 455.1 kB / 398.4 MB, free: 25.77 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005904/0.2484, allocations: 0.675 MB / 399.1 MB, free: 24.96 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.2484, allocations: 4 kB / 399.1 MB, free: 24.96 MB / 298.7 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.0008453/0.2493, allocations: 0.7342 MB / 399.9 MB, free: 24.22 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.929e-05/0.2493, allocations: 8 kB / 399.9 MB, free: 24.21 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.212e-05/0.2493, allocations: 12 kB / 399.9 MB, free: 24.2 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000154/0.2495, allocations: 52.78 kB / 399.9 MB, free: 24.14 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005027/0.25, allocations: 180.3 kB / 400.1 MB, free: 23.97 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008572/0.2508, allocations: 1.518 MB / 401.6 MB, free: 22.32 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002532/0.2511, allocations: 28.06 kB / 401.7 MB, free: 22.29 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.552e-05/0.2512, allocations: 40 kB / 401.7 MB, free: 22.25 MB / 298.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 (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.0002201/0.2514, allocations: 237.5 kB / 401.9 MB, free: 22.01 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.92e-05/0.2515, allocations: 67.16 kB / 402 MB, free: 21.95 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.107e-05/0.2516, allocations: 75.08 kB / 402.1 MB, free: 21.87 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.2516, allocations: 7.938 kB / 402.1 MB, free: 21.86 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.2516, allocations: 0 / 402.1 MB, free: 21.86 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.2516, allocations: 3.984 kB / 402.1 MB, free: 21.86 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00138/0.253, allocations: 1.431 MB / 403.5 MB, free: 20.32 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/0.253, allocations: 4.344 kB / 403.5 MB, free: 20.32 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004565/0.2535, allocations: 119.8 kB / 403.6 MB, free: 20.2 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.348e-05/0.2536, allocations: 24.84 kB / 403.6 MB, free: 20.17 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.562e-05/0.2536, allocations: 12 kB / 403.7 MB, free: 20.16 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005049/0.2541, allocations: 1.272 MB / 404.9 MB, free: 18.75 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.2541, allocations: 4 kB / 404.9 MB, free: 18.75 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007833/0.2549, allocations: 0.78 MB / 405.7 MB, free: 17.92 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.778e-05/0.255, allocations: 140.2 kB / 405.9 MB, free: 17.76 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.952e-05/0.2551, allocations: 16 kB / 405.9 MB, free: 17.75 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000191/0.2553, allocations: 15.98 kB / 405.9 MB, free: 17.73 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.693e-05/0.2553, allocations: 43.98 kB / 405.9 MB, free: 17.69 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.116e-05/0.2554, allocations: 19.94 kB / 405.9 MB, free: 17.67 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002978/0.2557, allocations: 359.1 kB / 406.3 MB, free: 17.32 MB / 298.7 MB Notification: Performance of sort global known variables: time 2e-07/0.2557, allocations: 0 / 406.3 MB, free: 17.32 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005137/0.2562, allocations: 140 kB / 406.4 MB, free: 17.18 MB / 298.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 (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.0001058/0.2563, allocations: 115.7 kB / 406.5 MB, free: 17.06 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007146/0.257, allocations: 0.5889 MB / 407.1 MB, free: 16.46 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.257, allocations: 0 / 407.1 MB, free: 16.46 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002949/0.2573, allocations: 310.1 kB / 407.4 MB, free: 16.14 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007564/0.2581, allocations: 106.6 kB / 407.5 MB, free: 16.04 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00223/0.2603, allocations: 2.393 MB / 409.9 MB, free: 13.59 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003044/0.2607, allocations: 0.9652 MB / 410.9 MB, free: 12.6 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002423/0.2609, allocations: 81.92 kB / 411 MB, free: 12.52 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001027/0.261, allocations: 59.42 kB / 411 MB, free: 12.46 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.261, allocations: 4 kB / 411 MB, free: 12.45 MB / 298.7 MB Notification: Performance of Templates: time 0.00881/0.2698, allocations: 5.017 MB / 416.1 MB, free: 7.445 MB / 298.7 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