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.001523/0.001523, allocations: 112.3 kB / 17.74 MB, free: 5.293 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.001462/0.001462, allocations: 187 kB / 18.67 MB, free: 4.375 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.461/1.461, allocations: 222.9 MB / 242.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001143/0.001143, allocations: 43.94 kB / 352 MB, free: 3.215 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.259/0.2602, allocations: 49.44 MB / 401.4 MB, free: 8.707 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.005821/0.2661, allocations: 4.569 MB / 406 MB, free: 4.254 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002638/0.2687, allocations: 1.341 MB / 407.3 MB, free: 2.91 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007219/0.2695, allocations: 23.88 kB / 407.3 MB, free: 2.887 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005747/0.2701, allocations: 186.2 kB / 407.5 MB, free: 2.703 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007085/0.2708, allocations: 154.4 kB / 407.7 MB, free: 2.551 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009544/0.2718, allocations: 371.5 kB / 408 MB, free: 2.188 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001282/0.2731, allocations: 0.9743 MB / 409 MB, free: 1.211 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007013/0.2738, allocations: 414.9 kB / 409.4 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005134/0.2743, allocations: 338.5 kB / 409.7 MB, free: 460 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004647/0.2748, allocations: 338 kB / 410.1 MB, free: 120 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001388/0.275, allocations: 72 kB / 410.1 MB, free: 48 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000299/0.2753, allocations: 120 kB / 410.3 MB, free: 15.93 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001454/0.2754, allocations: 171.2 kB / 410.4 MB, free: 15.76 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003937/0.2758, allocations: 425.5 kB / 410.8 MB, free: 15.34 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001079/0.2769, allocations: 1.102 MB / 411.9 MB, free: 14.24 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.2769, allocations: 0 / 411.9 MB, free: 14.24 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.2769, allocations: 4 kB / 411.9 MB, free: 14.24 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.651e-05/0.277, allocations: 0 / 411.9 MB, free: 14.24 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.001863/0.2789, allocations: 1.142 MB / 413.1 MB, free: 13.04 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.074e-05/0.2789, allocations: 8.031 kB / 413.1 MB, free: 13.03 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001672/0.2791, allocations: 106.7 kB / 413.2 MB, free: 12.93 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009891/0.2801, allocations: 0.6189 MB / 413.8 MB, free: 12.27 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.523e-05/0.2801, allocations: 61.94 kB / 413.9 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001152/0.2803, allocations: 87.92 kB / 414 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001338/0.2816, allocations: 0.8482 MB / 414.8 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.688e-05/0.2817, allocations: 15.83 kB / 414.8 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.303e-05/0.2817, allocations: 39.98 kB / 414.9 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.055e-05/0.2818, allocations: 20 kB / 414.9 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009127/0.2827, allocations: 475.3 kB / 415.3 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003717/0.2864, allocations: 4.373 MB / 419.7 MB, free: 6.051 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005724/0.287, allocations: 300.2 kB / 420 MB, free: 5.75 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002271/0.2872, allocations: 149.5 kB / 420.2 MB, free: 5.602 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001742/0.2874, allocations: 170.6 kB / 420.3 MB, free: 5.398 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.118e-05/0.2875, allocations: 34.94 kB / 420.4 MB, free: 5.355 MB / 334.1 MB Notification: Performance of pre-optimization done (n=46): time 2.735e-06/0.2875, allocations: 0 / 420.4 MB, free: 5.355 MB / 334.1 MB Notification: Performance of matching and sorting (n=57): time 0.003343/0.2908, allocations: 1.726 MB / 422.1 MB, free: 3.539 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.667e-05/0.2909, allocations: 59.91 kB / 422.1 MB, free: 3.469 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005834/0.2915, allocations: 0.5468 MB / 422.7 MB, free: 2.914 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.923e-05/0.2915, allocations: 33.7 kB / 422.7 MB, free: 2.875 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000283/0.2918, allocations: 486.4 kB / 423.2 MB, free: 2.391 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000135/0.2919, allocations: 205 kB / 423.4 MB, free: 2.188 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001665/0.2921, allocations: 146.5 kB / 423.5 MB, free: 2.039 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001546/0.2923, allocations: 378.8 kB / 423.9 MB, free: 1.66 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002694/0.2926, allocations: 157.9 kB / 424.1 MB, free: 1.508 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004616/0.293, allocations: 463.2 kB / 424.5 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007907/0.2938, allocations: 0.6673 MB / 425.2 MB, free: 132 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.41e-06/0.2938, allocations: 0 / 425.2 MB, free: 132 kB / 334.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.00117/0.295, allocations: 0.7424 MB / 425.9 MB, free: 15.37 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.675e-05/0.2951, allocations: 12 kB / 425.9 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.489e-05/0.2951, allocations: 8 kB / 425.9 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001847/0.2953, allocations: 48.84 kB / 426 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005651/0.2958, allocations: 183.7 kB / 426.2 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001346/0.2972, allocations: 1.685 MB / 427.9 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000325/0.2975, allocations: 27.98 kB / 427.9 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.724e-05/0.2976, allocations: 36 kB / 427.9 MB, free: 13.23 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.0003087/0.2979, allocations: 233.6 kB / 428.2 MB, free: 12.99 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001035/0.298, allocations: 79.03 kB / 428.2 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001433/0.2982, allocations: 75.12 kB / 428.3 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.004e-05/0.2982, allocations: 7.984 kB / 428.3 MB, free: 12.83 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.087e-05/0.2982, allocations: 4 kB / 428.3 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.945e-06/0.2982, allocations: 3.984 kB / 428.3 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001917/0.3001, allocations: 1.417 MB / 429.7 MB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/0.3002, allocations: 0 / 429.7 MB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004882/0.3007, allocations: 115.9 kB / 429.8 MB, free: 11.19 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.548e-05/0.3008, allocations: 28.8 kB / 429.9 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.204e-05/0.3008, allocations: 12 kB / 429.9 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000878/0.3017, allocations: 1.375 MB / 431.3 MB, free: 9.633 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.606e-06/0.3017, allocations: 4 kB / 431.3 MB, free: 9.629 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009951/0.3027, allocations: 0.7735 MB / 432 MB, free: 8.797 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001193/0.3028, allocations: 140.2 kB / 432.2 MB, free: 8.641 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.852e-05/0.3029, allocations: 20 kB / 432.2 MB, free: 8.621 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002112/0.3031, allocations: 12 kB / 432.2 MB, free: 8.609 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.959e-05/0.3032, allocations: 51.91 kB / 432.3 MB, free: 8.559 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.417e-05/0.3032, allocations: 16 kB / 432.3 MB, free: 8.543 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004211/0.3037, allocations: 359.1 kB / 432.6 MB, free: 8.199 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3037, allocations: 4 kB / 432.6 MB, free: 8.195 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006573/0.3043, allocations: 136 kB / 432.8 MB, free: 8.062 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.0001528/0.3045, allocations: 124.7 kB / 432.9 MB, free: 7.934 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009806/0.3055, allocations: 0.5925 MB / 433.5 MB, free: 7.324 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.3055, allocations: 3.938 kB / 433.5 MB, free: 7.32 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003853/0.3059, allocations: 302.4 kB / 433.8 MB, free: 7.012 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006336/0.3065, allocations: 111.2 kB / 433.9 MB, free: 6.902 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002844/0.3094, allocations: 1.884 MB / 435.8 MB, free: 4.953 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000604/0.31, allocations: 0.9652 MB / 436.7 MB, free: 3.961 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001606/0.3102, allocations: 67.36 kB / 436.8 MB, free: 3.895 MB / 350.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3102, allocations: 0 / 436.8 MB, free: 3.895 MB / 350.1 MB Notification: Performance of Templates: time 0.01689/0.3271, allocations: 12.42 MB / 449.2 MB, free: 7.461 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/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