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.00133/0.00133, allocations: 114.4 kB / 17.74 MB, free: 5.355 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.001357/0.001357, allocations: 183.1 kB / 18.66 MB, free: 4.434 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.446/1.446, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001693/0.001693, allocations: 56.39 kB / 328 MB, free: 3.82 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09497/0.09667, allocations: 46.61 MB / 374.6 MB, free: 5.098 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.006509/0.1032, allocations: 4.576 MB / 379.2 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.1931/0.2964, allocations: 1.351 MB / 380.6 MB, free: 9.148 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006096/0.2971, allocations: 24.16 kB / 380.6 MB, free: 9.148 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004205/0.2976, allocations: 184.1 kB / 380.8 MB, free: 9.148 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000452/0.298, allocations: 159.7 kB / 380.9 MB, free: 9.059 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009784/0.299, allocations: 372 kB / 381.3 MB, free: 9.047 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00127/0.3003, allocations: 0.9785 MB / 382.3 MB, free: 8.891 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006715/0.301, allocations: 421.5 kB / 382.7 MB, free: 8.816 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006002/0.3016, allocations: 326 kB / 383 MB, free: 8.699 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004446/0.302, allocations: 344.8 kB / 383.3 MB, free: 8.504 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001147/0.3022, allocations: 72.34 kB / 383.4 MB, free: 8.504 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000268/0.3024, allocations: 115.1 kB / 383.5 MB, free: 8.488 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001277/0.3026, allocations: 177.8 kB / 383.7 MB, free: 8.363 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003274/0.3029, allocations: 425.5 kB / 384.1 MB, free: 8.078 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001289/0.3042, allocations: 1.106 MB / 385.2 MB, free: 7.641 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.3042, allocations: 1.469 kB / 385.2 MB, free: 7.641 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.3042, allocations: 0 / 385.2 MB, free: 7.641 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.421e-05/0.3043, 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.001614/0.3059, allocations: 1.172 MB / 386.4 MB, free: 6.801 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.755e-05/0.306, allocations: 9.562 kB / 386.4 MB, free: 6.801 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001268/0.3061, allocations: 129.3 kB / 386.5 MB, free: 6.711 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001443/0.3062, allocations: 111.6 kB / 386.6 MB, free: 6.652 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00093/0.3072, allocations: 0.6378 MB / 387.3 MB, free: 6.242 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.887e-05/0.3072, allocations: 57.62 kB / 387.3 MB, free: 6.219 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001074/0.3073, allocations: 84.17 kB / 387.4 MB, free: 6.188 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001241/0.3086, allocations: 0.8438 MB / 388.2 MB, free: 5.633 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.777e-05/0.3086, allocations: 8.938 kB / 388.3 MB, free: 5.629 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.524e-05/0.3087, allocations: 34.95 kB / 388.3 MB, free: 5.605 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.38e-05/0.3087, allocations: 20.59 kB / 388.3 MB, free: 5.605 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008781/0.3096, allocations: 475.5 kB / 388.8 MB, free: 5.445 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003246/0.3129, allocations: 4.391 MB / 393.2 MB, free: 1.754 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006065/0.3135, allocations: 294.9 kB / 393.5 MB, free: 1.641 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002317/0.3138, allocations: 145 kB / 393.6 MB, free: 1.582 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001842/0.314, allocations: 170.7 kB / 393.8 MB, free: 1.391 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.362e-05/0.314, allocations: 38.52 kB / 393.8 MB, free: 1.348 MB / 318.1 MB Notification: Performance of pre-optimization done (n=46): time 1.07e-05/0.314, allocations: 1.031 kB / 393.8 MB, free: 1.348 MB / 318.1 MB Notification: Performance of matching and sorting (n=57): time 0.003289/0.3173, allocations: 1.744 MB / 395.5 MB, free: 284 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.901e-05/0.3174, allocations: 58.48 kB / 395.6 MB, free: 220 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006735/0.318, allocations: 0.5523 MB / 396.2 MB, free: 15.95 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.545e-05/0.3181, allocations: 35.02 kB / 396.2 MB, free: 15.91 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003584/0.3185, allocations: 487.8 kB / 396.7 MB, free: 15.53 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001767/0.3186, allocations: 222.5 kB / 396.9 MB, free: 15.36 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001864/0.3188, allocations: 142.2 kB / 397 MB, free: 15.28 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002056/0.319, allocations: 382.1 kB / 397.4 MB, free: 14.93 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003058/0.3194, allocations: 158 kB / 397.5 MB, free: 14.88 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005332/0.3199, allocations: 465.4 kB / 398 MB, free: 14.44 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000934/0.3208, allocations: 0.6698 MB / 398.7 MB, free: 13.86 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.17e-06/0.3209, allocations: 2.844 kB / 398.7 MB, free: 13.86 MB / 334.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.00129/0.3222, allocations: 0.7421 MB / 399.4 MB, free: 13.54 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.578e-05/0.3222, allocations: 9.5 kB / 399.4 MB, free: 13.54 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.774e-05/0.3222, allocations: 10.12 kB / 399.4 MB, free: 13.54 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001919/0.3224, allocations: 46.67 kB / 399.5 MB, free: 13.52 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005931/0.323, allocations: 182.5 kB / 399.7 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001656/0.3247, allocations: 1.693 MB / 401.4 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004224/0.3251, allocations: 25.41 kB / 401.4 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.524e-05/0.3252, allocations: 46.09 kB / 401.4 MB, free: 11.83 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.0003984/0.3256, allocations: 233.3 kB / 401.7 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001068/0.3257, allocations: 76.58 kB / 401.7 MB, free: 11.59 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000139/0.3259, allocations: 78.28 kB / 401.8 MB, free: 11.54 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.631e-06/0.3259, allocations: 7.625 kB / 401.8 MB, free: 11.54 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.196e-05/0.3259, allocations: 0 / 401.8 MB, free: 11.54 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.388e-06/0.3259, allocations: 2.859 kB / 401.8 MB, free: 11.54 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002221/0.3281, allocations: 1.413 MB / 403.2 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.392e-06/0.3281, allocations: 3.609 kB / 403.2 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005087/0.3287, allocations: 117.1 kB / 403.3 MB, free: 10.67 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001116/0.3288, allocations: 23.34 kB / 403.4 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.24e-05/0.3288, allocations: 16.33 kB / 403.4 MB, free: 10.65 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001209/0.3301, allocations: 1.367 MB / 404.8 MB, free: 9.238 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.734e-06/0.3301, allocations: 8.219 kB / 404.8 MB, free: 9.234 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001199/0.3313, allocations: 0.7809 MB / 405.5 MB, free: 8.754 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001853/0.3315, allocations: 146.8 kB / 405.7 MB, free: 8.613 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.262e-05/0.3315, allocations: 14.55 kB / 405.7 MB, free: 8.605 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002111/0.3318, allocations: 17.58 kB / 405.7 MB, free: 8.594 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.72e-05/0.3319, allocations: 44.08 kB / 405.8 MB, free: 8.582 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.385e-05/0.3319, allocations: 26.3 kB / 405.8 MB, free: 8.57 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005352/0.3325, allocations: 360 kB / 406.1 MB, free: 8.41 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3325, allocations: 0 / 406.1 MB, free: 8.41 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007997/0.3333, allocations: 141 kB / 406.3 MB, free: 8.387 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.001595/0.3349, allocations: 1.331 MB / 407.6 MB, free: 7.367 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001197/0.3361, allocations: 0.5921 MB / 408.2 MB, free: 7.082 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.3361, allocations: 5.188 kB / 408.2 MB, free: 7.078 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004791/0.3366, allocations: 312.8 kB / 408.5 MB, free: 6.898 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000674/0.3373, allocations: 103.2 kB / 408.6 MB, free: 6.844 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009847/0.3471, allocations: 6.069 MB / 414.7 MB, free: 2.75 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007098/0.3479, allocations: 0.9672 MB / 415.6 MB, free: 1.992 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000326/0.3482, allocations: 88.86 kB / 415.7 MB, free: 1.945 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004323/0.3487, allocations: 322.8 kB / 416 MB, free: 1.676 MB / 334.1 MB Notification: Performance of SimCode: time 9.62e-07/0.3487, allocations: 1.094 kB / 416 MB, free: 1.676 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04544/0.3941, allocations: 11.86 MB / 427.9 MB, free: 7.668 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.16/11.56, allocations: 0 / 427.9 MB, free: 7.668 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