Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.HeatLosses.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.HeatLosses,fileNamePrefix="Modelica_3_2_1_Modelica_Mechanics_Translational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.663/1.663, allocations: 171.2 MB / 186.1 MB, free: 1.035 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004912/0.0004913, allocations: 15.94 kB / 233.4 MB, free: 2.266 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08563/0.08617, allocations: 38.77 MB / 272.1 MB, free: 11.42 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3633/0.4495, allocations: 73.75 MB / 345.9 MB, free: 15.59 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002751/0.4499, allocations: 69.66 kB / 345.9 MB, free: 15.55 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07356/0.5235, allocations: 14.69 MB / 360.6 MB, free: 2.844 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.304e-06/0.5235, allocations: 3.938 kB / 360.6 MB, free: 2.84 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.096e-05/0.5236, allocations: 12 kB / 360.6 MB, free: 2.828 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 169 * Number of variables: 169 Notification: Performance of Generate backend data structure: time 0.004671/0.5283, allocations: 1.138 MB / 361.8 MB, free: 1.688 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.607e-05/0.5283, allocations: 12.03 kB / 361.8 MB, free: 1.676 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000303/0.5286, allocations: 113.1 kB / 361.9 MB, free: 1.598 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003335/0.529, allocations: 95 kB / 362 MB, free: 1.504 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009054/0.5299, allocations: 421.2 kB / 362.4 MB, free: 1.105 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.916e-05/0.53, allocations: 50.94 kB / 362.5 MB, free: 1.074 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002036/0.5302, allocations: 71.86 kB / 362.5 MB, free: 1.027 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002883/0.5331, allocations: 0.8124 MB / 363.3 MB, free: 460 kB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.846e-05/0.5332, allocations: 3.906 kB / 363.3 MB, free: 456 kB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001272/0.5333, allocations: 30.94 kB / 363.4 MB, free: 448 kB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.518e-05/0.5334, allocations: 19.95 kB / 363.4 MB, free: 428 kB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003587/0.537, allocations: 0.8935 MB / 364.3 MB, free: 15.77 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007608/0.5446, allocations: 2.444 MB / 366.7 MB, free: 13.71 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002544/0.5472, allocations: 0.7323 MB / 367.5 MB, free: 13.2 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001469/0.5474, allocations: 9 kB / 367.5 MB, free: 13.2 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002091/0.5495, allocations: 0.564 MB / 368 MB, free: 12.77 MB / 298.7 MB Notification: Performance of pre-optimization done (n=86): time 4.428e-06/0.5495, allocations: 0 / 368 MB, free: 12.77 MB / 298.7 MB Notification: Performance of matching and sorting (n=106): time 0.02064/0.5702, allocations: 4.563 MB / 372.6 MB, free: 8.953 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.85e-05/0.5703, allocations: 68.34 kB / 372.7 MB, free: 8.875 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006145/0.5709, allocations: 342.2 kB / 373 MB, free: 8.598 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001792/0.5711, allocations: 52.89 kB / 373 MB, free: 8.559 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002632/0.5714, allocations: 274.3 kB / 373.3 MB, free: 8.348 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004292/0.5718, allocations: 364.7 kB / 373.7 MB, free: 8.039 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.557e-05/0.5719, allocations: 19.31 kB / 373.7 MB, free: 8.035 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002015/0.5722, allocations: 377.7 kB / 374.1 MB, free: 7.684 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001727/0.5739, allocations: 442.5 kB / 374.5 MB, free: 7.395 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001851/0.5758, allocations: 0.54 MB / 375 MB, free: 7 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001548/0.5773, allocations: 390.5 kB / 375.4 MB, free: 6.754 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.2e-06/0.5774, allocations: 0 / 375.4 MB, free: 6.754 MB / 298.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.005813/0.5832, allocations: 1.493 MB / 376.9 MB, free: 5.613 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.327e-05/0.5833, allocations: 5.406 kB / 376.9 MB, free: 5.609 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.29e-05/0.5833, allocations: 0 / 376.9 MB, free: 5.609 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002057/0.5853, allocations: 0.6853 MB / 377.6 MB, free: 5.062 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001651/0.587, allocations: 202.4 kB / 377.8 MB, free: 4.871 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006566/0.5936, allocations: 3.307 MB / 381.1 MB, free: 1.73 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002473/0.5961, allocations: 242.8 kB / 381.3 MB, free: 1.512 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001638/0.5963, allocations: 42.67 kB / 381.4 MB, free: 1.48 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 27 (supportFriction.free,$whenCondition1,elastoGap.contact,$PRE.supportFriction.startForward,supportFriction.startForward,$PRE.supportFriction.startBackward,supportFriction.startBackward,supportFriction.locked,$PRE.supportFriction.mode,supportFriction.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,massWithStopAndFriction.free,$PRE.massWithStopAndFriction.startForward,massWithStopAndFriction.startForward,$PRE.massWithStopAndFriction.startBackward,massWithStopAndFriction.startBackward,massWithStopAndFriction.locked,$PRE.massWithStopAndFriction.mode,massWithStopAndFriction.mode,massWithStopAndFriction.stopped) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (115): * Single equations (assignments): 112 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 7,1 5,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0006072/0.5969, allocations: 213.6 kB / 381.6 MB, free: 1.293 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002229/0.5972, allocations: 71.16 kB / 381.7 MB, free: 1.223 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003284/0.5975, allocations: 111 kB / 381.8 MB, free: 1.109 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.595e-05/0.5975, allocations: 15.94 kB / 381.8 MB, free: 1.094 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.726e-06/0.5975, allocations: 0 / 381.8 MB, free: 1.094 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.733e-05/0.5976, allocations: 7.984 kB / 381.8 MB, free: 1.086 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00846/0.606, allocations: 2.632 MB / 384.4 MB, free: 14.35 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.658e-05/0.6061, allocations: 8.219 kB / 384.4 MB, free: 14.34 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001696/0.6078, allocations: 183.8 kB / 384.6 MB, free: 14.16 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00205/0.6099, allocations: 0.6542 MB / 385.3 MB, free: 13.5 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002913/0.6102, allocations: 31.97 kB / 385.3 MB, free: 13.46 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006165/0.6164, allocations: 3.143 MB / 388.4 MB, free: 10.14 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.304e-06/0.6165, allocations: 4.031 kB / 388.4 MB, free: 10.13 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007997/0.6245, allocations: 2.06 MB / 390.5 MB, free: 7.984 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007963/0.6253, allocations: 236.1 kB / 390.7 MB, free: 7.734 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002412/0.6256, allocations: 28 kB / 390.8 MB, free: 7.707 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002605/0.6282, allocations: 255.8 kB / 391 MB, free: 7.457 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001789/0.6301, allocations: 432 kB / 391.4 MB, free: 7.035 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002841/0.6304, allocations: 47.95 kB / 391.5 MB, free: 6.988 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005305/0.6309, allocations: 263.2 kB / 391.7 MB, free: 6.727 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.631, allocations: 0 / 391.7 MB, free: 6.727 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001412/0.6324, allocations: 248 kB / 392 MB, free: 6.484 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (springDamper.s_rel,springDamper.v_rel,elastoGap.s_rel,elastoGap.v_rel,massWithStopAndFriction.s,massWithStopAndFriction.v,springDamper1.s_rel,springDamper1.v_rel) * Number of discrete variables: 17 ($whenCondition1,elastoGap.contact,supportFriction.startForward,supportFriction.startBackward,supportFriction.locked,supportFriction.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,massWithStopAndFriction.free,massWithStopAndFriction.startForward,massWithStopAndFriction.startBackward,massWithStopAndFriction.locked,massWithStopAndFriction.mode,massWithStopAndFriction.stopped) * Number of discrete states: 9 (massWithStopAndFriction.mode,massWithStopAndFriction.startBackward,massWithStopAndFriction.startForward,brake.mode,brake.startForward,brake.startBackward,supportFriction.mode,supportFriction.startForward,supportFriction.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (89): * Single equations (assignments): 86 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 6,1 6,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.00883/0.6412, allocations: 3.184 MB / 395.2 MB, free: 3.219 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.004786/0.6461, allocations: 1.192 MB / 396.4 MB, free: 2.016 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 7.705e-06/0.6461, allocations: 0 / 396.4 MB, free: 2.016 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003241/0.6494, allocations: 0.782 MB / 397.1 MB, free: 1.223 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001303/0.6508, allocations: 97.92 kB / 397.2 MB, free: 1.125 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01956/0.6704, allocations: 6.331 MB / 403.6 MB, free: 10.69 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007691/0.6712, allocations: 0.9478 MB / 404.5 MB, free: 9.711 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0007345/0.6719, allocations: 77.36 kB / 404.6 MB, free: 9.633 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006181/0.6726, allocations: 239.3 kB / 404.8 MB, free: 9.398 MB / 330.7 MB Notification: Performance of SimCode: time 3.516e-06/0.6726, allocations: 4 kB / 404.8 MB, free: 9.395 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1155/0.7881, allocations: 20.16 MB / 425 MB, free: 5.285 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003226/0.7885, allocations: 211.3 kB / 425.2 MB, free: 5.039 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.381/4.17, allocations: 4.062 kB / 425.2 MB, free: 5.035 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat does not exist to compare? outputFormat=mat