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.0008122/0.0008123, allocations: 94.56 kB / 17.31 MB, free: 5.656 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.0008467/0.0008467, allocations: 179.9 kB / 18.21 MB, free: 5.25 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.113/1.113, allocations: 223.3 MB / 242.3 MB, free: 14.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002147/0.0002147, allocations: 11.94 kB / 302.1 MB, free: 5.883 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07109/0.07132, allocations: 50.41 MB / 352.5 MB, free: 3.461 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.003674/0.07502, allocations: 4.146 MB / 356.6 MB, free: 15.29 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001853/0.0769, allocations: 1.29 MB / 357.9 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003895/0.07731, allocations: 23.81 kB / 357.9 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002755/0.07759, allocations: 134.9 kB / 358.1 MB, free: 13.84 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003413/0.07794, allocations: 126.9 kB / 358.2 MB, free: 13.71 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005526/0.0785, allocations: 323.7 kB / 358.5 MB, free: 13.4 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000792/0.0793, allocations: 0.9235 MB / 359.4 MB, free: 12.47 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004302/0.07974, allocations: 370.9 kB / 359.8 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002761/0.08002, allocations: 258.6 kB / 360.1 MB, free: 11.83 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002558/0.08029, allocations: 290 kB / 360.3 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.275e-05/0.08035, allocations: 28 kB / 360.4 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001519/0.08051, allocations: 75.91 kB / 360.4 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.493e-05/0.0806, allocations: 111.4 kB / 360.6 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002527/0.08086, allocations: 395.2 kB / 360.9 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005358/0.0814, allocations: 0.7599 MB / 361.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.08141, allocations: 0 / 361.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.08142, allocations: 0 / 361.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.521e-05/0.08144, allocations: 0 / 361.7 MB, free: 10.18 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.001124/0.08257, allocations: 0.986 MB / 362.7 MB, free: 9.145 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.477e-05/0.0826, allocations: 8.031 kB / 362.7 MB, free: 9.137 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001212/0.08272, allocations: 106.7 kB / 362.8 MB, free: 9.031 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006438/0.08337, allocations: 0.5954 MB / 363.4 MB, free: 8.391 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.631e-05/0.08342, allocations: 62 kB / 363.5 MB, free: 8.328 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.898e-05/0.08351, allocations: 80 kB / 363.5 MB, free: 8.25 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00112/0.08464, allocations: 0.8559 MB / 364.4 MB, free: 7.285 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.018e-05/0.08468, allocations: 7.906 kB / 364.4 MB, free: 7.277 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.287e-05/0.08474, allocations: 35.94 kB / 364.4 MB, free: 7.242 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.688e-05/0.08476, allocations: 24 kB / 364.5 MB, free: 7.219 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007796/0.08554, allocations: 479.2 kB / 364.9 MB, free: 6.75 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002928/0.08848, allocations: 4.404 MB / 369.3 MB, free: 2.152 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004767/0.08897, allocations: 303.5 kB / 369.6 MB, free: 1.848 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001999/0.08918, allocations: 141.6 kB / 369.8 MB, free: 1.707 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001533/0.08935, allocations: 170.6 kB / 369.9 MB, free: 1.504 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.06e-05/0.08938, allocations: 42.94 kB / 370 MB, free: 1.453 MB / 302.1 MB Notification: Performance of pre-optimization done (n=46): time 1.423e-06/0.08938, allocations: 0 / 370 MB, free: 1.453 MB / 302.1 MB Notification: Performance of matching and sorting (n=57): time 0.1315/0.2209, allocations: 1.735 MB / 371.7 MB, free: 24.41 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.187e-05/0.2209, allocations: 59.08 kB / 371.8 MB, free: 24.35 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000664/0.2216, allocations: 0.5358 MB / 372.3 MB, free: 24.23 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.659e-05/0.2216, allocations: 38.73 kB / 372.3 MB, free: 24.2 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002169/0.2219, allocations: 484.2 kB / 372.8 MB, free: 23.94 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000116/0.222, allocations: 209.4 kB / 373 MB, free: 23.81 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.206e-05/0.2221, allocations: 69.16 kB / 373.1 MB, free: 23.79 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.323e-05/0.2222, allocations: 387.4 kB / 373.5 MB, free: 23.48 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002768/0.2224, allocations: 159.7 kB / 373.6 MB, free: 23.48 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003628/0.2228, allocations: 460.5 kB / 374.1 MB, free: 23.13 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007237/0.2235, allocations: 0.6722 MB / 374.7 MB, free: 22.76 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.382e-06/0.2236, allocations: 2.969 kB / 374.7 MB, free: 22.76 MB / 302.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001051/0.2246, allocations: 0.7447 MB / 375.5 MB, free: 22.55 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.936e-05/0.2246, allocations: 8.906 kB / 375.5 MB, free: 22.55 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.049e-05/0.2247, allocations: 9.5 kB / 375.5 MB, free: 22.55 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001569/0.2248, allocations: 55.22 kB / 375.6 MB, free: 22.54 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004923/0.2253, allocations: 186.6 kB / 375.7 MB, free: 22.52 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008189/0.2262, allocations: 1.511 MB / 377.2 MB, free: 21.05 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002944/0.2265, allocations: 32.84 kB / 377.3 MB, free: 21.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.779e-05/0.2265, allocations: 36.78 kB / 377.3 MB, free: 21.03 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.0002139/0.2267, allocations: 233.5 kB / 377.5 MB, free: 20.83 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.634e-05/0.2268, allocations: 73.91 kB / 377.6 MB, free: 20.79 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001063/0.2269, allocations: 73.47 kB / 377.7 MB, free: 20.74 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.2269, allocations: 4.75 kB / 377.7 MB, free: 20.74 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.2269, allocations: 1.906 kB / 377.7 MB, free: 20.74 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.752e-06/0.227, allocations: 3.281 kB / 377.7 MB, free: 20.74 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001528/0.2285, allocations: 1.423 MB / 379.1 MB, free: 19.89 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.523e-06/0.2285, allocations: 2.75 kB / 379.1 MB, free: 19.89 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004095/0.2289, allocations: 115.1 kB / 379.2 MB, free: 19.88 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.287e-05/0.229, allocations: 35.45 kB / 379.3 MB, free: 19.86 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.525e-05/0.229, allocations: 20.33 kB / 379.3 MB, free: 19.85 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004794/0.2295, allocations: 1.276 MB / 380.6 MB, free: 18.54 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.2295, allocations: 3.031 kB / 380.6 MB, free: 18.54 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007791/0.2303, allocations: 0.7846 MB / 381.4 MB, free: 18.06 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.271e-05/0.2304, allocations: 133 kB / 381.5 MB, free: 17.93 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.711e-05/0.2304, allocations: 16.27 kB / 381.5 MB, free: 17.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001855/0.2306, allocations: 15.33 kB / 381.5 MB, free: 17.92 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.299e-05/0.2307, allocations: 46.27 kB / 381.6 MB, free: 17.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.245e-05/0.2307, allocations: 27 kB / 381.6 MB, free: 17.89 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003097/0.231, allocations: 359.3 kB / 381.9 MB, free: 17.73 MB / 302.1 MB Notification: Performance of sort global known variables: time 9e-08/0.231, allocations: 1.625 kB / 381.9 MB, free: 17.73 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005398/0.2316, allocations: 140.4 kB / 382.1 MB, free: 17.71 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 8.896e-05/0.2317, allocations: 124 kB / 382.2 MB, free: 17.6 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007154/0.2324, allocations: 0.5875 MB / 382.8 MB, free: 17.33 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.2324, allocations: 9.078 kB / 382.8 MB, free: 17.32 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003198/0.2327, allocations: 306.9 kB / 383.1 MB, free: 17.15 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006952/0.2334, allocations: 93.7 kB / 383.2 MB, free: 17.11 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002124/0.2356, allocations: 2.414 MB / 385.6 MB, free: 15.4 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003558/0.2359, allocations: 0.966 MB / 386.6 MB, free: 14.69 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001219/0.2361, allocations: 63.97 kB / 386.6 MB, free: 14.68 MB / 302.1 MB Notification: Performance of SimCode: time 1.9e-07/0.2361, allocations: 0 / 386.6 MB, free: 14.68 MB / 302.1 MB Notification: Performance of Templates: time 0.01098/0.2471, allocations: 12.18 MB / 398.8 MB, free: 9.203 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/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