Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Thermal_HeatTransfer_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Thermal_HeatTransfer_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00156/0.00156, allocations: 183.5 kB / 16.4 MB, free: 5.754 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.035/2.035, allocations: 205.4 MB / 222.5 MB, free: 9.121 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00115/0.00115, allocations: 101.5 kB / 270.9 MB, free: 8.387 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003973/0.0003974, allocations: 8 kB / 327.1 MB, free: 132 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3372/0.3376, allocations: 47.57 MB / 374.6 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs): time 0.003795/0.3415, allocations: 2.496 MB / 377.1 MB, free: 43.48 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002409/0.344, allocations: 0.9564 MB / 378.1 MB, free: 42.72 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005278/0.3445, allocations: 9.688 kB / 378.1 MB, free: 42.71 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001188/0.3447, allocations: 39.45 kB / 378.1 MB, free: 42.68 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004159/0.3451, allocations: 130.3 kB / 378.3 MB, free: 42.57 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006834/0.3458, allocations: 142.3 kB / 378.4 MB, free: 42.46 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008861/0.3467, allocations: 370.2 kB / 378.8 MB, free: 42.23 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003876/0.3471, allocations: 160.9 kB / 378.9 MB, free: 42.13 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003043/0.3475, allocations: 136.1 kB / 379 MB, free: 42.05 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002169/0.3477, allocations: 141.9 kB / 379.2 MB, free: 41.96 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.621e-05/0.3477, allocations: 13.34 kB / 379.2 MB, free: 41.96 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001459/0.3479, allocations: 31.05 kB / 379.2 MB, free: 41.95 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.228e-05/0.348, allocations: 56.56 kB / 379.3 MB, free: 41.9 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001004/0.3481, allocations: 107.7 kB / 379.4 MB, free: 41.82 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000507/0.3486, allocations: 405.8 kB / 379.8 MB, free: 41.52 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.805e-06/0.3486, allocations: 0 / 379.8 MB, free: 41.52 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3486, allocations: 0 / 379.8 MB, free: 41.52 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.119e-05/0.3487, allocations: 4 kB / 379.8 MB, free: 41.52 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.001156/0.3498, allocations: 0.6476 MB / 380.4 MB, free: 40.93 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.921e-05/0.3499, allocations: 9.562 kB / 380.4 MB, free: 40.93 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001184/0.35, allocations: 75.84 kB / 380.5 MB, free: 40.86 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001174/0.3501, allocations: 54.81 kB / 380.6 MB, free: 40.84 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007247/0.3509, allocations: 393.9 kB / 381 MB, free: 40.48 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.597e-05/0.3509, allocations: 40.55 kB / 381 MB, free: 40.46 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.657e-05/0.351, allocations: 42 kB / 381 MB, free: 40.44 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00101/0.3521, allocations: 483 kB / 381.5 MB, free: 40.04 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.515e-05/0.3521, allocations: 9.594 kB / 381.5 MB, free: 40.03 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.803e-05/0.3522, allocations: 17.53 kB / 381.5 MB, free: 40.02 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.055e-05/0.3522, allocations: 11.78 kB / 381.5 MB, free: 40.02 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007928/0.353, allocations: 243.8 kB / 381.8 MB, free: 39.9 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002845/0.3559, allocations: 2.828 MB / 384.6 MB, free: 37.2 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006474/0.3566, allocations: 162.8 kB / 384.8 MB, free: 37.11 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001523/0.3568, allocations: 90.53 kB / 384.9 MB, free: 37 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.185e-05/0.3568, allocations: 43.78 kB / 384.9 MB, free: 36.95 MB / 298.7 MB Notification: Performance of pre-optimization done (n=16): time 3.056e-06/0.3568, allocations: 0 / 384.9 MB, free: 36.95 MB / 298.7 MB Notification: Performance of matching and sorting (n=17): time 0.001919/0.3588, allocations: 0.625 MB / 385.5 MB, free: 36.48 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.682e-05/0.3588, allocations: 52.81 kB / 385.6 MB, free: 36.41 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004769/0.3593, allocations: 342.8 kB / 385.9 MB, free: 36.19 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.326e-05/0.3594, allocations: 25.7 kB / 385.9 MB, free: 36.16 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000183/0.3596, allocations: 361.5 kB / 386.3 MB, free: 35.82 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.449e-05/0.3596, allocations: 63.28 kB / 386.4 MB, free: 35.77 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.979e-05/0.3597, allocations: 10.09 kB / 386.4 MB, free: 35.76 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.008e-05/0.3597, allocations: 325.8 kB / 386.7 MB, free: 35.44 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002365/0.36, allocations: 71.27 kB / 386.8 MB, free: 35.4 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002894/0.3603, allocations: 219.7 kB / 387 MB, free: 35.17 MB / 298.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: directCapacity.heatFlowToTemperature.y = $START.directCapacity.heatFlowToTemperature.y ($START.inverseCapacity.mass.T = $START.directCapacity.heatFlowToTemperature.y) Notification: Performance of analyzeInitialSystem (initialization): time 0.0009635/0.3613, allocations: 283.7 kB / 387.2 MB, free: 34.98 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.452e-06/0.3613, allocations: 5.969 kB / 387.2 MB, free: 34.98 MB / 298.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008834/0.3622, allocations: 330.3 kB / 387.6 MB, free: 34.8 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.524e-05/0.3622, allocations: 6.719 kB / 387.6 MB, free: 34.8 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.397e-05/0.3623, allocations: 6.125 kB / 387.6 MB, free: 34.8 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002041/0.3625, allocations: 38.19 kB / 387.6 MB, free: 34.78 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004575/0.3629, allocations: 82.45 kB / 387.7 MB, free: 34.76 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001352/0.3643, allocations: 1.476 MB / 389.2 MB, free: 33.26 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003786/0.3647, allocations: 28.02 kB / 389.2 MB, free: 33.25 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.543e-05/0.3648, allocations: 13.72 kB / 389.2 MB, free: 33.25 MB / 298.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: directCapacity.heatFlowToTemperature.y = $START.directCapacity.heatFlowToTemperature.y. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (39): * Single equations (assignments): 38 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000285/0.3651, allocations: 170.3 kB / 389.4 MB, free: 33.09 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.037e-05/0.3652, allocations: 40.25 kB / 389.4 MB, free: 33.07 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.445e-05/0.3653, allocations: 41.44 kB / 389.5 MB, free: 33.04 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.59e-06/0.3653, allocations: 2.094 kB / 389.5 MB, free: 33.04 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.205e-06/0.3653, allocations: 0.9375 kB / 389.5 MB, free: 33.04 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.92e-06/0.3653, allocations: 0 / 389.5 MB, free: 33.04 MB / 298.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001404/0.3667, allocations: 0.7679 MB / 390.2 MB, free: 32.36 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-06/0.3668, allocations: 5.406 kB / 390.2 MB, free: 32.36 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003407/0.3671, allocations: 31.67 kB / 390.3 MB, free: 32.35 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001306/0.3672, allocations: 24.78 kB / 390.3 MB, free: 32.34 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.107e-05/0.3673, allocations: 9.125 kB / 390.3 MB, free: 32.33 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009765/0.3683, allocations: 1.331 MB / 391.6 MB, free: 30.91 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.255e-06/0.3683, allocations: 0 / 391.6 MB, free: 30.91 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007413/0.369, allocations: 382.7 kB / 392 MB, free: 30.51 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.83e-05/0.3692, allocations: 112.6 kB / 392.1 MB, free: 30.38 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.059e-05/0.3692, allocations: 0 / 392.1 MB, free: 30.38 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000217/0.3694, allocations: 16.03 kB / 392.1 MB, free: 30.36 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.976e-05/0.3695, allocations: 19.94 kB / 392.2 MB, free: 30.34 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.565e-05/0.3696, allocations: 4 kB / 392.2 MB, free: 30.34 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003182/0.3699, allocations: 239.2 kB / 392.4 MB, free: 30.11 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.3699, allocations: 0 / 392.4 MB, free: 30.11 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000694/0.3706, allocations: 68 kB / 392.5 MB, free: 30.04 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (inverseCapacity.mass.T,capacitor3a.T,capacitor3b.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 (15): * Single equations (assignments): 14 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009939/0.3716, allocations: 0.9878 MB / 393.4 MB, free: 29.01 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007967/0.3724, allocations: 314.5 kB / 393.8 MB, free: 28.7 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.3724, allocations: 0 / 393.8 MB, free: 28.7 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002947/0.3728, allocations: 186.5 kB / 393.9 MB, free: 28.5 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003851/0.3732, allocations: 37.45 kB / 394 MB, free: 28.46 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004993/0.3782, allocations: 5.603 MB / 399.6 MB, free: 22.71 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002955/0.3785, allocations: 0.8262 MB / 400.4 MB, free: 21.86 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002835/0.3788, allocations: 155.4 kB / 400.6 MB, free: 21.71 MB / 298.7 MB Notification: Performance of SimCode: time 1.233e-06/0.3788, allocations: 0 / 400.6 MB, free: 21.71 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.812/3.191, allocations: 7.95 MB / 408.5 MB, free: 13.75 MB / 298.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Thermal_HeatTransfer_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Thermal_HeatTransfer_Examples_GenerationOfFMUs.fmu > Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs_res.mat does not exist to compare? outputFormat=mat