Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.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.MultiBody.Examples.Elementary.HeatLosses,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_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.001213/0.001213, allocations: 92.78 kB / 16.99 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00145/0.00145, allocations: 203.8 kB / 17.9 MB, free: 5.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.42/1.42, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002519/0.0002519, allocations: 8 kB / 306.7 MB, free: 1.254 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.118/0.1183, allocations: 51.49 MB / 358.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses): time 0.2645/0.3828, allocations: 51.84 MB / 410 MB, free: 5.086 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03206/0.4149, allocations: 12.16 MB / 422.2 MB, free: 11.44 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0131/0.428, allocations: 255.3 kB / 422.5 MB, free: 11.19 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01025/0.4383, allocations: 2.531 MB / 425 MB, free: 8.645 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03125/0.4696, allocations: 7.35 MB / 432.3 MB, free: 1.281 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005175/0.4748, allocations: 0.862 MB / 433.2 MB, free: 428 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007776/0.4826, allocations: 3.542 MB / 436.7 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008818/0.4914, allocations: 5.537 MB / 442.3 MB, free: 7.258 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003281/0.4948, allocations: 1.472 MB / 443.7 MB, free: 5.781 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003817/0.4986, allocations: 2.013 MB / 445.8 MB, free: 3.762 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001156/0.4998, allocations: 208 kB / 446 MB, free: 3.559 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002746/0.5025, allocations: 0.987 MB / 447 MB, free: 2.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002585/0.5052, allocations: 2.264 MB / 449.2 MB, free: 308 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001708/0.5069, allocations: 1.139 MB / 450.4 MB, free: 15.15 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008706/0.5156, allocations: 7.096 MB / 457.5 MB, free: 8.039 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.5156, allocations: 0 / 457.5 MB, free: 8.039 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.5156, allocations: 0 / 457.5 MB, free: 8.039 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003741/0.516, allocations: 0 / 457.5 MB, free: 8.039 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2151 * Number of variables: 2151 Notification: Performance of Generate backend data structure: time 0.01412/0.5302, allocations: 5.797 MB / 463.2 MB, free: 2.164 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.531e-05/0.5302, allocations: 12.03 kB / 463.3 MB, free: 2.152 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00279/0.533, allocations: 1.009 MB / 464.3 MB, free: 1.133 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01315/0.5462, allocations: 3.322 MB / 467.6 MB, free: 13.8 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00985/0.5561, allocations: 3.344 MB / 470.9 MB, free: 10.39 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005075/0.5566, allocations: 352.8 kB / 471.3 MB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003202/0.5598, allocations: 0.6788 MB / 472 MB, free: 9.367 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04507/0.6049, allocations: 17.7 MB / 489.7 MB, free: 6.664 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003725/0.6053, allocations: 59.45 kB / 489.7 MB, free: 6.605 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002023/0.6074, allocations: 215.8 kB / 489.9 MB, free: 6.395 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004689/0.6121, allocations: 2.847 MB / 492.8 MB, free: 3.547 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03703/0.6491, allocations: 15.58 MB / 0.4964 GB, free: 3.945 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.336/0.9851, allocations: 60.37 MB / 0.5554 GB, free: 108.3 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03876/1.024, allocations: 14.91 MB / 0.5699 GB, free: 105.8 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02081/1.045, allocations: 17.67 MB / 0.5872 GB, free: 94.8 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.866e-05/1.045, allocations: 66.03 kB / 0.5873 GB, free: 94.75 MB / 446.1 MB Notification: Performance of pre-optimization done (n=289): time 5.671e-06/1.045, allocations: 0 / 0.5873 GB, free: 94.75 MB / 446.1 MB Notification: Performance of matching and sorting (n=321): time 0.1343/1.179, allocations: 44.52 MB / 0.6307 GB, free: 51.69 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002522/1.182, allocations: 4.624 MB / 0.6353 GB, free: 46.62 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008126/1.19, allocations: 5.415 MB / 0.6405 GB, free: 41.21 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001545/1.192, allocations: 76.05 kB / 0.6406 GB, free: 41.13 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002813/1.194, allocations: 4.177 MB / 0.6447 GB, free: 36.96 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002363/1.197, allocations: 1.24 MB / 0.6459 GB, free: 35.73 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009586/1.198, allocations: 180.9 kB / 0.6461 GB, free: 35.55 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0004293/1.198, allocations: 0.6743 MB / 0.6467 GB, free: 34.87 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005821/1.204, allocations: 4.015 MB / 0.6507 GB, free: 30.85 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009052/1.213, allocations: 8.944 MB / 0.6594 GB, free: 19.53 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008177/1.221, allocations: 5.756 MB / 0.665 GB, free: 13.8 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001305/1.221, allocations: 52 kB / 0.6651 GB, free: 13.75 MB / 446.1 MB Notification: Performance of matching and sorting (n=1160) (initialization): time 0.04638/1.268, allocations: 17.93 MB / 0.6826 GB, free: 11.72 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002526/1.268, allocations: 80.97 kB / 0.6827 GB, free: 11.64 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.03352/1.302, allocations: 10.67 MB / 0.6931 GB, free: 0.8828 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02981/1.331, allocations: 6.453 MB / 0.6994 GB, free: 10.38 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007862/1.339, allocations: 2.207 MB / 0.7015 GB, free: 8.172 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2279/1.567, allocations: 18.69 MB / 0.7198 GB, free: 148.4 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008238/1.576, allocations: 0.7841 MB / 0.7206 GB, free: 148.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001722/1.577, allocations: 0.5186 MB / 0.7211 GB, free: 148.4 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 792 * Number of states: 0 () * Number of discrete variables: 66 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],body3.sphereColor[3],body3.sphereColor[2],body3.sphereColor[1],springDamperSeries.color[3],springDamperSeries.color[2],springDamperSeries.color[1],springDamperSeries.color_b[3],springDamperSeries.color_b[2],springDamperSeries.color_b[1],springDamperSeries.color_a[3],springDamperSeries.color_a[2],springDamperSeries.color_a[1],bar3.color[3],bar3.color[2],bar3.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],springDamper.color[3],springDamper.color[2],springDamper.color[1],springDamper.color_b[3],springDamper.color_b[2],springDamper.color_b[1],springDamper.color_a[3],springDamper.color_a[2],springDamper.color_a[1],damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1094): * Single equations (assignments): 1073 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 9 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 6 {(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 3 {4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 1,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005506/1.583, allocations: 2.74 MB / 0.7237 GB, free: 147.9 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009484/1.584, allocations: 484.1 kB / 0.7242 GB, free: 147.9 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01559/1.599, allocations: 8.135 MB / 0.7321 GB, free: 145.4 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01309/1.613, allocations: 7.267 MB / 0.7392 GB, free: 143.4 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.662e-05/1.613, allocations: 9 kB / 0.7392 GB, free: 143.4 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.282e-05/1.613, allocations: 14.53 kB / 0.7393 GB, free: 143.4 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03209/1.645, allocations: 18.4 MB / 0.7572 GB, free: 136.5 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.087e-05/1.645, allocations: 7.625 kB / 0.7572 GB, free: 136.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004106/1.649, allocations: 0.7614 MB / 0.758 GB, free: 136.3 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008393/1.657, allocations: 2.905 MB / 0.7608 GB, free: 134.2 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001154/1.659, allocations: 91.92 kB / 0.7609 GB, free: 134.1 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01307/1.672, allocations: 13.98 MB / 0.7746 GB, free: 119.5 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002775/1.675, allocations: 4.478 MB / 0.7789 GB, free: 114.6 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02178/1.696, allocations: 13.47 MB / 0.7921 GB, free: 101.1 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002925/1.699, allocations: 0.5497 MB / 0.7926 GB, free: 100.5 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002887/1.702, allocations: 79.97 kB / 0.7927 GB, free: 100.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004986/1.707, allocations: 399.8 kB / 0.7931 GB, free: 100.1 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001147/1.709, allocations: 249.6 kB / 0.7933 GB, free: 99.84 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007336/1.709, allocations: 105.3 kB / 0.7934 GB, free: 99.73 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005702/1.715, allocations: 3.386 MB / 0.7967 GB, free: 96.37 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.61e-07/1.715, allocations: 4 kB / 0.7967 GB, free: 96.36 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00885/1.724, allocations: 1.832 MB / 0.7985 GB, free: 94.54 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 37 ($STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3],body2.frame_a.r_0[1],body2.frame_a.r_0[2],body2.frame_a.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body2.w_a[1],body2.w_a[2],body2.w_a[3],springDamperSeries.s_damper,body3.frame_a.r_0[1],body3.frame_a.r_0[2],body3.frame_a.r_0[3],body3.v_0[1],body3.v_0[2],body3.v_0[3],body3.w_a[1],body3.w_a[2],body3.w_a[3]) * 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 (273): * Single equations (assignments): 258 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 9 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 6 {(4,100.0%),(3,100.0%),(3,100.0%),(4,100.0%),(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 3 {4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 1,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02012/1.744, allocations: 15.69 MB / 0.8138 GB, free: 78.55 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01857/1.763, allocations: 11.27 MB / 0.8248 GB, free: 67.11 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.53e-05/1.763, allocations: 4 kB / 0.8249 GB, free: 67.11 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.009969/1.773, allocations: 5.449 MB / 0.8302 GB, free: 61.45 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003772/1.776, allocations: 0.586 MB / 0.8307 GB, free: 60.86 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3374/2.114, allocations: 182.2 MB / 1.009 GB, free: 51.69 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003786/2.118, allocations: 4.414 MB / 1.013 GB, free: 50.24 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.005869/2.124, allocations: 2.617 MB / 1.016 GB, free: 49.82 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003276/2.127, allocations: 2.814 MB / 1.018 GB, free: 47.32 MB / 478.1 MB Notification: Performance of SimCode: time 1.663e-06/2.127, allocations: 0 / 1.018 GB, free: 47.32 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6286/2.756, allocations: 128.8 MB / 1.144 GB, free: 101.7 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001361/2.756, allocations: 226.2 kB / 1.144 GB, free: 101.4 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.627/8.383, allocations: 0 / 1.144 GB, free: 101.4 MB / 478.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_HeatLosses_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_HeatLosses.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses_res.mat does not exist to compare? outputFormat=mat