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/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 trunk/package.mo", uses=false) 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) 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_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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009187/0.0009187, allocations: 93.25 kB / 17 MB, free: 6.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001353/0.001353, allocations: 196.1 kB / 17.9 MB, free: 6.062 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.418/1.418, allocations: 227.4 MB / 246 MB, free: 11.99 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000235/0.0002351, allocations: 8 kB / 306.8 MB, free: 1.48 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1143/0.1146, allocations: 51.49 MB / 358.3 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.00456/0.1192, allocations: 3.838 MB / 362.1 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002956/0.1222, allocations: 1.473 MB / 363.6 MB, free: 8.66 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003864/0.1226, allocations: 12 kB / 363.6 MB, free: 8.648 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004062/0.123, allocations: 95.23 kB / 363.7 MB, free: 8.555 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005518/0.1236, allocations: 234.3 kB / 363.9 MB, free: 8.324 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008764/0.1245, allocations: 315.2 kB / 364.3 MB, free: 8.02 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009884/0.1255, allocations: 1.01 MB / 365.3 MB, free: 7 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003364/0.1258, allocations: 199.2 kB / 365.5 MB, free: 6.793 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005727/0.1264, allocations: 430.5 kB / 365.9 MB, free: 6.371 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005245/0.1269, allocations: 470.3 kB / 366.3 MB, free: 5.91 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001022/0.127, allocations: 48 kB / 366.4 MB, free: 5.863 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002868/0.1273, allocations: 111.9 kB / 366.5 MB, free: 5.754 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002075/0.1276, allocations: 179.4 kB / 366.7 MB, free: 5.578 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001421/0.1277, allocations: 165.3 kB / 366.8 MB, free: 5.41 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007264/0.1284, allocations: 0.7871 MB / 367.6 MB, free: 4.621 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.1284, allocations: 0 / 367.6 MB, free: 4.621 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.52e-07/0.1285, allocations: 0 / 367.6 MB, free: 4.621 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.307e-06/0.1285, allocations: 0 / 367.6 MB, free: 4.621 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: 173 * Number of variables: 173 Notification: Performance of Generate backend data structure: time 0.002727/0.1312, allocations: 1.256 MB / 368.9 MB, free: 3.316 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.842e-05/0.1313, allocations: 12.03 kB / 368.9 MB, free: 3.305 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001512/0.1314, allocations: 110.5 kB / 369 MB, free: 3.188 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004489/0.1319, allocations: 122.9 kB / 369.1 MB, free: 3.066 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006325/0.1325, allocations: 432.6 kB / 369.5 MB, free: 2.605 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.065e-05/0.1326, allocations: 62 kB / 369.6 MB, free: 2.543 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001264/0.1327, allocations: 75.89 kB / 369.7 MB, free: 2.469 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001619/0.1344, allocations: 0.8114 MB / 370.5 MB, free: 1.648 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.6e-05/0.1344, allocations: 0 / 370.5 MB, free: 1.648 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.317e-05/0.1345, allocations: 35.98 kB / 370.5 MB, free: 1.613 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.963e-05/0.1345, allocations: 20 kB / 370.5 MB, free: 1.594 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001892/0.1364, allocations: 0.8743 MB / 371.4 MB, free: 0.7227 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2267/0.3631, allocations: 2.455 MB / 373.9 MB, free: 18.48 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001763/0.3649, allocations: 0.743 MB / 374.6 MB, free: 18.44 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001044/0.366, allocations: 476.6 kB / 375.1 MB, free: 18.43 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001017/0.3661, allocations: 22.77 kB / 375.1 MB, free: 18.43 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001257/0.3673, allocations: 0.5506 MB / 375.6 MB, free: 18.28 MB / 302.1 MB Notification: Performance of pre-optimization done (n=89): time 3.196e-06/0.3674, allocations: 0 / 375.6 MB, free: 18.28 MB / 302.1 MB Notification: Performance of matching and sorting (n=109): time 0.0105/0.3779, allocations: 4.361 MB / 380 MB, free: 16.32 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.291e-05/0.3779, allocations: 67.39 kB / 380.1 MB, free: 16.26 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005884/0.3785, allocations: 411.9 kB / 380.5 MB, free: 16.06 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.251e-05/0.3786, allocations: 55.94 kB / 380.5 MB, free: 16.01 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001949/0.3788, allocations: 274 kB / 380.8 MB, free: 15.79 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002919/0.3791, allocations: 372.3 kB / 381.2 MB, free: 15.51 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.062e-05/0.3792, allocations: 22.17 kB / 381.2 MB, free: 15.49 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001229/0.3793, allocations: 378 kB / 381.6 MB, free: 15.15 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009673/0.3803, allocations: 427.6 kB / 382 MB, free: 15 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001091/0.3814, allocations: 0.5231 MB / 382.5 MB, free: 14.76 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000882/0.3823, allocations: 373.5 kB / 382.9 MB, free: 14.61 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.3823, allocations: 0 / 382.9 MB, free: 14.61 MB / 302.1 MB Notification: Performance of matching and sorting (n=136) (initialization): time 0.002978/0.3853, allocations: 1.3 MB / 384.2 MB, free: 14.09 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.659e-05/0.3854, allocations: 5.469 kB / 384.2 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.145e-05/0.3854, allocations: 2.828 kB / 384.2 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001077/0.3865, allocations: 0.4886 MB / 384.7 MB, free: 13.9 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008091/0.3873, allocations: 206.8 kB / 384.9 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003559/0.3908, allocations: 3.271 MB / 388.1 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001369/0.3922, allocations: 241.5 kB / 388.4 MB, free: 11.06 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.61e-05/0.3923, allocations: 35 kB / 388.4 MB, free: 11.05 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,$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 (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.0004323/0.3928, allocations: 229.6 kB / 388.6 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001527/0.3929, allocations: 73.05 kB / 388.7 MB, free: 10.83 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002348/0.3932, allocations: 104.3 kB / 388.8 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.56e-05/0.3932, allocations: 18.83 kB / 388.8 MB, free: 10.74 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.643e-05/0.3932, allocations: 3.219 kB / 388.8 MB, free: 10.74 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.331e-05/0.3932, allocations: 6.062 kB / 388.8 MB, free: 10.74 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004503/0.3977, allocations: 2.503 MB / 391.3 MB, free: 9.473 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.823e-06/0.3978, allocations: 1.344 kB / 391.3 MB, free: 9.473 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000761/0.3985, allocations: 183.9 kB / 391.5 MB, free: 9.457 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008366/0.3994, allocations: 474.3 kB / 392 MB, free: 9.277 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.212e-05/0.3995, allocations: 34.75 kB / 392 MB, free: 9.262 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002931/0.4024, allocations: 3.077 MB / 395.1 MB, free: 6.59 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/0.4024, allocations: 6.375 kB / 395.1 MB, free: 6.586 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003625/0.4061, allocations: 1.845 MB / 396.9 MB, free: 5.547 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004455/0.4065, allocations: 240.5 kB / 397.2 MB, free: 5.328 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000132/0.4067, allocations: 40.84 kB / 397.2 MB, free: 5.301 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001175/0.4079, allocations: 270.3 kB / 397.5 MB, free: 5.203 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008275/0.4087, allocations: 439.1 kB / 397.9 MB, free: 4.922 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.118e-05/0.4088, allocations: 40.77 kB / 397.9 MB, free: 4.906 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002952/0.4091, allocations: 281.2 kB / 398.2 MB, free: 4.73 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4091, allocations: 0 / 398.2 MB, free: 4.73 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009046/0.41, allocations: 240.3 kB / 398.5 MB, free: 4.695 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 (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.004343/0.4144, allocations: 2.678 MB / 401.1 MB, free: 2.906 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002326/0.4167, allocations: 1.176 MB / 402.3 MB, free: 1.719 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/0.4167, allocations: 4 kB / 402.3 MB, free: 1.715 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001407/0.4181, allocations: 0.782 MB / 403.1 MB, free: 0.918 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009568/0.4191, allocations: 133.8 kB / 403.2 MB, free: 0.7969 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009963/0.4291, allocations: 5.408 MB / 408.6 MB, free: 11.29 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006414/0.4298, allocations: 0.9518 MB / 409.6 MB, free: 10.32 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004931/0.4303, allocations: 85.5 kB / 409.7 MB, free: 10.23 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004135/0.4307, allocations: 251.3 kB / 409.9 MB, free: 9.984 MB / 318.1 MB Notification: Performance of SimCode: time 1.242e-06/0.4307, allocations: 0 / 409.9 MB, free: 9.984 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03787/0.4686, allocations: 20.83 MB / 430.7 MB, free: 5.406 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002254/0.4689, allocations: 253.5 kB / 431 MB, free: 5.066 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.361/2.83, allocations: 0 / 431 MB, free: 5.066 MB / 334.1 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