Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001253/0.001253, allocations: 172.8 kB / 16.72 MB, free: 4.934 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.663/1.663, allocations: 205.4 MB / 222.9 MB, free: 9 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000715/0.000715, allocations: 89.36 kB / 271.2 MB, free: 8.238 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004029/0.000403, allocations: 12 kB / 327.5 MB, free: 15.88 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3128/0.3132, allocations: 47.57 MB / 375.1 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.005285/0.3185, allocations: 3.908 MB / 379 MB, free: 42.33 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003182/0.3218, allocations: 1.292 MB / 380.3 MB, free: 41.27 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008474/0.3227, allocations: 24.94 kB / 380.3 MB, free: 41.26 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004285/0.3231, allocations: 121.1 kB / 380.4 MB, free: 41.15 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005399/0.3237, allocations: 132.1 kB / 380.6 MB, free: 41.04 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009612/0.3247, allocations: 244.7 kB / 380.8 MB, free: 40.85 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001313/0.326, allocations: 0.8962 MB / 381.7 MB, free: 40.3 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007461/0.3267, allocations: 370.5 kB / 382.1 MB, free: 40.07 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004881/0.3272, allocations: 248.3 kB / 382.3 MB, free: 39.94 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003445/0.3276, allocations: 272.8 kB / 382.6 MB, free: 39.75 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.585e-05/0.3277, allocations: 31.06 kB / 382.6 MB, free: 39.75 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002798/0.328, allocations: 72.53 kB / 382.7 MB, free: 39.72 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001151/0.3281, allocations: 108.6 kB / 382.8 MB, free: 39.64 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003672/0.3285, allocations: 370.6 kB / 383.1 MB, free: 39.37 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008105/0.3293, allocations: 0.7568 MB / 383.9 MB, free: 38.79 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.3293, allocations: 0 / 383.9 MB, free: 38.79 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.3294, allocations: 0 / 383.9 MB, free: 38.79 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.709e-05/0.3294, allocations: 1 kB / 383.9 MB, free: 38.79 MB / 298.7 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.001729/0.3311, allocations: 0.9805 MB / 384.9 MB, free: 37.97 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.108e-05/0.3312, allocations: 12.02 kB / 384.9 MB, free: 37.97 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002008/0.3314, allocations: 103.2 kB / 385 MB, free: 37.92 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001004/0.3324, allocations: 0.5939 MB / 385.6 MB, free: 37.4 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.951e-05/0.3325, allocations: 58.28 kB / 385.6 MB, free: 37.38 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001572/0.3327, allocations: 84.38 kB / 385.7 MB, free: 37.34 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001849/0.3345, allocations: 0.8419 MB / 386.6 MB, free: 36.68 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.044e-05/0.3346, allocations: 12.17 kB / 386.6 MB, free: 36.67 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.654e-05/0.3347, allocations: 38.97 kB / 386.6 MB, free: 36.64 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.24e-05/0.3347, allocations: 20.19 kB / 386.6 MB, free: 36.64 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001464/0.3362, allocations: 473.5 kB / 387.1 MB, free: 36.42 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004438/0.3407, allocations: 4.413 MB / 391.5 MB, free: 31.83 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008187/0.3415, allocations: 317.8 kB / 391.8 MB, free: 31.52 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003244/0.3419, allocations: 149.5 kB / 392 MB, free: 31.37 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002471/0.3422, allocations: 162.6 kB / 392.1 MB, free: 31.17 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.825e-05/0.3422, allocations: 42.92 kB / 392.2 MB, free: 31.12 MB / 298.7 MB Notification: Performance of pre-optimization done (n=46): time 4.669e-06/0.3422, allocations: 0 / 392.2 MB, free: 31.12 MB / 298.7 MB Notification: Performance of matching and sorting (n=57): time 0.004343/0.3466, allocations: 1.735 MB / 393.9 MB, free: 29.29 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.818e-05/0.3466, allocations: 55.97 kB / 394 MB, free: 29.22 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007031/0.3473, allocations: 0.5352 MB / 394.5 MB, free: 28.68 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.964e-05/0.3474, allocations: 33.7 kB / 394.5 MB, free: 28.64 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002708/0.3477, allocations: 478.4 kB / 395 MB, free: 28.16 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001475/0.3478, allocations: 212.9 kB / 395.2 MB, free: 27.95 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.512e-05/0.3479, allocations: 16 kB / 395.2 MB, free: 27.93 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001368/0.348, allocations: 386.7 kB / 395.6 MB, free: 27.55 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000401/0.3484, allocations: 165.9 kB / 395.8 MB, free: 27.38 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005404/0.349, allocations: 455.1 kB / 396.2 MB, free: 26.81 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001041/0.35, allocations: 0.6634 MB / 396.9 MB, free: 26.01 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.672e-06/0.3501, allocations: 4 kB / 396.9 MB, free: 26.01 MB / 298.7 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001583/0.3517, allocations: 0.7384 MB / 397.6 MB, free: 25.26 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.794e-05/0.3517, allocations: 8 kB / 397.6 MB, free: 25.25 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.908e-05/0.3517, allocations: 12.12 kB / 397.6 MB, free: 25.24 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002267/0.352, allocations: 48.91 kB / 397.7 MB, free: 25.19 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008515/0.3528, allocations: 179.7 kB / 397.8 MB, free: 25.02 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001361/0.3542, allocations: 1.514 MB / 399.4 MB, free: 23.37 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005358/0.3548, allocations: 24 kB / 399.4 MB, free: 23.35 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.208e-05/0.3548, allocations: 43.98 kB / 399.4 MB, free: 23.3 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004439/0.3553, allocations: 233.5 kB / 399.7 MB, free: 23.07 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001258/0.3554, allocations: 67.16 kB / 399.7 MB, free: 23 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001535/0.3556, allocations: 75.14 kB / 399.8 MB, free: 22.93 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.744e-06/0.3556, allocations: 11.94 kB / 399.8 MB, free: 22.91 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.636e-06/0.3556, allocations: 0 / 399.8 MB, free: 22.91 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.608e-06/0.3557, allocations: 8.016 kB / 399.8 MB, free: 22.91 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002471/0.3581, allocations: 1.435 MB / 401.2 MB, free: 21.36 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.023e-06/0.3582, allocations: 0 / 401.2 MB, free: 21.36 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007653/0.3589, allocations: 111.9 kB / 401.4 MB, free: 21.25 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001179/0.3591, allocations: 28.84 kB / 401.4 MB, free: 21.22 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.196e-05/0.3591, allocations: 15.94 kB / 401.4 MB, free: 21.21 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008658/0.36, allocations: 1.269 MB / 402.7 MB, free: 19.8 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.981e-06/0.36, allocations: 7.922 kB / 402.7 MB, free: 19.8 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001345/0.3614, allocations: 0.7762 MB / 403.5 MB, free: 18.96 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001368/0.3615, allocations: 140.2 kB / 403.6 MB, free: 18.81 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.896e-05/0.3616, allocations: 19.98 kB / 403.6 MB, free: 18.79 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003347/0.362, allocations: 12 kB / 403.6 MB, free: 18.78 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.903e-05/0.3621, allocations: 47.92 kB / 403.7 MB, free: 18.73 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.415e-05/0.3621, allocations: 16 kB / 403.7 MB, free: 18.71 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0005018/0.3627, allocations: 355.1 kB / 404 MB, free: 18.37 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.8e-07/0.3627, allocations: 4 kB / 404 MB, free: 18.37 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001084/0.3638, allocations: 136 kB / 404.2 MB, free: 18.23 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001578/0.3639, allocations: 119.2 kB / 404.3 MB, free: 18.11 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001278/0.3652, allocations: 0.5762 MB / 404.9 MB, free: 17.52 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.3652, allocations: 0 / 404.9 MB, free: 17.52 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005079/0.3658, allocations: 312 kB / 405.2 MB, free: 17.2 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001242/0.367, allocations: 107 kB / 405.3 MB, free: 17.11 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003712/0.3708, allocations: 2.339 MB / 407.6 MB, free: 14.7 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005097/0.3713, allocations: 0.9652 MB / 408.6 MB, free: 13.71 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002213/0.3715, allocations: 63.42 kB / 408.6 MB, free: 13.64 MB / 298.7 MB Notification: Performance of SimCode: time 9.72e-07/0.3715, allocations: 0 / 408.6 MB, free: 13.64 MB / 298.7 MB Notification: Performance of Templates: time 0.01937/0.3909, allocations: 12.18 MB / 420.8 MB, free: 1.461 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches