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: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002214/0.002214, allocations: 108.6 kB / 16.92 MB, free: 6.145 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.003084/0.003084, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.702/2.702, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002003/0.002003, allocations: 49.64 kB / 300.7 MB, free: 5.762 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1859/0.188, allocations: 49.44 MB / 350.2 MB, free: 4.312 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.01049/0.1985, allocations: 4.564 MB / 354.7 MB, free: 15.71 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004241/0.2028, allocations: 1.337 MB / 356.1 MB, free: 14.38 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001324/0.2042, allocations: 23.88 kB / 356.1 MB, free: 14.35 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008838/0.2051, allocations: 186.2 kB / 356.3 MB, free: 14.17 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001215/0.2065, allocations: 158.4 kB / 356.4 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00171/0.2082, allocations: 367.5 kB / 356.8 MB, free: 13.65 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002372/0.2106, allocations: 0.9704 MB / 357.7 MB, free: 12.68 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001145/0.2118, allocations: 422.9 kB / 358.2 MB, free: 12.24 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008121/0.2126, allocations: 322.6 kB / 358.5 MB, free: 11.92 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007531/0.2134, allocations: 342 kB / 358.8 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002674/0.2137, allocations: 72 kB / 358.9 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004842/0.2142, allocations: 123.9 kB / 359 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002926/0.2145, allocations: 167.3 kB / 359.2 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007214/0.2152, allocations: 421.5 kB / 359.6 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001811/0.217, allocations: 1.059 MB / 360.6 MB, free: 9.754 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.2171, allocations: 4 kB / 360.6 MB, free: 9.75 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.825e-06/0.2171, allocations: 0 / 360.6 MB, free: 9.75 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.868e-05/0.2172, allocations: 0 / 360.6 MB, free: 9.75 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.003069/0.2202, allocations: 1.149 MB / 361.8 MB, free: 8.551 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.666e-05/0.2203, allocations: 12.03 kB / 361.8 MB, free: 8.539 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002297/0.2206, allocations: 126.9 kB / 361.9 MB, free: 8.406 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002692/0.2208, allocations: 106.8 kB / 362 MB, free: 8.301 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001405/0.2223, allocations: 0.5838 MB / 362.6 MB, free: 7.676 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001824/0.2225, allocations: 62 kB / 362.7 MB, free: 7.613 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001633/0.2226, allocations: 83.84 kB / 362.8 MB, free: 7.531 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002281/0.2249, allocations: 0.8442 MB / 363.6 MB, free: 6.578 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.257e-05/0.225, allocations: 19.84 kB / 363.6 MB, free: 6.559 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.582e-05/0.2251, allocations: 35.98 kB / 363.7 MB, free: 6.523 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.685e-05/0.2252, allocations: 20 kB / 363.7 MB, free: 6.504 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001495/0.2267, allocations: 471.3 kB / 364.1 MB, free: 6.043 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006503/0.2332, allocations: 4.4 MB / 368.5 MB, free: 1.449 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008933/0.2342, allocations: 299.5 kB / 368.8 MB, free: 1.148 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000387/0.2346, allocations: 145.5 kB / 369 MB, free: 1.004 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003814/0.235, allocations: 162.6 kB / 369.1 MB, free: 0.8086 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.821e-05/0.235, allocations: 38.94 kB / 369.2 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of pre-optimization done (n=46): time 3.196e-06/0.235, allocations: 0 / 369.2 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of matching and sorting (n=57): time 0.2866/0.5217, allocations: 1.735 MB / 370.9 MB, free: 25.3 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.931e-05/0.5218, allocations: 59.92 kB / 371 MB, free: 25.24 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001534/0.5233, allocations: 0.5363 MB / 371.5 MB, free: 25.11 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.181e-05/0.5234, allocations: 35.42 kB / 371.5 MB, free: 25.07 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004981/0.5239, allocations: 482.1 kB / 372 MB, free: 24.8 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003082/0.5242, allocations: 211.3 kB / 372.2 MB, free: 24.64 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003379/0.5246, allocations: 141.2 kB / 372.3 MB, free: 24.57 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001878/0.5248, allocations: 385.7 kB / 372.7 MB, free: 24.22 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005998/0.5254, allocations: 161.1 kB / 372.9 MB, free: 24.17 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007893/0.5262, allocations: 458.5 kB / 373.3 MB, free: 23.75 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00143/0.5277, allocations: 0.6675 MB / 374 MB, free: 23.2 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.292e-05/0.5277, allocations: 6.75 kB / 374 MB, free: 23.2 MB / 302.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.002457/0.5302, allocations: 0.7371 MB / 374.7 MB, free: 22.88 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.874e-05/0.5303, allocations: 8.062 kB / 374.7 MB, free: 22.88 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.949e-05/0.5303, allocations: 13.41 kB / 374.8 MB, free: 22.87 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002882/0.5306, allocations: 51.45 kB / 374.8 MB, free: 22.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001141/0.5318, allocations: 177.7 kB / 375 MB, free: 22.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001883/0.5337, allocations: 1.688 MB / 376.7 MB, free: 21.2 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007499/0.5345, allocations: 25.59 kB / 376.7 MB, free: 21.19 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.773e-05/0.5346, allocations: 38.25 kB / 376.7 MB, free: 21.18 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.0006015/0.5352, allocations: 239.2 kB / 377 MB, free: 20.98 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002479/0.5354, allocations: 70.14 kB / 377 MB, free: 20.95 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002632/0.5357, allocations: 77.52 kB / 377.1 MB, free: 20.89 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-05/0.5358, allocations: 9.438 kB / 377.1 MB, free: 20.89 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.934e-05/0.5358, allocations: 3.344 kB / 377.1 MB, free: 20.89 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.446e-05/0.5358, allocations: 2.766 kB / 377.1 MB, free: 20.89 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004008/0.5398, allocations: 1.423 MB / 378.6 MB, free: 20.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.404e-05/0.5399, allocations: 2.812 kB / 378.6 MB, free: 20.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009224/0.5408, allocations: 112.5 kB / 378.7 MB, free: 20.01 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001549/0.541, allocations: 20.62 kB / 378.7 MB, free: 20 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001228/0.5411, allocations: 20.41 kB / 378.7 MB, free: 19.99 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001161/0.5423, allocations: 1.363 MB / 380.1 MB, free: 18.59 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-05/0.5424, allocations: 11.59 kB / 380.1 MB, free: 18.58 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002019/0.5444, allocations: 0.7773 MB / 380.9 MB, free: 18.11 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002631/0.5447, allocations: 137.6 kB / 381 MB, free: 17.97 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002011/0.5449, allocations: 20.52 kB / 381 MB, free: 17.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004501/0.5454, allocations: 9.719 kB / 381 MB, free: 17.96 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001551/0.5455, allocations: 43.19 kB / 381.1 MB, free: 17.95 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.558e-05/0.5456, allocations: 18.5 kB / 381.1 MB, free: 17.94 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0008903/0.5465, allocations: 367.2 kB / 381.4 MB, free: 17.78 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.5465, allocations: 1.156 kB / 381.4 MB, free: 17.78 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.00153/0.5481, allocations: 137.8 kB / 381.6 MB, free: 17.76 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.002208/0.5503, allocations: 1.345 MB / 382.9 MB, free: 16.73 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002039/0.5524, allocations: 0.612 MB / 383.5 MB, free: 16.44 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.822e-06/0.5524, allocations: 1.125 kB / 383.5 MB, free: 16.44 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007929/0.5532, allocations: 310.4 kB / 383.8 MB, free: 16.27 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001217/0.5544, allocations: 106.3 kB / 383.9 MB, free: 16.21 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01649/0.5709, allocations: 6.234 MB / 390.2 MB, free: 11.92 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001086/0.5721, allocations: 0.9634 MB / 391.1 MB, free: 11.21 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0007649/0.5729, allocations: 83.61 kB / 391.2 MB, free: 11.19 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000668/0.5736, allocations: 325.7 kB / 391.5 MB, free: 10.95 MB / 302.1 MB Notification: Performance of SimCode: time 2.285e-06/0.5736, allocations: 0 / 391.5 MB, free: 10.95 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05565/0.6293, allocations: 11.58 MB / 403.1 MB, free: 3.789 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.94/17.57, allocations: 9.75 kB / 403.1 MB, free: 3.781 MB / 302.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.csv","/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