Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_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.001629/0.001629, allocations: 110.5 kB / 17.73 MB, free: 5.316 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.002454/0.002454, allocations: 187 kB / 18.66 MB, free: 4.387 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.381/1.381, allocations: 205.1 MB / 224.5 MB, free: 12.21 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 51.92 kB / 328 MB, free: 3.809 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08937/0.09067, allocations: 46.62 MB / 374.6 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.006591/0.09731, allocations: 4.56 MB / 379.2 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.1894/0.2868, allocations: 1.367 MB / 380.6 MB, free: 9.125 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005126/0.2874, allocations: 21.72 kB / 380.6 MB, free: 9.125 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004479/0.2878, allocations: 178.1 kB / 380.8 MB, free: 9.125 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004269/0.2883, allocations: 166.5 kB / 380.9 MB, free: 9.047 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009651/0.2892, allocations: 370 kB / 381.3 MB, free: 9.035 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001116/0.2904, allocations: 0.9836 MB / 382.3 MB, free: 8.875 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006754/0.291, allocations: 420.1 kB / 382.7 MB, free: 8.805 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005101/0.2916, allocations: 329.8 kB / 383 MB, free: 8.703 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003688/0.2919, allocations: 346.1 kB / 383.3 MB, free: 8.508 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.934e-05/0.2921, allocations: 73.34 kB / 383.4 MB, free: 8.508 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000262/0.2923, allocations: 119.4 kB / 383.5 MB, free: 8.488 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000124/0.2925, allocations: 175.6 kB / 383.7 MB, free: 8.367 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002938/0.2928, allocations: 421.7 kB / 384.1 MB, free: 8.082 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00132/0.2941, allocations: 1.108 MB / 385.2 MB, free: 7.645 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.2941, allocations: 4.703 kB / 385.2 MB, free: 7.641 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.2941, allocations: 1.094 kB / 385.2 MB, free: 7.641 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.758e-05/0.2941, allocations: 0 / 385.2 MB, free: 7.641 MB / 318.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.001633/0.2958, allocations: 1.173 MB / 386.4 MB, free: 6.801 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.477e-05/0.2958, allocations: 10.22 kB / 386.4 MB, free: 6.801 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001246/0.296, allocations: 122.4 kB / 386.5 MB, free: 6.715 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001511/0.2961, allocations: 110.8 kB / 386.6 MB, free: 6.656 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009822/0.2971, allocations: 0.6335 MB / 387.3 MB, free: 6.25 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.888e-05/0.2972, allocations: 61.19 kB / 387.3 MB, free: 6.223 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001181/0.2973, allocations: 85.75 kB / 387.4 MB, free: 6.191 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001365/0.2987, allocations: 0.8431 MB / 388.3 MB, free: 5.637 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.777e-05/0.2987, allocations: 8.781 kB / 388.3 MB, free: 5.633 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.7e-05/0.2988, allocations: 37.81 kB / 388.3 MB, free: 5.605 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.84e-05/0.2988, allocations: 21.41 kB / 388.3 MB, free: 5.605 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008788/0.2997, allocations: 474.3 kB / 388.8 MB, free: 5.445 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003041/0.3028, allocations: 4.382 MB / 393.2 MB, free: 1.77 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005813/0.3034, allocations: 306.2 kB / 393.5 MB, free: 1.648 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002406/0.3036, allocations: 147 kB / 393.6 MB, free: 1.586 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001759/0.3038, allocations: 169.9 kB / 393.8 MB, free: 1.398 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.849e-05/0.3038, allocations: 38.28 kB / 393.8 MB, free: 1.355 MB / 318.1 MB Notification: Performance of pre-optimization done (n=46): time 3.467e-06/0.3038, allocations: 3.984 kB / 393.8 MB, free: 1.352 MB / 318.1 MB Notification: Performance of matching and sorting (n=57): time 0.00316/0.307, allocations: 1.747 MB / 395.6 MB, free: 284 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.518e-05/0.307, allocations: 57.44 kB / 395.6 MB, free: 220 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005923/0.3076, allocations: 0.5447 MB / 396.2 MB, free: 15.96 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.23e-05/0.3077, allocations: 34.98 kB / 396.2 MB, free: 15.92 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003311/0.308, allocations: 492.3 kB / 396.7 MB, free: 15.53 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000155/0.3082, allocations: 220.5 kB / 396.9 MB, free: 15.36 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000183/0.3084, allocations: 141.6 kB / 397 MB, free: 15.28 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001676/0.3085, allocations: 382.6 kB / 397.4 MB, free: 14.94 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002888/0.3088, allocations: 162.1 kB / 397.6 MB, free: 14.88 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000478/0.3093, allocations: 464.2 kB / 398 MB, free: 14.44 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008523/0.3102, allocations: 0.6663 MB / 398.7 MB, free: 13.87 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.41e-06/0.3102, allocations: 2.062 kB / 398.7 MB, free: 13.87 MB / 334.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001235/0.3115, allocations: 0.741 MB / 399.4 MB, free: 13.54 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.296e-05/0.3115, allocations: 8.938 kB / 399.4 MB, free: 13.54 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.519e-05/0.3115, allocations: 9.812 kB / 399.4 MB, free: 13.54 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001735/0.3117, allocations: 47.81 kB / 399.5 MB, free: 13.53 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005525/0.3122, allocations: 184.8 kB / 399.7 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001303/0.3136, allocations: 1.692 MB / 401.4 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003142/0.3139, allocations: 24.84 kB / 401.4 MB, free: 11.85 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.873e-05/0.3139, allocations: 40.14 kB / 401.4 MB, free: 11.84 MB / 334.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.0002889/0.3142, allocations: 232.4 kB / 401.7 MB, free: 11.65 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.691e-05/0.3143, allocations: 77.66 kB / 401.7 MB, free: 11.61 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001248/0.3145, allocations: 76.84 kB / 401.8 MB, free: 11.55 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.56e-06/0.3145, allocations: 5.406 kB / 401.8 MB, free: 11.55 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.896e-06/0.3145, allocations: 1.438 kB / 401.8 MB, free: 11.55 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.884e-06/0.3145, allocations: 4.281 kB / 401.8 MB, free: 11.55 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001969/0.3165, allocations: 1.416 MB / 403.2 MB, free: 10.69 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.131e-06/0.3165, allocations: 2.219 kB / 403.2 MB, free: 10.69 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004741/0.317, allocations: 118 kB / 403.4 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.827e-05/0.3171, allocations: 24.11 kB / 403.4 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.193e-05/0.3171, allocations: 15.5 kB / 403.4 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009348/0.3181, allocations: 1.375 MB / 404.8 MB, free: 9.238 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.3181, allocations: 4.859 kB / 404.8 MB, free: 9.238 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009988/0.3191, allocations: 0.7845 MB / 405.6 MB, free: 8.754 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001284/0.3192, allocations: 141.9 kB / 405.7 MB, free: 8.617 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.764e-05/0.3193, allocations: 15.53 kB / 405.7 MB, free: 8.609 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002084/0.3195, allocations: 14.06 kB / 405.7 MB, free: 8.602 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.258e-05/0.3196, allocations: 42.7 kB / 405.8 MB, free: 8.59 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.666e-05/0.3196, allocations: 18.45 kB / 405.8 MB, free: 8.586 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004244/0.3201, allocations: 363.2 kB / 406.1 MB, free: 8.422 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.743e-06/0.3201, allocations: 1.156 kB / 406.1 MB, free: 8.422 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000684/0.3208, allocations: 140.5 kB / 406.3 MB, free: 8.398 MB / 334.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.001321/0.3221, allocations: 1.332 MB / 407.6 MB, free: 7.379 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009928/0.3231, allocations: 0.5959 MB / 408.2 MB, free: 7.09 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.3231, allocations: 0.5 kB / 408.2 MB, free: 7.09 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003931/0.3235, allocations: 312.8 kB / 408.5 MB, free: 6.91 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006389/0.3242, allocations: 106.5 kB / 408.6 MB, free: 6.855 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007442/0.3316, allocations: 6.076 MB / 414.7 MB, free: 2.758 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005244/0.3322, allocations: 0.9704 MB / 415.7 MB, free: 1.984 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002519/0.3324, allocations: 86.11 kB / 415.7 MB, free: 1.941 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003401/0.3328, allocations: 331.1 kB / 416.1 MB, free: 1.664 MB / 334.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3328, allocations: 0 / 416.1 MB, free: 1.664 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03587/0.3686, allocations: 11.85 MB / 427.9 MB, free: 7.652 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.52/10.88, allocations: 4 kB / 427.9 MB, free: 7.648 MB / 350.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches