Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.HeatLosses,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.HeatLosses,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001162/0.001162, allocations: 199.6 kB / 8.536 MB, free: 1.773 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.205/1.205, allocations: 225.5 MB / 234.4 MB, free: 3.469 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008557/0.0008557, allocations: 88.92 kB / 286.3 MB, free: 5.203 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09422/0.0951, allocations: 56.9 MB / 343.2 MB, free: 8.562 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08413/0.1792, allocations: 51.47 MB / 394.7 MB, free: 5.016 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2429/0.4222, allocations: 86.78 MB / 481.5 MB, free: 6.289 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001741/0.4224, allocations: 71.95 kB / 481.6 MB, free: 6.254 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 173 * Number of variables: 173 Notification: Performance of Generate backend data structure: time 0.04924/0.4716, allocations: 18.42 MB / 500 MB, free: 6.621 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.518e-05/0.4717, allocations: 8 kB / 500 MB, free: 6.613 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00056/0.4723, allocations: 126.9 kB / 0.4884 GB, free: 6.488 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006525/0.4729, allocations: 424.8 kB / 0.4888 GB, free: 6.094 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.851e-05/0.473, allocations: 24 kB / 0.4888 GB, free: 6.07 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001161/0.4731, allocations: 43.98 kB / 0.4889 GB, free: 6.027 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001307/0.4744, allocations: 0.6977 MB / 0.4895 GB, free: 5.574 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00116/0.4756, allocations: 0.629 MB / 0.4902 GB, free: 5.121 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.119e-05/0.4756, allocations: 10.47 kB / 0.4902 GB, free: 5.113 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.68e-05/0.4757, allocations: 7.938 kB / 0.4902 GB, free: 5.105 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.671e-05/0.4757, allocations: 19.94 kB / 0.4902 GB, free: 5.086 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004503/0.4802, allocations: 2.383 MB / 0.4925 GB, free: 3.09 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007379/0.481, allocations: 423.2 kB / 0.4929 GB, free: 2.824 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005899/0.4816, allocations: 387.5 kB / 0.4933 GB, free: 2.594 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.896e-05/0.4817, allocations: 12.77 kB / 0.4933 GB, free: 2.578 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007127/0.4824, allocations: 459.8 kB / 0.4937 GB, free: 2.262 MB / 362.7 MB Notification: Performance of pre-optimization done (n=89): time 1.964e-06/0.4824, allocations: 0 / 0.4937 GB, free: 2.262 MB / 362.7 MB Notification: Performance of matching and sorting (n=109): time 0.004931/0.4874, allocations: 2.481 MB / 0.4962 GB, free: 260 kB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.807e-05/0.4874, allocations: 68.34 kB / 0.4962 GB, free: 180 kB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003523/0.4878, allocations: 316.8 kB / 0.4965 GB, free: 15.93 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.802e-05/0.4879, allocations: 36.52 kB / 0.4966 GB, free: 15.89 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001358/0.488, allocations: 231.4 kB / 0.4968 GB, free: 15.68 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002798/0.4883, allocations: 355.5 kB / 0.4971 GB, free: 15.38 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.824e-05/0.4884, allocations: 0 / 0.4971 GB, free: 15.38 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001377/0.4885, allocations: 375.6 kB / 0.4975 GB, free: 15.03 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005952/0.4891, allocations: 337.4 kB / 0.4978 GB, free: 14.84 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007087/0.4898, allocations: 426.5 kB / 0.4982 GB, free: 14.57 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005217/0.4904, allocations: 284.1 kB / 0.4985 GB, free: 14.39 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.838e-06/0.4904, allocations: 9.125 kB / 0.4985 GB, free: 14.38 MB / 378.7 MB Notification: Performance of matching and sorting (n=136) (initialization): time 0.002348/0.4927, allocations: 1.083 MB / 0.4995 GB, free: 13.38 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.522e-05/0.4927, allocations: 8 kB / 0.4996 GB, free: 13.38 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.4928, allocations: 10.34 kB / 0.4996 GB, free: 13.37 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009301/0.4937, allocations: 490.2 kB / 0.5 GB, free: 12.88 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008874/0.4946, allocations: 217.2 kB / 0.5002 GB, free: 12.67 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002822/0.4974, allocations: 2.915 MB / 0.5031 GB, free: 9.582 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001269/0.4987, allocations: 246 kB / 0.5033 GB, free: 9.344 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001079/0.4988, allocations: 35.98 kB / 0.5034 GB, free: 9.309 MB / 378.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: supportFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: massWithStopAndFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (114): * Single equations (assignments): 111 * 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 9,1 5,1 8} Notification: Performance of prepare postOptimizeDAE: time 0.0002596/0.4991, allocations: 142.6 kB / 0.5035 GB, free: 9.164 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001337/0.4992, allocations: 75.14 kB / 0.5036 GB, free: 9.09 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001761/0.4994, allocations: 87.08 kB / 0.5036 GB, free: 9.004 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.338e-06/0.4994, allocations: 12 kB / 0.5037 GB, free: 8.992 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/0.4995, allocations: 0 / 0.5037 GB, free: 8.992 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.119e-05/0.4995, allocations: 3.984 kB / 0.5037 GB, free: 8.988 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003807/0.5033, allocations: 2.191 MB / 0.5058 GB, free: 6.695 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/0.5033, allocations: 0 / 0.5058 GB, free: 6.695 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008902/0.5042, allocations: 199.9 kB / 0.506 GB, free: 6.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008519/0.5051, allocations: 454.2 kB / 0.5064 GB, free: 6.047 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.988e-05/0.5052, allocations: 27.95 kB / 0.5065 GB, free: 6.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002706/0.5079, allocations: 2.839 MB / 0.5092 GB, free: 3.016 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.496e-06/0.5079, allocations: 0 / 0.5092 GB, free: 3.016 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002925/0.5108, allocations: 1.65 MB / 0.5108 GB, free: 1.281 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003681/0.5145, allocations: 2.476 MB / 0.5133 GB, free: 14.71 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003833/0.5149, allocations: 240.2 kB / 0.5135 GB, free: 14.46 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001663/0.5151, allocations: 16 kB / 0.5135 GB, free: 14.44 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001357/0.5165, allocations: 263.8 kB / 0.5137 GB, free: 14.18 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003813/0.5169, allocations: 200.5 kB / 0.5139 GB, free: 13.99 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001076/0.517, allocations: 47.97 kB / 0.514 GB, free: 13.94 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0002589/0.5173, allocations: 243.2 kB / 0.5142 GB, free: 13.7 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001286/0.5186, allocations: 207.9 kB / 0.5144 GB, free: 13.5 MB / 394.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) * 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 7,1 8,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006751/0.5192, allocations: 303.7 kB / 0.5147 GB, free: 13.28 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001697/0.521, allocations: 0.9645 MB / 0.5156 GB, free: 12.31 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.521, allocations: 320 / 0.5156 GB, free: 12.31 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001215/0.5222, allocations: 0.6457 MB / 0.5163 GB, free: 11.66 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006696/0.5229, allocations: 91.34 kB / 0.5164 GB, free: 11.57 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003667/0.5266, allocations: 1.589 MB / 0.5179 GB, free: 9.926 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008374/0.5274, allocations: 1.044 MB / 0.5189 GB, free: 8.859 MB / 394.7 MB Notification: Performance of SimCode: time 6.41e-07/0.5274, allocations: 0 / 0.5189 GB, free: 8.859 MB / 394.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Translational_Examples_HeatLosses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Translational_Examples_HeatLosses.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat does not exist to compare? outputFormat=mat