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.001046/0.001045, allocations: 108.9 kB / 17.06 MB, free: 6.137 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.0009948/0.0009949, allocations: 191 kB / 18 MB, free: 5.219 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.304/1.304, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009499/0.0009499, allocations: 51.92 kB / 351.3 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2684/0.2693, allocations: 49.44 MB / 400.7 MB, free: 8.953 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.005461/0.2748, allocations: 4.575 MB / 405.3 MB, free: 4.418 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001986/0.2768, allocations: 1.333 MB / 406.6 MB, free: 3.082 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002776/0.2771, allocations: 23.81 kB / 406.6 MB, free: 3.059 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003846/0.2775, allocations: 178.2 kB / 406.8 MB, free: 2.883 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003102/0.2779, allocations: 166.3 kB / 407 MB, free: 2.719 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006532/0.2785, allocations: 371.4 kB / 407.3 MB, free: 2.355 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008796/0.2794, allocations: 0.9744 MB / 408.3 MB, free: 1.379 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005464/0.28, allocations: 414.9 kB / 408.7 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003397/0.2803, allocations: 334.5 kB / 409.1 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000332/0.2807, allocations: 346 kB / 409.4 MB, free: 288 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.957e-05/0.2808, allocations: 83.94 kB / 409.5 MB, free: 204 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000198/0.281, allocations: 112 kB / 409.6 MB, free: 92 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001447/0.2811, allocations: 179.3 kB / 409.8 MB, free: 15.91 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003232/0.2814, allocations: 421.5 kB / 410.2 MB, free: 15.5 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009809/0.2824, allocations: 1.099 MB / 411.3 MB, free: 14.4 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.2824, allocations: 0 / 411.3 MB, free: 14.4 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2825, allocations: 0 / 411.3 MB, free: 14.4 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.092e-05/0.2825, allocations: 0 / 411.3 MB, free: 14.4 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.001509/0.284, allocations: 1.146 MB / 412.4 MB, free: 13.2 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.197e-05/0.284, allocations: 15.89 kB / 412.4 MB, free: 13.18 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001427/0.2842, allocations: 106.7 kB / 412.5 MB, free: 13.08 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008386/0.285, allocations: 0.6189 MB / 413.1 MB, free: 12.42 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.252e-05/0.2851, allocations: 58 kB / 413.2 MB, free: 12.36 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.92e-05/0.2852, allocations: 83.98 kB / 413.3 MB, free: 12.28 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001225/0.2864, allocations: 0.852 MB / 414.1 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.139e-05/0.2865, allocations: 15.84 kB / 414.2 MB, free: 11.3 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.779e-05/0.2866, allocations: 40 kB / 414.2 MB, free: 11.26 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.884e-05/0.2866, allocations: 20 kB / 414.2 MB, free: 11.24 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008435/0.2874, allocations: 471.3 kB / 414.7 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003324/0.2908, allocations: 4.384 MB / 419.1 MB, free: 6.199 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005531/0.2913, allocations: 292.2 kB / 419.3 MB, free: 5.906 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000236/0.2916, allocations: 149.5 kB / 419.5 MB, free: 5.758 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001652/0.2918, allocations: 166.6 kB / 419.7 MB, free: 5.559 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.03e-05/0.2918, allocations: 42.94 kB / 419.7 MB, free: 5.508 MB / 334.1 MB Notification: Performance of pre-optimization done (n=46): time 1.863e-06/0.2918, allocations: 3.938 kB / 419.7 MB, free: 5.504 MB / 334.1 MB Notification: Performance of matching and sorting (n=57): time 0.003107/0.2949, allocations: 1.725 MB / 421.4 MB, free: 3.691 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.765e-05/0.295, allocations: 59.97 kB / 421.5 MB, free: 3.621 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005953/0.2956, allocations: 0.5429 MB / 422 MB, free: 3.07 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.161e-05/0.2956, allocations: 33.7 kB / 422.1 MB, free: 3.031 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003072/0.2959, allocations: 482.4 kB / 422.5 MB, free: 2.551 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001433/0.2961, allocations: 205 kB / 422.7 MB, free: 2.348 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001686/0.2962, allocations: 142.5 kB / 422.9 MB, free: 2.203 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001534/0.2964, allocations: 378.8 kB / 423.2 MB, free: 1.824 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002778/0.2967, allocations: 169.9 kB / 423.4 MB, free: 1.66 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004609/0.2972, allocations: 455.2 kB / 423.8 MB, free: 1.086 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007771/0.2979, allocations: 0.6711 MB / 424.5 MB, free: 292 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.689e-06/0.298, allocations: 4 kB / 424.5 MB, free: 288 kB / 334.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001057/0.299, allocations: 0.738 MB / 425.3 MB, free: 15.53 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.978e-05/0.2991, allocations: 11.94 kB / 425.3 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.13e-05/0.2991, allocations: 12 kB / 425.3 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001544/0.2992, allocations: 49.44 kB / 425.3 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005477/0.2998, allocations: 183.7 kB / 425.5 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001341/0.3011, allocations: 1.685 MB / 427.2 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002756/0.3014, allocations: 24 kB / 427.2 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.225e-05/0.3015, allocations: 40 kB / 427.3 MB, free: 13.38 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.0002976/0.3018, allocations: 237.5 kB / 427.5 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.028e-05/0.3019, allocations: 71.09 kB / 427.6 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001237/0.302, allocations: 71.08 kB / 427.6 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.781e-06/0.302, allocations: 11.83 kB / 427.6 MB, free: 12.99 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.302, allocations: 64 / 427.6 MB, free: 12.99 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.715e-06/0.3021, allocations: 7.984 kB / 427.6 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001804/0.3039, allocations: 1.409 MB / 429.1 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.322e-06/0.3039, allocations: 7.984 kB / 429.1 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004711/0.3044, allocations: 119.8 kB / 429.2 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.194e-05/0.3044, allocations: 20.86 kB / 429.2 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.21e-05/0.3045, allocations: 24.33 kB / 429.2 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008793/0.3054, allocations: 1.371 MB / 430.6 MB, free: 9.785 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/0.3054, allocations: 4 kB / 430.6 MB, free: 9.781 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009786/0.3064, allocations: 0.7812 MB / 431.4 MB, free: 8.941 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.553e-05/0.3065, allocations: 136.2 kB / 431.5 MB, free: 8.789 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.569e-05/0.3065, allocations: 16 kB / 431.5 MB, free: 8.773 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002108/0.3068, allocations: 16 kB / 431.5 MB, free: 8.758 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.16e-05/0.3068, allocations: 39.88 kB / 431.6 MB, free: 8.719 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.825e-05/0.3069, allocations: 16 kB / 431.6 MB, free: 8.703 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000368/0.3072, allocations: 367.1 kB / 432 MB, free: 8.352 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3073, allocations: 0 / 432 MB, free: 8.352 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006145/0.3079, allocations: 144 kB / 432.1 MB, free: 8.211 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.0001331/0.308, allocations: 120.4 kB / 432.2 MB, free: 8.086 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009111/0.3089, allocations: 0.5795 MB / 432.8 MB, free: 7.488 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.097e-06/0.3089, allocations: 4 kB / 432.8 MB, free: 7.484 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003878/0.3093, allocations: 312.5 kB / 433.1 MB, free: 7.168 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006201/0.31, allocations: 102.7 kB / 433.2 MB, free: 7.066 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002585/0.3126, allocations: 1.848 MB / 435.1 MB, free: 5.156 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005111/0.3131, allocations: 0.9613 MB / 436 MB, free: 4.168 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002475/0.3133, allocations: 89.91 kB / 436.1 MB, free: 4.078 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001203/0.3135, allocations: 63.36 kB / 436.2 MB, free: 4.016 MB / 350.1 MB Notification: Performance of SimCode: time 3.7e-07/0.3135, allocations: 4 kB / 436.2 MB, free: 4.012 MB / 350.1 MB Notification: Performance of Templates: time 0.01057/0.3241, allocations: 5.439 MB / 441.6 MB, free: 14.6 MB / 366.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins/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