Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.HeatLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001419/0.001419, allocations: 105.8 kB / 19.74 MB, free: 2.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001583/0.001583, allocations: 221.2 kB / 22.92 MB, free: 5.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.278/1.278, allocations: 230.5 MB / 256.4 MB, free: 8.43 MB / 206.1 MB " [Timeout remaining time 179] 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.Rotational.Examples.HeatLosses,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.HeatLosses,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "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.001809/0.001809, allocations: 71.89 kB / 376.1 MB, free: 4.102 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2079/0.2097, allocations: 53.31 MB / 429.4 MB, free: 7.457 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.HeatLosses): time 0.006166/0.2158, allocations: 5.215 MB / 434.6 MB, free: 2.211 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003543/0.2194, allocations: 2.04 MB / 436.7 MB, free: 168 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003355/0.2197, allocations: 15.94 kB / 436.7 MB, free: 152 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000457/0.2202, allocations: 198.4 kB / 436.9 MB, free: 15.95 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009115/0.2211, allocations: 483.1 kB / 437.3 MB, free: 15.48 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009477/0.222, allocations: 0.5225 MB / 437.9 MB, free: 14.95 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001638/0.2237, allocations: 1.733 MB / 439.6 MB, free: 13.22 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003559/0.224, allocations: 227.6 kB / 439.8 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009109/0.2249, allocations: 0.7556 MB / 440.6 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009941/0.2259, allocations: 0.8487 MB / 441.4 MB, free: 11.38 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002058/0.2261, allocations: 140 kB / 441.6 MB, free: 11.24 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004261/0.2266, allocations: 235.9 kB / 441.8 MB, free: 11.01 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003557/0.2269, allocations: 370.9 kB / 442.1 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006107/0.2275, allocations: 0.6571 MB / 442.8 MB, free: 9.984 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001577/0.2291, allocations: 1.635 MB / 444.4 MB, free: 8.348 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.2291, allocations: 4 kB / 444.4 MB, free: 8.344 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.2291, allocations: 0 / 444.4 MB, free: 8.344 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.996e-05/0.2291, allocations: 3.938 kB / 444.4 MB, free: 8.34 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 248 * Number of variables: 248 Notification: Performance of Generate backend data structure: time 0.003332/0.2325, allocations: 1.635 MB / 446.1 MB, free: 6.648 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.26e-05/0.2325, allocations: 8.031 kB / 446.1 MB, free: 6.641 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001896/0.2327, allocations: 152.3 kB / 446.2 MB, free: 6.484 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006195/0.2333, allocations: 168.1 kB / 446.4 MB, free: 6.32 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009039/0.2342, allocations: 0.6361 MB / 447 MB, free: 5.641 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001947/0.2344, allocations: 179.2 kB / 447.2 MB, free: 5.449 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001797/0.2346, allocations: 108 kB / 447.3 MB, free: 5.344 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002228/0.2368, allocations: 1.243 MB / 448.6 MB, free: 4.082 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.648e-05/0.2368, allocations: 11.89 kB / 448.6 MB, free: 4.07 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001136/0.237, allocations: 40 kB / 448.6 MB, free: 4.031 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.144e-05/0.237, allocations: 24 kB / 448.6 MB, free: 4.008 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002729/0.2397, allocations: 1.296 MB / 449.9 MB, free: 2.711 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006017/0.2457, allocations: 3.676 MB / 453.6 MB, free: 14.86 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002106/0.2478, allocations: 1 MB / 454.6 MB, free: 13.86 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001249/0.2491, allocations: 0.5942 MB / 455.2 MB, free: 13.27 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.606e-05/0.2492, allocations: 17.3 kB / 455.2 MB, free: 13.25 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.139e-05/0.2492, allocations: 48.38 kB / 455.3 MB, free: 13.2 MB / 366.1 MB Notification: Performance of pre-optimization done (n=136): time 2.285e-06/0.2492, allocations: 0 / 455.3 MB, free: 13.2 MB / 366.1 MB Notification: Performance of matching and sorting (n=148): time 0.0131/0.2623, allocations: 5.478 MB / 460.7 MB, free: 7.555 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.718e-05/0.2624, allocations: 98.36 kB / 460.8 MB, free: 7.441 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007543/0.2631, allocations: 0.6318 MB / 461.5 MB, free: 6.805 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001117/0.2632, allocations: 65.7 kB / 461.5 MB, free: 6.734 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002443/0.2635, allocations: 354.1 kB / 461.9 MB, free: 6.383 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003941/0.2639, allocations: 0.5114 MB / 462.4 MB, free: 5.867 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004261/0.2643, allocations: 267.5 kB / 462.7 MB, free: 5.602 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000136/0.2644, allocations: 345.9 kB / 463 MB, free: 5.258 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001147/0.2656, allocations: 0.5466 MB / 463.5 MB, free: 4.711 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001249/0.2668, allocations: 0.6802 MB / 464.2 MB, free: 4.004 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001977/0.2688, allocations: 0.9873 MB / 465.2 MB, free: 2.996 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.2688, allocations: 4 kB / 465.2 MB, free: 2.992 MB / 366.1 MB Notification: Performance of matching and sorting (n=182) (initialization): time 0.003477/0.2723, allocations: 1.695 MB / 466.9 MB, free: 1.285 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.762e-05/0.2723, allocations: 4 kB / 466.9 MB, free: 1.281 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.348e-06/0.2723, allocations: 4 kB / 466.9 MB, free: 1.277 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00182/0.2741, allocations: 0.8512 MB / 467.8 MB, free: 432 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009864/0.2751, allocations: 247.6 kB / 468 MB, free: 184 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002571/0.2777, allocations: 1.951 MB / 470 MB, free: 14.17 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001084/0.2788, allocations: 155.8 kB / 470.1 MB, free: 14.02 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001077/0.2789, allocations: 55.97 kB / 470.2 MB, free: 13.96 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 37 (bearingFriction.free,lossyGear.ideal,brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free,lossyGear.mode,$PRE.lossyGear.mode,lossyGear.locked,lossyGear.startBackward,lossyGear.startForward,lossyGear.tau_aPos,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (126): * Single equations (assignments): 124 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(4,45), (1,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0004425/0.2793, allocations: 269.6 kB / 470.4 MB, free: 13.69 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002211/0.2795, allocations: 107.3 kB / 470.5 MB, free: 13.59 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002952/0.2798, allocations: 141.8 kB / 470.7 MB, free: 13.45 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.219e-05/0.2798, allocations: 12 kB / 470.7 MB, free: 13.43 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.536e-06/0.2799, allocations: 0 / 470.7 MB, free: 13.43 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.358e-05/0.2799, allocations: 11.91 kB / 470.7 MB, free: 13.42 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006115/0.286, allocations: 3.256 MB / 473.9 MB, free: 10.09 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.286, allocations: 3.938 kB / 474 MB, free: 10.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00108/0.2871, allocations: 243.8 kB / 474.2 MB, free: 9.848 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001709/0.2888, allocations: 0.8005 MB / 475 MB, free: 9.039 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001021/0.2889, allocations: 47.94 kB / 475 MB, free: 8.992 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002314/0.2912, allocations: 1.899 MB / 476.9 MB, free: 7.043 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.2912, allocations: 0 / 476.9 MB, free: 7.043 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004883/0.2961, allocations: 2.426 MB / 479.4 MB, free: 4.586 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004413/0.2965, allocations: 312.2 kB / 479.7 MB, free: 4.262 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001767/0.2967, allocations: 39.94 kB / 479.7 MB, free: 4.223 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00103/0.2977, allocations: 155.8 kB / 479.9 MB, free: 4.07 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003978/0.2981, allocations: 209 kB / 480.1 MB, free: 3.863 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001014/0.2982, allocations: 51.95 kB / 480.1 MB, free: 3.812 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005456/0.2988, allocations: 450.8 kB / 480.6 MB, free: 3.371 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2988, allocations: 0 / 480.6 MB, free: 3.371 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008053/0.2996, allocations: 319.9 kB / 480.9 MB, free: 3.059 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 12 (damper.phi_rel,damper.w_rel,springDamper.phi_rel,springDamper.w_rel,elastoBacklash.phi_rel,elastoBacklash.w_rel,inertia4.w,lossyGear.phi_a,clutch.phi_rel,clutch.w_rel,oneWayClutch.phi_rel,oneWayClutch.w_rel) * Number of discrete variables: 23 (bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,lossyGear.mode,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 12 (clutch.mode,clutch.startForward,brake.mode,brake.startForward,brake.startBackward,oneWayClutch.stuck,oneWayClutch.startForward,clutch.startBackward,lossyGear.mode,bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (95): * Single equations (assignments): 93 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,7), (4,43)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006374/0.306, allocations: 3.292 MB / 484.2 MB, free: 15.87 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002989/0.3089, allocations: 1.357 MB / 485.5 MB, free: 14.51 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.3089, allocations: 4.062 kB / 485.5 MB, free: 14.5 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001752/0.3107, allocations: 0.7751 MB / 486.3 MB, free: 13.73 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001013/0.3117, allocations: 193.4 kB / 486.5 MB, free: 13.54 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01878/0.3305, allocations: 9.882 MB / 496.4 MB, free: 3.484 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006162/0.3311, allocations: 1.043 MB / 497.4 MB, free: 2.418 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005281/0.3316, allocations: 155.5 kB / 497.6 MB, free: 2.262 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005608/0.3322, allocations: 387.3 kB / 497.9 MB, free: 1.883 MB / 398.1 MB Notification: Performance of SimCode: time 6.51e-07/0.3322, allocations: 0 / 497.9 MB, free: 1.883 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06408/0.3963, allocations: 31.29 MB / 0.5168 GB, free: 2.789 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.94/12.34, allocations: 4.062 kB / 0.5168 GB, free: 2.785 MB / 430.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.HeatLosses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.HeatLosses_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_HeatLosses_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_HeatLosses.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.601224170000933]