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.001089/0.001089, allocations: 107.7 kB / 17.06 MB, free: 5.988 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.00119/0.00119, allocations: 195.9 kB / 18 MB, free: 5.07 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.38/1.38, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001053/0.001053, allocations: 47.92 kB / 350.8 MB, free: 3.766 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2838/0.2849, allocations: 49.44 MB / 400.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.006312/0.2913, allocations: 4.566 MB / 404.8 MB, free: 4.238 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002809/0.2941, allocations: 1.337 MB / 406.1 MB, free: 2.898 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008654/0.295, allocations: 23.88 kB / 406.2 MB, free: 2.875 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007013/0.2958, allocations: 178.2 kB / 406.3 MB, free: 2.699 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000804/0.2966, allocations: 166.3 kB / 406.5 MB, free: 2.535 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000922/0.2975, allocations: 367.5 kB / 406.8 MB, free: 2.176 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001062/0.2986, allocations: 0.9821 MB / 407.8 MB, free: 1.191 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005561/0.2992, allocations: 418.9 kB / 408.2 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003791/0.2995, allocations: 334.5 kB / 408.6 MB, free: 440 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000301/0.2999, allocations: 346 kB / 408.9 MB, free: 92 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.902e-05/0.3, allocations: 72 kB / 409 MB, free: 20 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002125/0.3002, allocations: 119.9 kB / 409.1 MB, free: 15.9 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001243/0.3003, allocations: 171.3 kB / 409.3 MB, free: 15.73 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003059/0.3006, allocations: 425.5 kB / 409.7 MB, free: 15.32 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001019/0.3016, allocations: 1.107 MB / 410.8 MB, free: 14.21 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.97e-06/0.3017, allocations: 0 / 410.8 MB, free: 14.21 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.3017, allocations: 0 / 410.8 MB, free: 14.21 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.143e-05/0.3017, allocations: 0 / 410.8 MB, free: 14.21 MB / 334.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.001539/0.3033, allocations: 1.175 MB / 412 MB, free: 12.98 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.335e-05/0.3033, allocations: 8.031 kB / 412 MB, free: 12.97 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001305/0.3034, allocations: 126.9 kB / 412.1 MB, free: 12.84 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001957/0.3036, allocations: 111.2 kB / 412.2 MB, free: 12.73 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008908/0.3045, allocations: 0.6351 MB / 412.8 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.542e-05/0.3046, allocations: 58 kB / 412.9 MB, free: 12 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001014/0.3047, allocations: 87.89 kB / 413 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00125/0.306, allocations: 0.8481 MB / 413.8 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.656e-05/0.306, allocations: 11.89 kB / 413.8 MB, free: 10.94 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.733e-05/0.3061, allocations: 44 kB / 413.9 MB, free: 10.9 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.857e-05/0.3061, allocations: 20 kB / 413.9 MB, free: 10.88 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008212/0.3069, allocations: 471.3 kB / 414.4 MB, free: 10.42 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003533/0.3105, allocations: 4.374 MB / 418.7 MB, free: 5.848 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005525/0.311, allocations: 296.2 kB / 419 MB, free: 5.551 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002177/0.3113, allocations: 141.5 kB / 419.2 MB, free: 5.41 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002003/0.3115, allocations: 174.6 kB / 419.3 MB, free: 5.203 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.296e-05/0.3115, allocations: 42.94 kB / 419.4 MB, free: 5.152 MB / 334.1 MB Notification: Performance of pre-optimization done (n=46): time 2.194e-06/0.3115, allocations: 0 / 419.4 MB, free: 5.152 MB / 334.1 MB Notification: Performance of matching and sorting (n=57): time 0.003246/0.3148, allocations: 1.743 MB / 421.1 MB, free: 3.32 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.323e-05/0.3149, allocations: 71.84 kB / 421.2 MB, free: 3.238 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005563/0.3154, allocations: 0.5314 MB / 421.7 MB, free: 2.699 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.833e-05/0.3155, allocations: 37.64 kB / 421.8 MB, free: 2.656 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003044/0.3158, allocations: 491.7 kB / 422.2 MB, free: 2.168 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001496/0.3159, allocations: 218.1 kB / 422.4 MB, free: 1.953 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001664/0.3161, allocations: 142.6 kB / 422.6 MB, free: 1.809 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001644/0.3163, allocations: 382.8 kB / 423 MB, free: 1.426 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002634/0.3165, allocations: 165.9 kB / 423.1 MB, free: 1.266 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004499/0.317, allocations: 455.2 kB / 423.6 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007645/0.3178, allocations: 0.6712 MB / 424.2 MB, free: 15.89 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.738e-06/0.3178, allocations: 4 kB / 424.2 MB, free: 15.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001051/0.3188, allocations: 0.7383 MB / 425 MB, free: 15.14 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.302e-05/0.3189, allocations: 8 kB / 425 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.386e-05/0.3189, allocations: 12 kB / 425 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001646/0.3191, allocations: 44.84 kB / 425 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005386/0.3196, allocations: 188.3 kB / 425.2 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001295/0.3209, allocations: 1.689 MB / 426.9 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002933/0.3212, allocations: 32.06 kB / 426.9 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.918e-05/0.3213, allocations: 43.94 kB / 427 MB, free: 12.98 MB / 350.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.0002825/0.3216, allocations: 229.6 kB / 427.2 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.744e-05/0.3217, allocations: 75.47 kB / 427.3 MB, free: 12.67 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001235/0.3218, allocations: 75.08 kB / 427.4 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.3218, allocations: 8 kB / 427.4 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.104e-06/0.3218, allocations: 0 / 427.4 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.3218, allocations: 7.984 kB / 427.4 MB, free: 12.58 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00181/0.3236, allocations: 1.413 MB / 428.8 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.572e-06/0.3237, allocations: 4 kB / 428.8 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004636/0.3241, allocations: 111.9 kB / 428.9 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.499e-05/0.3242, allocations: 28.78 kB / 428.9 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.729e-05/0.3243, allocations: 16.34 kB / 428.9 MB, free: 10.9 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000913/0.3252, allocations: 1.375 MB / 430.3 MB, free: 9.387 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.993e-06/0.3252, allocations: 7.984 kB / 430.3 MB, free: 9.379 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001037/0.3263, allocations: 0.7856 MB / 431.1 MB, free: 8.535 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001184/0.3264, allocations: 136.6 kB / 431.2 MB, free: 8.383 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.796e-05/0.3265, allocations: 20 kB / 431.3 MB, free: 8.363 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002046/0.3267, allocations: 12 kB / 431.3 MB, free: 8.352 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.629e-05/0.3268, allocations: 43.92 kB / 431.3 MB, free: 8.309 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.566e-05/0.3268, allocations: 20 kB / 431.3 MB, free: 8.289 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003946/0.3272, allocations: 367.1 kB / 431.7 MB, free: 7.938 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3272, allocations: 0 / 431.7 MB, free: 7.938 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006145/0.3278, allocations: 136 kB / 431.8 MB, free: 7.805 MB / 350.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.00129/0.3291, allocations: 1.345 MB / 433.2 MB, free: 6.398 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00101/0.3301, allocations: 0.6002 MB / 433.8 MB, free: 5.785 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.3302, allocations: 0 / 433.8 MB, free: 5.785 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003834/0.3305, allocations: 306.8 kB / 434.1 MB, free: 5.473 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006186/0.3312, allocations: 106 kB / 434.2 MB, free: 5.371 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007774/0.339, allocations: 6.073 MB / 440.3 MB, free: 14.88 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005307/0.3395, allocations: 0.9613 MB / 441.2 MB, free: 13.89 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002603/0.3398, allocations: 93.91 kB / 441.3 MB, free: 13.79 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003682/0.3402, allocations: 323.3 kB / 441.6 MB, free: 13.48 MB / 366.1 MB Notification: Performance of SimCode: time 1.272e-06/0.3402, allocations: 0 / 441.6 MB, free: 13.48 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05066/0.3908, allocations: 11.84 MB / 453.5 MB, free: 1.812 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.33/10.72, allocations: 11.02 kB / 453.5 MB, free: 1.809 MB / 366.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