Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.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.001734/0.001734, allocations: 109 kB / 21.23 MB, free: 0.6641 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.002072/0.002072, allocations: 213.9 kB / 24.54 MB, free: 4.02 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.448/1.448, allocations: 230.6 MB / 258.3 MB, free: 8.035 MB / 206.1 MB " [Timeout remaining time 178] 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.Thermal.HeatTransfer.Examples.TwoMasses,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Thermal_HeatTransfer_Examples_TwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Thermal_HeatTransfer_Examples_TwoMasses",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.003163/0.003163, allocations: 68.77 kB / 378.5 MB, free: 3.148 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2619/0.2651, allocations: 53.37 MB / 431.9 MB, free: 6.895 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.TwoMasses): time 0.003041/0.2681, allocations: 1.661 MB / 433.6 MB, free: 5.23 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00113/0.2692, allocations: 0.5571 MB / 434.1 MB, free: 4.668 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.943e-05/0.2693, allocations: 0 / 434.1 MB, free: 4.668 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.959e-05/0.2694, allocations: 15.86 kB / 434.1 MB, free: 4.652 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.443e-05/0.2694, allocations: 19.78 kB / 434.1 MB, free: 4.633 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002446/0.2697, allocations: 39.89 kB / 434.2 MB, free: 4.594 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001493/0.2698, allocations: 91.59 kB / 434.3 MB, free: 4.504 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001332/0.27, allocations: 30.03 kB / 434.3 MB, free: 4.477 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.619e-05/0.27, allocations: 39.91 kB / 434.3 MB, free: 4.438 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.894e-05/0.2701, allocations: 43.84 kB / 434.4 MB, free: 4.395 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.975e-05/0.2701, allocations: 8 kB / 434.4 MB, free: 4.387 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.944e-05/0.2702, allocations: 16 kB / 434.4 MB, free: 4.371 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.51e-05/0.2702, allocations: 15.92 kB / 434.4 MB, free: 4.355 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.707e-05/0.2703, allocations: 47.8 kB / 434.5 MB, free: 4.309 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001841/0.2705, allocations: 99.61 kB / 434.6 MB, free: 4.211 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.2705, allocations: 0 / 434.6 MB, free: 4.211 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2705, allocations: 3.938 kB / 434.6 MB, free: 4.207 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.189e-05/0.2705, allocations: 0 / 434.6 MB, free: 4.207 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0005097/0.271, allocations: 306.1 kB / 434.9 MB, free: 3.879 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.09e-05/0.2711, allocations: 8.031 kB / 434.9 MB, free: 3.871 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.689e-05/0.2711, allocations: 46.73 kB / 434.9 MB, free: 3.816 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001181/0.2712, allocations: 8.891 kB / 434.9 MB, free: 3.809 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001139/0.2713, allocations: 110.5 kB / 435 MB, free: 3.676 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.667e-05/0.2714, allocations: 8.375 kB / 435.1 MB, free: 3.668 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.968e-05/0.2714, allocations: 12.31 kB / 435.1 MB, free: 3.656 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001791/0.2716, allocations: 85.78 kB / 435.1 MB, free: 3.566 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.284e-05/0.2716, allocations: 0 / 435.1 MB, free: 3.566 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.471e-05/0.2716, allocations: 12 kB / 435.2 MB, free: 3.555 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-06/0.2716, allocations: 0 / 435.2 MB, free: 3.555 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000112/0.2717, allocations: 47.97 kB / 435.2 MB, free: 3.508 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007333/0.2724, allocations: 375.5 kB / 435.6 MB, free: 3.098 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001403/0.2726, allocations: 70.55 kB / 435.6 MB, free: 3.02 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.657e-05/0.2726, allocations: 36.83 kB / 435.7 MB, free: 2.98 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.462e-05/0.2727, allocations: 3.938 kB / 435.7 MB, free: 2.977 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.196e-05/0.2727, allocations: 34.56 kB / 435.7 MB, free: 2.934 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 1.242e-06/0.2727, allocations: 0 / 435.7 MB, free: 2.934 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002184/0.2729, allocations: 89.56 kB / 435.8 MB, free: 2.84 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.275e-05/0.273, allocations: 55.41 kB / 435.9 MB, free: 2.773 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.761e-05/0.273, allocations: 106 kB / 436 MB, free: 2.66 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.844e-05/0.2731, allocations: 25.7 kB / 436 MB, free: 2.629 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.526e-05/0.2731, allocations: 111.9 kB / 436.1 MB, free: 2.516 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.875e-05/0.2732, allocations: 27.73 kB / 436.1 MB, free: 2.488 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.361e-05/0.2732, allocations: 25.72 kB / 436.1 MB, free: 2.457 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.2733, allocations: 322.8 kB / 436.5 MB, free: 2.133 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.067e-05/0.2734, allocations: 16 kB / 436.5 MB, free: 2.117 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.647e-05/0.2734, allocations: 50.5 kB / 436.5 MB, free: 2.059 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001095/0.2736, allocations: 70.75 kB / 436.6 MB, free: 1.98 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.2736, allocations: 0 / 436.6 MB, free: 1.98 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001638/0.2737, allocations: 109.5 kB / 436.7 MB, free: 1.867 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/0.2737, allocations: 4 kB / 436.7 MB, free: 1.863 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.068e-06/0.2737, allocations: 4 kB / 436.7 MB, free: 1.859 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.54e-05/0.2738, allocations: 3.938 kB / 436.7 MB, free: 1.855 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001309/0.2739, allocations: 31.92 kB / 436.7 MB, free: 1.824 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.43e-06/0.2739, allocations: 4.062 kB / 436.8 MB, free: 1.82 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.213e-05/0.2739, allocations: 4 kB / 436.8 MB, free: 1.816 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.045e-06/0.2739, allocations: 4 kB / 436.8 MB, free: 1.812 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.988e-05/0.274, allocations: 121.8 kB / 436.9 MB, free: 1.684 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.557e-05/0.2741, allocations: 3.953 kB / 436.9 MB, free: 1.68 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.693e-05/0.2741, allocations: 16.31 kB / 436.9 MB, free: 1.66 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.2741, allocations: 0 / 436.9 MB, free: 1.66 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.2741, allocations: 0 / 436.9 MB, free: 1.66 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.98e-06/0.2741, allocations: 3.984 kB / 436.9 MB, free: 1.656 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002004/0.2743, allocations: 172.7 kB / 437.1 MB, free: 1.445 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.51e-07/0.2743, allocations: 0 / 437.1 MB, free: 1.445 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001043/0.2744, allocations: 19.98 kB / 437.1 MB, free: 1.426 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.2744, allocations: 0 / 437.1 MB, free: 1.426 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.216e-05/0.2744, allocations: 7.938 kB / 437.1 MB, free: 1.418 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.2744, allocations: 0 / 437.1 MB, free: 1.418 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.2744, allocations: 0 / 437.1 MB, free: 1.418 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002246/0.2747, allocations: 187.5 kB / 437.3 MB, free: 1.219 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.234e-05/0.2747, allocations: 8.047 kB / 437.3 MB, free: 1.211 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.7e-05/0.2747, allocations: 7.938 kB / 437.3 MB, free: 1.203 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.882e-05/0.2747, allocations: 4 kB / 437.3 MB, free: 1.199 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.063e-05/0.2748, allocations: 11.92 kB / 437.3 MB, free: 1.188 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.337e-06/0.2748, allocations: 0 / 437.3 MB, free: 1.188 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.849e-05/0.2748, allocations: 83.28 kB / 437.4 MB, free: 1.105 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2748, allocations: 3.938 kB / 437.4 MB, free: 1.102 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002338/0.2751, allocations: 20 kB / 437.4 MB, free: 1.082 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (mass1.T,mass2.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005008/0.2756, allocations: 0.7281 MB / 438.1 MB, free: 336 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001633/0.2757, allocations: 59.86 kB / 438.2 MB, free: 276 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.2757, allocations: 0 / 438.2 MB, free: 276 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.571e-05/0.2758, allocations: 20.41 kB / 438.2 MB, free: 256 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003051/0.2761, allocations: 11.98 kB / 438.2 MB, free: 244 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001645/0.2777, allocations: 1.556 MB / 439.8 MB, free: 14.6 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003118/0.278, allocations: 0.6924 MB / 440.5 MB, free: 13.88 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.703e-05/0.2781, allocations: 11.94 kB / 440.5 MB, free: 13.87 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.465e-05/0.2781, allocations: 19.44 kB / 440.5 MB, free: 13.85 MB / 350.1 MB Notification: Performance of SimCode: time 6.41e-07/0.2781, allocations: 0 / 440.5 MB, free: 13.85 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02785/0.3059, allocations: 1.865 MB / 442.4 MB, free: 12.07 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.213/8.519, allocations: 4.062 kB / 442.4 MB, free: 12.07 MB / 350.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0-beta.om_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Thermal_HeatTransfer_Examples_TwoMasses_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Thermal_HeatTransfer_Examples_TwoMasses.fmu > Modelica_4.1.0-beta.om_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.81272513186559] Failed to read output from testmodel.py, exit status != 0: ['time', 'mass1.T', 'mass2.T'] 8.594182087108493 8.621568312 8.345777338 Calling exit ...