Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_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.HeatingNPN_NORGate,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingNPN_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.001024/0.001024, allocations: 197.4 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.345/1.345, allocations: 225.6 MB / 234.8 MB, free: 3.223 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008295/0.0008295, allocations: 95.81 kB / 286.7 MB, free: 5.316 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.918e-05/1.914e-05, allocations: 4 kB / 343.8 MB, free: 8.156 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09958/0.09961, allocations: 51.48 MB / 395.3 MB, free: 4.637 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3118/0.4114, allocations: 83.11 MB / 478.4 MB, free: 9.984 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001742/0.4116, allocations: 71.25 kB / 478.4 MB, free: 9.957 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03065/0.4423, allocations: 12.64 MB / 491.1 MB, free: 15.51 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.784e-06/0.4423, allocations: 0 / 491.1 MB, free: 15.51 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.092e-05/0.4423, allocations: 19.98 kB / 491.1 MB, free: 15.49 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.002068/0.4444, allocations: 1.088 MB / 492.2 MB, free: 14.39 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.84e-05/0.4445, allocations: 8.031 kB / 492.2 MB, free: 14.39 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001584/0.4446, allocations: 91.83 kB / 492.3 MB, free: 14.3 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008089/0.4454, allocations: 0.5038 MB / 492.8 MB, free: 13.83 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.024e-05/0.4455, allocations: 20 kB / 492.8 MB, free: 13.81 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.781e-05/0.4456, allocations: 36 kB / 492.8 MB, free: 13.78 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008426/0.4464, allocations: 0.5136 MB / 493.4 MB, free: 13.46 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008212/0.4473, allocations: 490 kB / 493.8 MB, free: 13.11 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.881e-05/0.4473, allocations: 7.125 kB / 493.8 MB, free: 13.11 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.271e-05/0.4474, allocations: 0 / 493.8 MB, free: 13.11 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.406e-05/0.4474, allocations: 16 kB / 493.9 MB, free: 13.09 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003657/0.451, allocations: 2.242 MB / 496.1 MB, free: 11.22 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006568/0.4517, allocations: 430.3 kB / 496.5 MB, free: 10.97 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003046/0.452, allocations: 245.5 kB / 496.8 MB, free: 10.82 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.245e-05/0.4521, allocations: 12.42 kB / 496.8 MB, free: 10.81 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005033/0.4526, allocations: 328 kB / 497.1 MB, free: 10.55 MB / 362.7 MB Notification: Performance of pre-optimization done (n=54): time 1.933e-06/0.4526, allocations: 0 / 497.1 MB, free: 10.55 MB / 362.7 MB Notification: Performance of matching and sorting (n=94): time 0.05963/0.5123, allocations: 13.81 MB / 0.4989 GB, free: 13.92 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.974e-05/0.5124, allocations: 144.6 kB / 0.4991 GB, free: 13.75 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005631/0.513, allocations: 417.3 kB / 0.4995 GB, free: 13.43 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001743/0.5132, allocations: 33.64 kB / 0.4995 GB, free: 13.39 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002608/0.5134, allocations: 394.9 kB / 0.4999 GB, free: 13.11 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000256/0.5137, allocations: 297.6 kB / 0.5002 GB, free: 12.85 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.703e-05/0.5138, allocations: 4 kB / 0.5002 GB, free: 12.84 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001486/0.5139, allocations: 391.5 kB / 0.5005 GB, free: 12.48 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000684/0.5146, allocations: 455.6 kB / 0.501 GB, free: 12.25 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008836/0.5155, allocations: 0.6696 MB / 0.5016 GB, free: 11.51 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001905/0.5174, allocations: 0.6933 MB / 0.5023 GB, free: 10.82 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.65e-06/0.5175, allocations: 4 kB / 0.5023 GB, free: 10.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02136/0.5388, allocations: 4.903 MB / 0.5071 GB, free: 5.895 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.073e-05/0.5389, allocations: 63.36 kB / 0.5072 GB, free: 5.82 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.72e-05/0.539, allocations: 10.81 kB / 0.5072 GB, free: 5.812 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02285/0.5618, allocations: 4.799 MB / 0.5119 GB, free: 1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007804/0.5627, allocations: 179.7 kB / 0.512 GB, free: 0.8242 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006701/0.5694, allocations: 3.227 MB / 0.5152 GB, free: 13.54 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00181/0.5712, allocations: 207.6 kB / 0.5154 GB, free: 13.34 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001214/0.5714, allocations: 48.03 kB / 0.5154 GB, free: 13.29 MB / 394.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.T2.vbc:DUMMY_DER(fixed = false ) "Base-collector voltage" type: Real $DER.T1.ibe:DUMMY_DER(fixed = false ) "Base-emitter diode current" type: Real $DER.T1.vbc:DUMMY_DER(fixed = false ) "Base-collector 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.0004058/0.5718, allocations: 137.9 kB / 0.5156 GB, free: 13.15 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02118/0.593, allocations: 4.663 MB / 0.5201 GB, free: 8.469 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003255/0.5933, allocations: 79.06 kB / 0.5202 GB, free: 8.391 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02114/0.6145, allocations: 4.797 MB / 0.5249 GB, free: 3.582 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.589e-05/0.6146, allocations: 12 kB / 0.5249 GB, free: 3.57 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.111e-05/0.6146, allocations: 0 / 0.5249 GB, free: 3.57 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.629e-05/0.6146, allocations: 7.969 kB / 0.5249 GB, free: 3.562 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001928/0.6166, allocations: 1.007 MB / 0.5259 GB, free: 2.523 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.043e-06/0.6166, allocations: 0 / 0.5259 GB, free: 2.523 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006223/0.6172, allocations: 123.9 kB / 0.526 GB, free: 2.402 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02326/0.6405, allocations: 4.801 MB / 0.5307 GB, free: 13.59 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002828/0.6409, allocations: 15.97 kB / 0.5307 GB, free: 13.57 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006773/0.6476, allocations: 3.24 MB / 0.5339 GB, free: 10.27 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.2e-06/0.6477, allocations: 1.688 kB / 0.5339 GB, free: 10.27 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0229/0.6706, allocations: 5.42 MB / 0.5391 GB, free: 4.82 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002917/0.6709, allocations: 152 kB / 0.5393 GB, free: 4.652 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003545/0.6713, allocations: 4 kB / 0.5393 GB, free: 4.648 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001686/0.673, allocations: 199.8 kB / 0.5395 GB, free: 4.453 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003154/0.6733, allocations: 96.62 kB / 0.5396 GB, free: 4.359 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001374/0.6735, allocations: 35.97 kB / 0.5396 GB, free: 4.324 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0004948/0.674, allocations: 310.9 kB / 0.5399 GB, free: 4.02 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.61e-07/0.674, allocations: 0 / 0.5399 GB, free: 4.02 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001015/0.675, allocations: 239.9 kB / 0.5401 GB, free: 3.785 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.02321/0.6982, allocations: 5.986 MB / 0.546 GB, free: 13.76 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004582/0.7029, allocations: 1.616 MB / 0.5476 GB, free: 12.13 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.37e-06/0.7029, allocations: 0 / 0.5476 GB, free: 12.13 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003263/0.7062, allocations: 0.9387 MB / 0.5485 GB, free: 11.18 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008142/0.707, allocations: 102.7 kB / 0.5486 GB, free: 11.09 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003593/0.7107, allocations: 1.287 MB / 0.5498 GB, free: 9.766 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005798/0.7113, allocations: 0.9663 MB / 0.5508 GB, free: 8.773 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0003244/0.7116, allocations: 54.23 kB / 0.5508 GB, free: 8.719 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003579/0.712, allocations: 271.3 kB / 0.5511 GB, free: 8.453 MB / 426.7 MB Notification: Performance of SimCode: time 1.062e-06/0.712, allocations: 0 / 0.5511 GB, free: 8.453 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2951/1.007, allocations: 25.25 MB / 0.5758 GB, free: 123.4 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001579/1.007, allocations: 150.5 kB / 0.5759 GB, free: 123.2 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.04/4.047, allocations: 0 / 0.5759 GB, free: 123.2 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.mat does not exist to compare? outputFormat=mat