Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingResistor.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.Electrical.Analog.Examples.HeatingResistor,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_HeatingResistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingResistor,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_HeatingResistor",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.001625/0.00163, allocations: 183.1 kB / 16.4 MB, free: 5.75 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.067/2.067, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.001155/0.001155, allocations: 98.2 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004067/0.0004068, allocations: 12 kB / 327.1 MB, free: 112 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3402/0.3406, allocations: 47.58 MB / 374.6 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingResistor): time 0.002678/0.3434, allocations: 1.727 MB / 376.4 MB, free: 44.07 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001091/0.3445, allocations: 488.3 kB / 376.8 MB, free: 43.69 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001063/0.3447, allocations: 2.375 kB / 376.8 MB, free: 43.69 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.95e-05/0.3447, allocations: 14.22 kB / 376.9 MB, free: 43.68 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001638/0.3449, allocations: 49.66 kB / 376.9 MB, free: 43.63 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002103/0.3451, allocations: 32.39 kB / 376.9 MB, free: 43.61 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002197/0.3454, allocations: 105.4 kB / 377 MB, free: 43.54 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001606/0.3455, allocations: 34.25 kB / 377.1 MB, free: 43.52 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001411/0.3457, allocations: 55.75 kB / 377.1 MB, free: 43.49 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001212/0.3458, allocations: 55.11 kB / 377.2 MB, free: 43.46 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.519e-05/0.3459, allocations: 6.656 kB / 377.2 MB, free: 43.46 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.154e-05/0.346, allocations: 9.75 kB / 377.2 MB, free: 43.46 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.823e-05/0.346, allocations: 27.5 kB / 377.2 MB, free: 43.43 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.758e-05/0.3461, allocations: 55 kB / 377.3 MB, free: 43.39 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001982/0.3463, allocations: 115.1 kB / 377.4 MB, free: 43.3 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.354e-06/0.3463, allocations: 3.938 kB / 377.4 MB, free: 43.3 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.923e-06/0.3463, allocations: 0 / 377.4 MB, free: 43.3 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.039e-06/0.3463, allocations: 1 kB / 377.4 MB, free: 43.3 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0006569/0.347, allocations: 416.5 kB / 377.8 MB, free: 42.89 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.841e-05/0.347, allocations: 17.31 kB / 377.8 MB, free: 42.88 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.534e-05/0.3471, allocations: 46.73 kB / 377.9 MB, free: 42.83 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001146/0.3472, allocations: 20.14 kB / 377.9 MB, free: 42.82 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002194/0.3475, allocations: 206.5 kB / 378.1 MB, free: 42.59 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.732e-05/0.3475, allocations: 8.828 kB / 378.1 MB, free: 42.59 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.603e-05/0.3475, allocations: 12.12 kB / 378.1 MB, free: 42.58 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003335/0.3479, allocations: 118 kB / 378.2 MB, free: 42.5 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.373e-05/0.3479, allocations: 3.938 kB / 378.2 MB, free: 42.5 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.064e-05/0.3479, allocations: 5.438 kB / 378.2 MB, free: 42.5 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.815e-06/0.3479, allocations: 6.438 kB / 378.2 MB, free: 42.49 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000292/0.3482, allocations: 85.59 kB / 378.3 MB, free: 42.45 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001054/0.3493, allocations: 0.6031 MB / 378.9 MB, free: 41.86 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000443/0.3498, allocations: 87.12 kB / 379 MB, free: 41.81 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.696e-05/0.3498, allocations: 0 / 379 MB, free: 41.81 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.273e-05/0.3499, allocations: 41.12 kB / 379 MB, free: 41.76 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 1.453e-06/0.3499, allocations: 0 / 379 MB, free: 41.76 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.001054/0.3509, allocations: 267.4 kB / 379.3 MB, free: 41.55 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.885e-05/0.351, allocations: 52.53 kB / 379.4 MB, free: 41.49 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001629/0.3512, allocations: 142 kB / 379.5 MB, free: 41.37 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.757e-05/0.3512, allocations: 29.7 kB / 379.5 MB, free: 41.34 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.644e-05/0.3513, allocations: 192.4 kB / 379.7 MB, free: 41.15 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.13e-05/0.3513, allocations: 14.23 kB / 379.7 MB, free: 41.14 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.536e-06/0.3513, allocations: 5.031 kB / 379.7 MB, free: 41.14 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.741e-05/0.3514, allocations: 316 kB / 380 MB, free: 40.82 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000107/0.3515, allocations: 25.39 kB / 380.1 MB, free: 40.81 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001194/0.3517, allocations: 42.84 kB / 380.1 MB, free: 40.77 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001223/0.3518, allocations: 31.8 kB / 380.1 MB, free: 40.76 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.3518, allocations: 4 kB / 380.1 MB, free: 40.75 MB / 298.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000458/0.3523, allocations: 135.5 kB / 380.3 MB, free: 40.66 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.244e-05/0.3523, allocations: 5.406 kB / 380.3 MB, free: 40.66 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.627e-06/0.3523, allocations: 1.312 kB / 380.3 MB, free: 40.66 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002777/0.3526, allocations: 46.25 kB / 380.3 MB, free: 40.63 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001029/0.3527, allocations: 15.88 kB / 380.3 MB, free: 40.62 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001788/0.3545, allocations: 1.517 MB / 381.9 MB, free: 39.12 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001571/0.3547, allocations: 20.69 kB / 381.9 MB, free: 39.11 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.424e-05/0.3548, allocations: 2.906 kB / 381.9 MB, free: 39.11 MB / 298.7 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 (5): * Single equations (assignments): 4 * 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: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.000158/0.3549, allocations: 126.1 kB / 382 MB, free: 38.98 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.507e-05/0.355, allocations: 12.72 kB / 382 MB, free: 38.97 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.414e-05/0.355, allocations: 11.16 kB / 382 MB, free: 38.96 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.355, allocations: 1.5 kB / 382 MB, free: 38.96 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.726e-06/0.3551, allocations: 0 / 382 MB, free: 38.96 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.102e-06/0.3551, allocations: 3.984 kB / 382 MB, free: 38.96 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002713/0.3553, allocations: 215.6 kB / 382.2 MB, free: 38.72 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.3554, allocations: 0 / 382.2 MB, free: 38.72 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.147e-05/0.3555, allocations: 4.062 kB / 382.3 MB, free: 38.72 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002167/0.3557, allocations: 34.36 kB / 382.3 MB, free: 38.7 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.405e-05/0.3557, allocations: 8 kB / 382.3 MB, free: 38.7 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001547/0.3573, allocations: 1.518 MB / 383.8 MB, free: 37.19 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.3573, allocations: 4.109 kB / 383.8 MB, free: 37.18 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004594/0.3578, allocations: 216 kB / 384 MB, free: 37 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.48e-05/0.3579, allocations: 91.39 kB / 384.1 MB, free: 36.89 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.149e-05/0.3579, allocations: 9.312 kB / 384.1 MB, free: 36.89 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001746/0.3581, allocations: 9.547 kB / 384.1 MB, free: 36.88 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.102e-05/0.3582, allocations: 3.438 kB / 384.1 MB, free: 36.88 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.154e-05/0.3582, allocations: 2.125 kB / 384.1 MB, free: 36.88 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.615e-05/0.3583, allocations: 112 kB / 384.2 MB, free: 36.79 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.3583, allocations: 0 / 384.2 MB, free: 36.79 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005809/0.3589, allocations: 36.31 kB / 384.3 MB, free: 36.79 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (2): * Single equations (assignments): 1 * 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: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.000688/0.3596, allocations: 0.7536 MB / 385 MB, free: 36.07 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000548/0.3602, allocations: 184.7 kB / 385.2 MB, free: 35.92 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.3602, allocations: 3.938 kB / 385.2 MB, free: 35.92 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002883/0.3605, allocations: 161.1 kB / 385.4 MB, free: 35.78 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002835/0.3608, allocations: 15.47 kB / 385.4 MB, free: 35.77 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001828/0.3626, allocations: 1.118 MB / 386.5 MB, free: 34.81 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001983/0.3629, allocations: 0.7163 MB / 387.2 MB, free: 34.09 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.03e-05/0.363, allocations: 34.77 kB / 387.3 MB, free: 34.06 MB / 298.7 MB Notification: Performance of SimCode: time 9.31e-07/0.363, allocations: 7.875 kB / 387.3 MB, free: 34.05 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.594/2.957, allocations: 2.449 MB / 389.7 MB, free: 32.81 MB / 298.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingResistor.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingResistor.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingResistor.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingResistor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingResistor_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_HeatingResistor_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_HeatingResistor.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingResistor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingResistor_res.mat does not exist to compare? outputFormat=mat