Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.HeatLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.HeatLosses,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Translational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.HeatLosses,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Translational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001824/0.001825, allocations: 103.5 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002619/0.002619, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.591/1.591, allocations: 227.7 MB / 247.1 MB, free: 10.29 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001977/0.001977, allocations: 67.7 kB / 307.3 MB, free: 396 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1143, allocations: 50.54 MB / 357.9 MB, free: 13.83 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.006571/0.1209, allocations: 4.451 MB / 362.3 MB, free: 9.355 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003196/0.1242, allocations: 1.582 MB / 363.9 MB, free: 7.77 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003439/0.1246, allocations: 19.88 kB / 363.9 MB, free: 7.75 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004091/0.125, allocations: 142.7 kB / 364.1 MB, free: 7.609 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005904/0.1256, allocations: 265.8 kB / 364.3 MB, free: 7.348 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009099/0.1265, allocations: 423.2 kB / 364.7 MB, free: 6.934 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001246/0.1278, allocations: 1.159 MB / 365.9 MB, free: 5.766 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004307/0.1282, allocations: 269.7 kB / 366.2 MB, free: 5.496 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007447/0.1289, allocations: 0.4946 MB / 366.7 MB, free: 5 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006891/0.1297, allocations: 0.5332 MB / 367.2 MB, free: 4.465 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000167/0.1298, allocations: 92 kB / 367.3 MB, free: 4.375 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003509/0.1302, allocations: 160 kB / 367.4 MB, free: 4.219 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003042/0.1305, allocations: 243.2 kB / 367.7 MB, free: 3.98 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005154/0.131, allocations: 465.8 kB / 368.1 MB, free: 3.523 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001233/0.1323, allocations: 1.106 MB / 369.2 MB, free: 2.414 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.1323, allocations: 0 / 369.2 MB, free: 2.414 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.1323, allocations: 0 / 369.2 MB, free: 2.414 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.335e-05/0.1323, allocations: 8 kB / 369.2 MB, free: 2.406 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: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 0.003836/0.1362, allocations: 1.329 MB / 370.6 MB, free: 1.027 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.08e-05/0.1362, allocations: 8.031 kB / 370.6 MB, free: 1.02 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001852/0.1364, allocations: 118.7 kB / 370.7 MB, free: 0.8945 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005586/0.137, allocations: 115.9 kB / 370.8 MB, free: 0.7812 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006969/0.1377, allocations: 461.5 kB / 371.3 MB, free: 296 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.922e-05/0.1378, allocations: 58.31 kB / 371.3 MB, free: 236 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001534/0.1379, allocations: 75.84 kB / 371.4 MB, free: 160 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1763/0.3143, allocations: 0.7927 MB / 372.2 MB, free: 19.71 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.024e-05/0.3144, allocations: 3.578 kB / 372.2 MB, free: 19.71 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.461e-05/0.3144, allocations: 27.98 kB / 372.2 MB, free: 19.71 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.978e-05/0.3145, allocations: 17.47 kB / 372.2 MB, free: 19.71 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002074/0.3166, allocations: 0.8425 MB / 373.1 MB, free: 19.69 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00453/0.3211, allocations: 2.414 MB / 375.5 MB, free: 18.45 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001418/0.3225, allocations: 0.7277 MB / 376.2 MB, free: 18.14 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009298/0.3235, allocations: 457.1 kB / 376.7 MB, free: 17.96 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.624e-05/0.3236, allocations: 15.27 kB / 376.7 MB, free: 17.96 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001225/0.3248, allocations: 0.5373 MB / 377.2 MB, free: 17.75 MB / 302.1 MB Notification: Performance of pre-optimization done (n=90): time 4.088e-06/0.3248, allocations: 0 / 377.2 MB, free: 17.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=110): time 0.01104/0.3359, allocations: 4.172 MB / 381.4 MB, free: 15.76 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.4e-05/0.3359, allocations: 63.88 kB / 381.4 MB, free: 15.7 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00051/0.3364, allocations: 417.4 kB / 381.9 MB, free: 15.5 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.598e-05/0.3365, allocations: 57.31 kB / 381.9 MB, free: 15.45 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001436/0.3367, allocations: 278.4 kB / 382.2 MB, free: 15.23 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000233/0.3369, allocations: 384.6 kB / 382.6 MB, free: 14.94 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003066/0.3372, allocations: 186 kB / 382.7 MB, free: 14.85 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.855e-05/0.3373, allocations: 375.5 kB / 383.1 MB, free: 14.51 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009294/0.3383, allocations: 416.2 kB / 383.5 MB, free: 14.35 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009993/0.3393, allocations: 0.5103 MB / 384 MB, free: 14.12 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001551/0.3409, allocations: 0.7426 MB / 384.8 MB, free: 13.77 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.3409, allocations: 5.25 kB / 384.8 MB, free: 13.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.00305/0.3439, allocations: 1.292 MB / 386.1 MB, free: 13.24 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.591e-05/0.344, allocations: 9.094 kB / 386.1 MB, free: 13.24 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.07e-05/0.344, allocations: 1.344 kB / 386.1 MB, free: 13.24 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001118/0.3451, allocations: 0.5391 MB / 386.6 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000795/0.3459, allocations: 201.1 kB / 386.8 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003546/0.3495, allocations: 3.396 MB / 390.2 MB, free: 10.08 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001262/0.3507, allocations: 175.7 kB / 390.4 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.604e-05/0.3508, allocations: 36.62 kB / 390.4 MB, free: 10.04 MB / 302.1 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,massWithStopAndFriction.stopped,massWithStopAndFriction.mode,$PRE.massWithStopAndFriction.mode,massWithStopAndFriction.locked,massWithStopAndFriction.startBackward,$PRE.massWithStopAndFriction.startBackward,massWithStopAndFriction.startForward,$PRE.massWithStopAndFriction.startForward,massWithStopAndFriction.free,brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,supportFriction.mode,$PRE.supportFriction.mode,supportFriction.locked,supportFriction.startBackward,$PRE.supportFriction.startBackward,supportFriction.startForward,$PRE.supportFriction.startForward,elastoGap.contact,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,9), (1,5), (1,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0003601/0.3512, allocations: 229.1 kB / 390.6 MB, free: 9.855 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001507/0.3514, allocations: 76.41 kB / 390.7 MB, free: 9.816 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002091/0.3516, allocations: 108.8 kB / 390.8 MB, free: 9.727 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.005e-06/0.3516, allocations: 11.47 kB / 390.8 MB, free: 9.727 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.283e-05/0.3516, allocations: 4 kB / 390.8 MB, free: 9.723 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.736e-06/0.3516, allocations: 4.266 kB / 390.8 MB, free: 9.723 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004122/0.3558, allocations: 2.509 MB / 393.3 MB, free: 8.141 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.56e-06/0.3558, allocations: 1.281 kB / 393.3 MB, free: 8.141 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007301/0.3565, allocations: 175.2 kB / 393.5 MB, free: 8.098 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000869/0.3574, allocations: 0.5011 MB / 394 MB, free: 7.824 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.612e-05/0.3575, allocations: 40.14 kB / 394.1 MB, free: 7.793 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002973/0.3605, allocations: 3.182 MB / 397.2 MB, free: 4.871 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.3605, allocations: 1.531 kB / 397.2 MB, free: 4.871 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003347/0.3638, allocations: 1.763 MB / 399 MB, free: 3.855 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003378/0.3642, allocations: 235.7 kB / 399.2 MB, free: 3.641 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001365/0.3643, allocations: 35.91 kB / 399.3 MB, free: 3.617 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001263/0.3656, allocations: 201.4 kB / 399.5 MB, free: 3.527 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007921/0.3664, allocations: 382.2 kB / 399.8 MB, free: 3.297 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.989e-05/0.3665, allocations: 45.03 kB / 399.9 MB, free: 3.277 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003079/0.3668, allocations: 294.1 kB / 400.2 MB, free: 3.094 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.3668, allocations: 0 / 400.2 MB, free: 3.094 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008039/0.3676, allocations: 246.8 kB / 400.4 MB, free: 3.059 MB / 302.1 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 (90): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,7), (1,8), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004658/0.3723, allocations: 2.605 MB / 403 MB, free: 0.7695 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003/0.3753, allocations: 1.199 MB / 404.2 MB, free: 15.57 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 7.784e-06/0.3754, allocations: 4 kB / 404.2 MB, free: 15.57 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001831/0.3772, allocations: 0.774 MB / 405 MB, free: 14.78 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001062/0.3783, allocations: 158.7 kB / 405.1 MB, free: 14.63 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01569/0.394, allocations: 7.407 MB / 412.6 MB, free: 7.074 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006734/0.3947, allocations: 0.948 MB / 413.5 MB, free: 6.094 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004452/0.3951, allocations: 85.69 kB / 413.6 MB, free: 6.008 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004269/0.3956, allocations: 271.3 kB / 413.9 MB, free: 5.742 MB / 318.1 MB Notification: Performance of SimCode: time 6.51e-07/0.3956, allocations: 0 / 413.9 MB, free: 5.742 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06178/0.4574, allocations: 23.66 MB / 437.5 MB, free: 14.32 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.08/12.53, allocations: 3.938 kB / 437.5 MB, free: 14.32 MB / 350.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.HeatLosses_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_1_0-beta_om_Modelica_Mechanics_Translational_Examples_HeatLosses.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1)