Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008353/0.0008354, allocations: 177.3 kB / 16.71 MB, free: 5.09 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.197/1.197, allocations: 225.7 MB / 243.2 MB, free: 8.461 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007983/0.0007984, allocations: 100.4 kB / 294.4 MB, free: 9.496 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002714/0.0002714, allocations: 8 kB / 354.2 MB, free: 13.63 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.206/0.2063, allocations: 50.4 MB / 404.6 MB, free: 31.34 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.002994/0.2093, allocations: 3.93 MB / 408.5 MB, free: 27.39 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001375/0.2107, allocations: 1.642 MB / 410.1 MB, free: 25.66 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000239/0.2109, allocations: 27.12 kB / 410.2 MB, free: 25.64 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002182/0.2112, allocations: 126.9 kB / 410.3 MB, free: 25.51 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002221/0.2114, allocations: 134.8 kB / 410.4 MB, free: 25.38 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004468/0.2118, allocations: 313.8 kB / 410.7 MB, free: 25.07 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005559/0.2124, allocations: 0.9196 MB / 411.6 MB, free: 24.15 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003849/0.2128, allocations: 374.9 kB / 412 MB, free: 23.76 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001887/0.213, allocations: 262.5 kB / 412.3 MB, free: 23.5 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001931/0.2132, allocations: 286.1 kB / 412.5 MB, free: 23.22 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.836e-05/0.2133, allocations: 35.94 kB / 412.6 MB, free: 23.19 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001334/0.2134, allocations: 67.92 kB / 412.7 MB, free: 23.12 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.682e-05/0.2135, allocations: 115.4 kB / 412.8 MB, free: 23.01 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001895/0.2137, allocations: 387.2 kB / 413.1 MB, free: 22.62 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005148/0.2142, allocations: 0.9508 MB / 414.1 MB, free: 21.67 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.2142, allocations: 0 / 414.1 MB, free: 21.67 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.344e-06/0.2142, allocations: 0 / 414.1 MB, free: 21.67 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.548e-06/0.2142, allocations: 3.938 kB / 414.1 MB, free: 21.66 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.0009985/0.2152, allocations: 0.9743 MB / 415.1 MB, free: 20.64 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.476e-05/0.2153, allocations: 12.03 kB / 415.1 MB, free: 20.63 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001047/0.2154, allocations: 102.7 kB / 415.2 MB, free: 20.53 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005674/0.216, allocations: 0.5956 MB / 415.8 MB, free: 19.89 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.075e-05/0.216, allocations: 58 kB / 415.8 MB, free: 19.83 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.897e-05/0.2161, allocations: 83.91 kB / 415.9 MB, free: 19.75 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009415/0.217, allocations: 0.8403 MB / 416.8 MB, free: 18.8 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.747e-05/0.2171, allocations: 15.84 kB / 416.8 MB, free: 18.78 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.407e-05/0.2171, allocations: 36 kB / 416.8 MB, free: 18.75 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.337e-05/0.2171, allocations: 24 kB / 416.8 MB, free: 18.72 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000676/0.2178, allocations: 467.3 kB / 417.3 MB, free: 18.27 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002201/0.22, allocations: 4.412 MB / 421.7 MB, free: 13.66 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004357/0.2205, allocations: 299.6 kB / 422 MB, free: 13.36 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001812/0.2207, allocations: 149.5 kB / 422.1 MB, free: 13.21 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001502/0.2208, allocations: 162.6 kB / 422.3 MB, free: 13.02 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.789e-05/0.2209, allocations: 38.94 kB / 422.3 MB, free: 12.97 MB / 298.7 MB Notification: Performance of pre-optimization done (n=46): time 1.513e-06/0.2209, allocations: 0 / 422.3 MB, free: 12.97 MB / 298.7 MB Notification: Performance of matching and sorting (n=57): time 0.002402/0.2233, allocations: 1.745 MB / 424.1 MB, free: 11.14 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.986e-05/0.2233, allocations: 59.91 kB / 424.1 MB, free: 11.07 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000389/0.2237, allocations: 0.5352 MB / 424.7 MB, free: 10.52 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.718e-05/0.2237, allocations: 33.7 kB / 424.7 MB, free: 10.48 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001686/0.2239, allocations: 478.5 kB / 425.2 MB, free: 10 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.566e-05/0.224, allocations: 212.9 kB / 425.4 MB, free: 9.793 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.137e-05/0.224, allocations: 20 kB / 425.4 MB, free: 9.773 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.677e-05/0.2241, allocations: 382.8 kB / 425.8 MB, free: 9.391 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002355/0.2243, allocations: 161.9 kB / 425.9 MB, free: 9.23 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000295/0.2246, allocations: 455.2 kB / 426.4 MB, free: 8.652 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005509/0.2252, allocations: 0.6673 MB / 427 MB, free: 7.852 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.2252, allocations: 4 kB / 427 MB, free: 7.848 MB / 298.7 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.0008002/0.226, allocations: 0.7461 MB / 427.8 MB, free: 7.09 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.478e-05/0.226, allocations: 11.94 kB / 427.8 MB, free: 7.078 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.667e-06/0.2261, allocations: 12.16 kB / 427.8 MB, free: 7.066 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001244/0.2262, allocations: 44.84 kB / 427.9 MB, free: 7.02 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004762/0.2267, allocations: 183.7 kB / 428 MB, free: 6.84 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007764/0.2275, allocations: 1.51 MB / 429.6 MB, free: 5.195 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002451/0.2277, allocations: 24 kB / 429.6 MB, free: 5.172 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.334e-05/0.2278, allocations: 40 kB / 429.6 MB, free: 5.133 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.000191/0.228, allocations: 237.5 kB / 429.8 MB, free: 4.891 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.353e-05/0.228, allocations: 75.06 kB / 429.9 MB, free: 4.816 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001027/0.2281, allocations: 75.14 kB / 430 MB, free: 4.742 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.548e-06/0.2281, allocations: 11.94 kB / 430 MB, free: 4.73 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.101e-06/0.2282, allocations: 0 / 430 MB, free: 4.73 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.2282, allocations: 3.984 kB / 430 MB, free: 4.727 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001336/0.2295, allocations: 1.418 MB / 431.4 MB, free: 3.195 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.2295, allocations: 0 / 431.4 MB, free: 3.195 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000421/0.2299, allocations: 115.8 kB / 431.5 MB, free: 3.082 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.774e-05/0.23, allocations: 28.84 kB / 431.6 MB, free: 3.051 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.378e-05/0.23, allocations: 12 kB / 431.6 MB, free: 3.039 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004908/0.2305, allocations: 1.272 MB / 432.9 MB, free: 1.633 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.2306, allocations: 7.922 kB / 432.9 MB, free: 1.625 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007166/0.2313, allocations: 0.7839 MB / 433.6 MB, free: 0.7891 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.76e-05/0.2313, allocations: 136.3 kB / 433.8 MB, free: 0.6367 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.67e-05/0.2314, allocations: 16 kB / 433.8 MB, free: 0.6211 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001837/0.2316, allocations: 15.98 kB / 433.8 MB, free: 0.6055 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.477e-05/0.2317, allocations: 51.86 kB / 433.9 MB, free: 0.5547 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.93e-05/0.2317, allocations: 16 kB / 433.9 MB, free: 0.5391 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002531/0.2319, allocations: 359.1 kB / 434.2 MB, free: 196 kB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2319, allocations: 0 / 434.2 MB, free: 196 kB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004694/0.2324, allocations: 136 kB / 434.4 MB, free: 60 kB / 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.0001248/0.2325, allocations: 131.2 kB / 434.5 MB, free: 15.92 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007704/0.2333, allocations: 0.5757 MB / 435.1 MB, free: 15.34 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.2333, allocations: 0 / 435.1 MB, free: 15.34 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003497/0.2337, allocations: 312.2 kB / 435.4 MB, free: 15.02 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006921/0.2344, allocations: 100.2 kB / 435.5 MB, free: 14.93 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002443/0.2369, allocations: 2.382 MB / 437.8 MB, free: 12.48 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004377/0.2373, allocations: 0.9729 MB / 438.8 MB, free: 11.48 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002521/0.2376, allocations: 93.91 kB / 438.9 MB, free: 11.39 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001109/0.2377, allocations: 59.42 kB / 439 MB, free: 11.33 MB / 314.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2377, allocations: 0 / 439 MB, free: 11.33 MB / 314.7 MB Notification: Performance of Templates: time 0.009202/0.2469, allocations: 5.011 MB / 444 MB, free: 6.348 MB / 314.7 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