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.001534/0.001534, allocations: 109.5 kB / 17.68 MB, free: 5.332 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.001831/0.00183, allocations: 190.9 kB / 18.62 MB, free: 4.41 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.37/1.37, allocations: 222.9 MB / 242.3 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00163/0.00163, allocations: 57.11 kB / 302 MB, free: 5.145 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0902/0.09185, allocations: 49.44 MB / 351.5 MB, free: 3.676 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.005272/0.09716, allocations: 4.575 MB / 356.1 MB, free: 15.07 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001906/0.09909, allocations: 1.329 MB / 357.4 MB, free: 13.74 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000271/0.09938, allocations: 23.81 kB / 357.4 MB, free: 13.72 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003416/0.09973, allocations: 182.2 kB / 357.6 MB, free: 13.54 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002846/0.1, allocations: 158.3 kB / 357.8 MB, free: 13.38 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00063/0.1007, allocations: 367.5 kB / 358.1 MB, free: 13.02 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00083/0.1015, allocations: 0.9821 MB / 359.1 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005117/0.102, allocations: 410.9 kB / 359.5 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003094/0.1023, allocations: 330.5 kB / 359.8 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003112/0.1027, allocations: 349.9 kB / 360.2 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.415e-05/0.1028, allocations: 72 kB / 360.2 MB, free: 10.87 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001799/0.1029, allocations: 112 kB / 360.3 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001196/0.1031, allocations: 167.3 kB / 360.5 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003136/0.1034, allocations: 437.5 kB / 360.9 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000829/0.1042, allocations: 1.078 MB / 362 MB, free: 9.086 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.1042, allocations: 0 / 362 MB, free: 9.086 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1042, allocations: 4 kB / 362 MB, free: 9.082 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.709e-06/0.1043, allocations: 0 / 362 MB, free: 9.082 MB / 302.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.001403/0.1057, allocations: 1.138 MB / 363.1 MB, free: 7.895 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.987e-05/0.1057, allocations: 12.03 kB / 363.2 MB, free: 7.883 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001342/0.1059, allocations: 106.8 kB / 363.3 MB, free: 7.777 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008774/0.1067, allocations: 0.6305 MB / 363.9 MB, free: 7.105 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.479e-05/0.1068, allocations: 58 kB / 364 MB, free: 7.047 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001002/0.1069, allocations: 87.84 kB / 364 MB, free: 6.961 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001176/0.1081, allocations: 0.8442 MB / 364.9 MB, free: 6.008 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.242e-05/0.1081, allocations: 15.84 kB / 364.9 MB, free: 5.992 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.326e-05/0.1082, allocations: 36 kB / 364.9 MB, free: 5.957 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.682e-05/0.1082, allocations: 20 kB / 365 MB, free: 5.938 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008472/0.1091, allocations: 475.3 kB / 365.4 MB, free: 5.473 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003256/0.1123, allocations: 4.365 MB / 369.8 MB, free: 0.9141 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005414/0.1129, allocations: 304.2 kB / 370.1 MB, free: 0.6094 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002223/0.1131, allocations: 145.5 kB / 370.2 MB, free: 476 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001623/0.1133, allocations: 166.6 kB / 370.4 MB, free: 272 kB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.297e-05/0.1133, allocations: 38.94 kB / 370.4 MB, free: 224 kB / 302.1 MB Notification: Performance of pre-optimization done (n=46): time 1.603e-06/0.1133, allocations: 0 / 370.4 MB, free: 224 kB / 302.1 MB Notification: Performance of matching and sorting (n=57): time 0.1518/0.2652, allocations: 1.73 MB / 372.2 MB, free: 25.66 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.715e-05/0.2652, allocations: 58.16 kB / 372.2 MB, free: 25.6 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005811/0.2658, allocations: 0.537 MB / 372.7 MB, free: 25.36 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.083e-05/0.2658, allocations: 32.89 kB / 372.8 MB, free: 25.32 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002162/0.2661, allocations: 481.6 kB / 373.2 MB, free: 24.94 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.665e-05/0.2662, allocations: 209.5 kB / 373.5 MB, free: 24.78 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001504/0.2663, allocations: 137.4 kB / 373.6 MB, free: 24.71 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.824e-05/0.2664, allocations: 382.4 kB / 374 MB, free: 24.36 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002608/0.2667, allocations: 159.8 kB / 374.1 MB, free: 24.31 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003653/0.2671, allocations: 463.5 kB / 374.6 MB, free: 23.88 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006804/0.2677, allocations: 0.6683 MB / 375.2 MB, free: 23.34 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.252e-06/0.2678, allocations: 4.219 kB / 375.2 MB, free: 23.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001007/0.2688, allocations: 0.741 MB / 376 MB, free: 23.02 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.829e-05/0.2688, allocations: 10.33 kB / 376 MB, free: 23.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.701e-05/0.2688, allocations: 9.625 kB / 376 MB, free: 23.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001913/0.269, allocations: 47.42 kB / 376 MB, free: 23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005989/0.2696, allocations: 184.9 kB / 376.2 MB, free: 22.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001217/0.2709, allocations: 1.692 MB / 377.9 MB, free: 21.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003361/0.2712, allocations: 24.75 kB / 377.9 MB, free: 21.33 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.992e-05/0.2713, allocations: 38.58 kB / 378 MB, free: 21.32 MB / 302.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.0003122/0.2716, allocations: 247.8 kB / 378.2 MB, free: 21.12 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.152e-05/0.2717, allocations: 69.75 kB / 378.3 MB, free: 21.08 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001194/0.2718, allocations: 81.39 kB / 378.4 MB, free: 21.03 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.652e-06/0.2718, allocations: 6.344 kB / 378.4 MB, free: 21.03 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.34e-05/0.2719, allocations: 0 / 378.4 MB, free: 21.03 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.646e-06/0.2719, allocations: 5.641 kB / 378.4 MB, free: 21.03 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001927/0.2738, allocations: 1.408 MB / 379.8 MB, free: 20.17 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.3e-06/0.2738, allocations: 2.906 kB / 379.8 MB, free: 20.17 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004644/0.2743, allocations: 117.2 kB / 379.9 MB, free: 20.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.378e-05/0.2744, allocations: 24.75 kB / 379.9 MB, free: 20.15 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.821e-05/0.2744, allocations: 14.36 kB / 379.9 MB, free: 20.14 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006186/0.275, allocations: 1.378 MB / 381.3 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.275, allocations: 6.406 kB / 381.3 MB, free: 18.73 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000975/0.276, allocations: 0.7806 MB / 382.1 MB, free: 18.25 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.987e-05/0.2761, allocations: 134.3 kB / 382.2 MB, free: 18.12 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.545e-05/0.2762, allocations: 14.75 kB / 382.3 MB, free: 18.11 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001969/0.2764, allocations: 14.39 kB / 382.3 MB, free: 18.11 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.942e-05/0.2765, allocations: 51.77 kB / 382.3 MB, free: 18.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.906e-05/0.2765, allocations: 17.17 kB / 382.3 MB, free: 18.08 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.00042/0.277, allocations: 363.8 kB / 382.7 MB, free: 17.92 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.277, allocations: 0 / 382.7 MB, free: 17.92 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006366/0.2776, allocations: 139.1 kB / 382.8 MB, free: 17.9 MB / 302.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.0001162/0.2777, allocations: 116.7 kB / 382.9 MB, free: 17.8 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008473/0.2786, allocations: 0.5934 MB / 383.5 MB, free: 17.52 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.666e-06/0.2786, allocations: 1.094 kB / 383.5 MB, free: 17.52 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003709/0.279, allocations: 308.5 kB / 383.8 MB, free: 17.34 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005896/0.2796, allocations: 106.4 kB / 383.9 MB, free: 17.29 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002994/0.2826, allocations: 1.838 MB / 385.8 MB, free: 16.07 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008243/0.2834, allocations: 0.9648 MB / 386.7 MB, free: 15.36 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003499/0.2838, allocations: 87.84 kB / 386.8 MB, free: 15.34 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000168/0.284, allocations: 59.48 kB / 386.9 MB, free: 15.33 MB / 302.1 MB Notification: Performance of SimCode: time 1.162e-06/0.284, allocations: 0 / 386.9 MB, free: 15.33 MB / 302.1 MB Notification: Performance of Templates: time 0.01171/0.2957, allocations: 5.276 MB / 392.2 MB, free: 14.01 MB / 302.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 -s gbode -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