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.001093/0.001094, allocations: 117.1 kB / 17.74 MB, free: 5.199 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.001061/0.001061, allocations: 192.4 kB / 18.67 MB, free: 4.273 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.382/1.382, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001059/0.001059, allocations: 47.92 kB / 352 MB, free: 3.277 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2686/0.2697, allocations: 49.44 MB / 401.4 MB, free: 8.766 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.005587/0.2753, allocations: 4.567 MB / 406 MB, free: 4.312 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002396/0.2778, allocations: 1.333 MB / 407.3 MB, free: 2.977 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003636/0.2781, allocations: 23.81 kB / 407.3 MB, free: 2.953 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003744/0.2785, allocations: 186.2 kB / 407.5 MB, free: 2.77 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003377/0.2789, allocations: 162.3 kB / 407.7 MB, free: 2.609 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00077/0.2797, allocations: 367.5 kB / 408 MB, free: 2.25 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008802/0.2806, allocations: 0.9782 MB / 409 MB, free: 1.27 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005591/0.2812, allocations: 414.9 kB / 409.4 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003696/0.2815, allocations: 334.5 kB / 409.7 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003244/0.2819, allocations: 346 kB / 410.1 MB, free: 176 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.745e-05/0.282, allocations: 72 kB / 410.1 MB, free: 104 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002179/0.2822, allocations: 124 kB / 410.3 MB, free: 15.98 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001164/0.2823, allocations: 163.3 kB / 410.4 MB, free: 15.82 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003139/0.2826, allocations: 433.5 kB / 410.8 MB, free: 15.39 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009481/0.2836, allocations: 1.099 MB / 411.9 MB, free: 14.3 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.2836, allocations: 0 / 411.9 MB, free: 14.3 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.2836, allocations: 0 / 411.9 MB, free: 14.3 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.066e-05/0.2836, allocations: 0 / 411.9 MB, free: 14.3 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.001499/0.2851, allocations: 1.138 MB / 413.1 MB, free: 13.1 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.63e-05/0.2852, allocations: 12.03 kB / 413.1 MB, free: 13.09 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001427/0.2853, allocations: 106.7 kB / 413.2 MB, free: 12.98 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009086/0.2863, allocations: 0.6306 MB / 413.8 MB, free: 12.31 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.451e-05/0.2863, allocations: 58 kB / 413.9 MB, free: 12.26 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001012/0.2864, allocations: 83.94 kB / 414 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001238/0.2877, allocations: 0.8521 MB / 414.8 MB, free: 11.21 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.507e-05/0.2877, allocations: 15.83 kB / 414.8 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.931e-05/0.2878, allocations: 40 kB / 414.9 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.871e-05/0.2878, allocations: 20 kB / 414.9 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008436/0.2886, allocations: 471.3 kB / 415.4 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003635/0.2923, allocations: 4.373 MB / 419.7 MB, free: 6.105 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005751/0.2929, allocations: 296.2 kB / 420 MB, free: 5.809 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00023/0.2931, allocations: 145.6 kB / 420.2 MB, free: 5.664 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001874/0.2933, allocations: 170.6 kB / 420.3 MB, free: 5.461 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.92e-05/0.2934, allocations: 38.94 kB / 420.4 MB, free: 5.414 MB / 334.1 MB Notification: Performance of pre-optimization done (n=46): time 2.775e-06/0.2934, allocations: 0 / 420.4 MB, free: 5.414 MB / 334.1 MB Notification: Performance of matching and sorting (n=57): time 0.00333/0.2967, allocations: 1.726 MB / 422.1 MB, free: 3.598 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.916e-05/0.2968, allocations: 59.97 kB / 422.1 MB, free: 3.527 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006002/0.2974, allocations: 0.5429 MB / 422.7 MB, free: 2.977 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.977e-05/0.2974, allocations: 29.7 kB / 422.7 MB, free: 2.941 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002898/0.2977, allocations: 486.4 kB / 423.2 MB, free: 2.457 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001332/0.2979, allocations: 205 kB / 423.4 MB, free: 2.254 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001679/0.298, allocations: 146.5 kB / 423.5 MB, free: 2.105 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001595/0.2982, allocations: 378.8 kB / 423.9 MB, free: 1.727 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002763/0.2985, allocations: 161.9 kB / 424.1 MB, free: 1.57 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004916/0.299, allocations: 459.2 kB / 424.5 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008223/0.2998, allocations: 0.6634 MB / 425.2 MB, free: 204 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.812e-06/0.2998, allocations: 4 kB / 425.2 MB, free: 200 kB / 334.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001118/0.301, allocations: 0.7462 MB / 425.9 MB, free: 15.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.346e-05/0.301, allocations: 8 kB / 425.9 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.414e-05/0.301, allocations: 20.03 kB / 426 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001899/0.3012, allocations: 44.84 kB / 426 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005375/0.3018, allocations: 187.7 kB / 426.2 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001642/0.3034, allocations: 1.681 MB / 427.9 MB, free: 13.35 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003368/0.3038, allocations: 24 kB / 427.9 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.427e-05/0.3038, allocations: 40 kB / 427.9 MB, free: 13.29 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.0003078/0.3041, allocations: 229.5 kB / 428.1 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.86e-05/0.3042, allocations: 75.2 kB / 428.2 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001112/0.3043, allocations: 86.98 kB / 428.3 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.101e-06/0.3044, allocations: 11.94 kB / 428.3 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.3044, allocations: 0 / 428.3 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.122e-06/0.3044, allocations: 0 / 428.3 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001879/0.3063, allocations: 1.413 MB / 429.7 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.171e-06/0.3063, allocations: 4 kB / 429.7 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004635/0.3068, allocations: 124.2 kB / 429.9 MB, free: 11.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001114/0.3069, allocations: 24.84 kB / 429.9 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.944e-05/0.3069, allocations: 16 kB / 429.9 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000965/0.3079, allocations: 1.367 MB / 431.3 MB, free: 9.691 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/0.3079, allocations: 4 kB / 431.3 MB, free: 9.688 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001063/0.309, allocations: 0.7812 MB / 432 MB, free: 8.848 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000149/0.3092, allocations: 136.2 kB / 432.2 MB, free: 8.695 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.545e-05/0.3092, allocations: 16 kB / 432.2 MB, free: 8.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002052/0.3094, allocations: 15.98 kB / 432.2 MB, free: 8.664 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.657e-05/0.3095, allocations: 39.89 kB / 432.3 MB, free: 8.625 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.407e-05/0.3095, allocations: 20 kB / 432.3 MB, free: 8.605 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003957/0.3099, allocations: 367.1 kB / 432.6 MB, free: 8.254 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.31, allocations: 0 / 432.6 MB, free: 8.254 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006777/0.3106, allocations: 136 kB / 432.8 MB, free: 8.121 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.0001625/0.3108, allocations: 125.9 kB / 432.9 MB, free: 7.992 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009852/0.3118, allocations: 0.5842 MB / 433.5 MB, free: 7.391 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.3118, allocations: 0.5625 kB / 433.5 MB, free: 7.391 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003886/0.3122, allocations: 314.4 kB / 433.8 MB, free: 7.07 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000657/0.3129, allocations: 103.4 kB / 433.9 MB, free: 6.965 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002679/0.3156, allocations: 1.881 MB / 435.8 MB, free: 5.016 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005115/0.3161, allocations: 0.9691 MB / 436.7 MB, free: 4.02 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001647/0.3163, allocations: 63.42 kB / 436.8 MB, free: 3.957 MB / 350.1 MB Notification: Performance of SimCode: time 7.72e-07/0.3163, allocations: 7.938 kB / 436.8 MB, free: 3.949 MB / 350.1 MB Notification: Performance of Templates: time 0.01621/0.3325, allocations: 12.54 MB / 449.3 MB, free: 7.402 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