Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001409/0.001409, allocations: 198.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.373/1.373, allocations: 225.6 MB / 234.8 MB, free: 3.293 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009084/0.0009085, allocations: 98.66 kB / 286.7 MB, free: 5.254 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.814e-05/2.814e-05, allocations: 4 kB / 343.8 MB, free: 8.227 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09893/0.09898, allocations: 51.48 MB / 395.3 MB, free: 4.703 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3232/0.4223, allocations: 83.1 MB / 478.4 MB, free: 9.66 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002407/0.4225, allocations: 69.03 kB / 478.4 MB, free: 9.637 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03369/0.4563, allocations: 12.62 MB / 491.1 MB, free: 15.24 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.4563, allocations: 4 kB / 491.1 MB, free: 15.24 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.169e-05/0.4564, allocations: 16 kB / 491.1 MB, free: 15.22 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 158 * Number of variables: 158 Notification: Performance of Generate backend data structure: time 0.002815/0.4592, allocations: 1.077 MB / 492.2 MB, free: 14.14 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.99e-05/0.4592, allocations: 8.031 kB / 492.2 MB, free: 14.13 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000351/0.4596, allocations: 91.83 kB / 492.3 MB, free: 14.04 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001078/0.4607, allocations: 0.5058 MB / 492.8 MB, free: 13.57 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.343e-05/0.4608, allocations: 20 kB / 492.8 MB, free: 13.55 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001485/0.4609, allocations: 42.44 kB / 492.8 MB, free: 13.51 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000977/0.4619, allocations: 0.5107 MB / 493.3 MB, free: 13.2 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009319/0.4628, allocations: 492.5 kB / 493.8 MB, free: 12.85 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.27e-05/0.4629, allocations: 0 / 493.8 MB, free: 12.85 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.757e-05/0.4629, allocations: 3.938 kB / 493.8 MB, free: 12.85 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.673e-05/0.463, allocations: 16 kB / 493.8 MB, free: 12.83 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00416/0.4671, allocations: 2.232 MB / 496.1 MB, free: 10.96 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006844/0.4679, allocations: 444.5 kB / 496.5 MB, free: 10.7 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003345/0.4682, allocations: 238.3 kB / 496.7 MB, free: 10.55 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.942e-05/0.4683, allocations: 8.422 kB / 496.7 MB, free: 10.55 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005994/0.4689, allocations: 341.2 kB / 497.1 MB, free: 10.28 MB / 362.7 MB Notification: Performance of pre-optimization done (n=54): time 3.206e-06/0.4689, allocations: 0 / 497.1 MB, free: 10.28 MB / 362.7 MB Notification: Performance of matching and sorting (n=94): time 0.06045/0.5294, allocations: 13.79 MB / 0.4989 GB, free: 13.67 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001095/0.5295, allocations: 141.3 kB / 0.499 GB, free: 13.5 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005964/0.5301, allocations: 417.5 kB / 0.4994 GB, free: 13.18 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002041/0.5303, allocations: 29.64 kB / 0.4995 GB, free: 13.14 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002821/0.5306, allocations: 398.5 kB / 0.4998 GB, free: 12.86 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003059/0.531, allocations: 305.9 kB / 0.5001 GB, free: 12.59 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.294e-05/0.531, allocations: 0 / 0.5001 GB, free: 12.59 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001382/0.5312, allocations: 381.4 kB / 0.5005 GB, free: 12.24 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006682/0.5319, allocations: 455.8 kB / 0.5009 GB, free: 12 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007796/0.5327, allocations: 0.6772 MB / 0.5016 GB, free: 11.46 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001849/0.5345, allocations: 0.6935 MB / 0.5023 GB, free: 10.85 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.643e-06/0.5345, allocations: 0 / 0.5023 GB, free: 10.85 MB / 378.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02136/0.5559, allocations: 4.895 MB / 0.507 GB, free: 5.93 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.832e-05/0.556, allocations: 73.11 kB / 0.5071 GB, free: 5.848 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.786e-05/0.5561, allocations: 7.984 kB / 0.5071 GB, free: 5.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0226/0.5787, allocations: 4.799 MB / 0.5118 GB, free: 1.031 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007612/0.5795, allocations: 183.7 kB / 0.512 GB, free: 0.8516 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005471/0.585, allocations: 3.067 MB / 0.515 GB, free: 13.73 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001801/0.5868, allocations: 207.8 kB / 0.5152 GB, free: 13.53 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001254/0.5869, allocations: 48.03 kB / 0.5152 GB, free: 13.48 MB / 394.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: T1.vcb:DUMMY_STATE(unit = "V" ) "Collector-base voltage" type: Real T2.vcb:DUMMY_STATE(unit = "V" ) "Collector-base voltage" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.T2.vcb:DUMMY_DER(fixed = false ) "Collector-base voltage" type: Real $DER.T1.veb:DUMMY_DER(fixed = false ) "Emitter-base voltage" type: Real $DER.T1.vcb:DUMMY_DER(fixed = false ) "Collector-base voltage" type: Real $DER.T2.T_heatPort:DUMMY_DER(fixed = false ) "Temperature of heatPort" type: Real $DER.T1.T_heatPort:DUMMY_DER(fixed = false ) "Temperature of heatPort" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,$PRE.V1.signalSource.T_start,V1.signalSource.T_start,$PRE.V1.signalSource.count,V1.signalSource.count,$PRE.V2.signalSource.T_start,V2.signalSource.T_start,$PRE.V2.signalSource.count,V2.signalSource.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {5 32,5 32} Notification: Performance of prepare postOptimizeDAE: time 0.0003682/0.5873, allocations: 139.7 kB / 0.5154 GB, free: 13.34 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02066/0.608, allocations: 4.655 MB / 0.5199 GB, free: 8.664 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004337/0.6085, allocations: 83.06 kB / 0.52 GB, free: 8.582 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02108/0.6295, allocations: 4.795 MB / 0.5247 GB, free: 3.77 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.556e-05/0.6296, allocations: 8 kB / 0.5247 GB, free: 3.762 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.022e-05/0.6296, allocations: 0 / 0.5247 GB, free: 3.762 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.974e-05/0.6297, allocations: 3.984 kB / 0.5247 GB, free: 3.758 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00165/0.6313, allocations: 1.015 MB / 0.5257 GB, free: 2.711 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.049e-06/0.6313, allocations: 0 / 0.5257 GB, free: 2.711 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000592/0.6319, allocations: 127.9 kB / 0.5258 GB, free: 2.586 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02295/0.6549, allocations: 4.8 MB / 0.5305 GB, free: 13.77 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000222/0.6552, allocations: 11.97 kB / 0.5305 GB, free: 13.76 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005385/0.6606, allocations: 3.077 MB / 0.5335 GB, free: 10.63 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.901e-06/0.6606, allocations: 3.938 kB / 0.5335 GB, free: 10.62 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02213/0.6827, allocations: 5.417 MB / 0.5388 GB, free: 5.176 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003552/0.6832, allocations: 145.9 kB / 0.5389 GB, free: 5.016 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001852/0.6834, allocations: 7.984 kB / 0.5389 GB, free: 5.008 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001417/0.6848, allocations: 199.8 kB / 0.5391 GB, free: 4.812 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002518/0.685, allocations: 96.62 kB / 0.5392 GB, free: 4.719 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.511e-05/0.6851, allocations: 38.34 kB / 0.5392 GB, free: 4.684 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0004199/0.6856, allocations: 315 kB / 0.5395 GB, free: 4.375 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.6856, allocations: 0 / 0.5395 GB, free: 4.375 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0009398/0.6865, allocations: 235.9 kB / 0.5398 GB, free: 4.145 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (HeatCapacitor1.T) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,V1.signalSource.T_start,V1.signalSource.count,V2.signalSource.T_start,V2.signalSource.count) * Number of discrete states: 2 (V2.signalSource.count,V1.signalSource.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {5 32,5 36} Notification: Performance of Backend phase and start with SimCode phase: time 0.02235/0.7089, allocations: 5.989 MB / 0.5456 GB, free: 14.11 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003427/0.7124, allocations: 1.46 MB / 0.547 GB, free: 12.64 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.7124, allocations: 8.125 kB / 0.5471 GB, free: 12.63 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002235/0.7146, allocations: 0.7901 MB / 0.5478 GB, free: 11.83 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006422/0.7153, allocations: 89.94 kB / 0.5479 GB, free: 11.75 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002818/0.7181, allocations: 1.299 MB / 0.5492 GB, free: 10.41 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004922/0.7186, allocations: 0.9702 MB / 0.5501 GB, free: 9.414 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0002952/0.7189, allocations: 54.23 kB / 0.5502 GB, free: 9.359 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000332/0.7193, allocations: 271.3 kB / 0.5504 GB, free: 9.094 MB / 426.7 MB Notification: Performance of SimCode: time 6.82e-07/0.7193, allocations: 0 / 0.5504 GB, free: 9.094 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2608/0.9801, allocations: 25.82 MB / 0.5757 GB, free: 123.2 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000146/0.9803, allocations: 149 kB / 0.5758 GB, free: 123 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.755/3.735, allocations: 2 kB / 0.5758 GB, free: 123 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat does not exist to compare? outputFormat=mat