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.00105/0.00105, allocations: 197.5 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.228/1.228, allocations: 227.2 MB / 245 MB, free: 5.863 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008896/0.0008895, allocations: 108.3 kB / 297.3 MB, free: 5.957 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002187/0.0002189, allocations: 8 kB / 358 MB, free: 9.207 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1754/0.1756, allocations: 51.49 MB / 409.5 MB, free: 26.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09114/0.2668, allocations: 83.83 MB / 493.3 MB, free: 6.719 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002074/0.2671, allocations: 71.97 kB / 493.4 MB, free: 6.648 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03484/0.3019, allocations: 12.76 MB / 0.4943 GB, free: 9.836 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3019, allocations: 4 kB / 0.4943 GB, free: 9.832 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.911e-05/0.302, allocations: 12 kB / 0.4943 GB, free: 9.82 MB / 378.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.002297/0.3043, allocations: 1.166 MB / 0.4955 GB, free: 8.59 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.458e-05/0.3043, allocations: 12.03 kB / 0.4955 GB, free: 8.578 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001252/0.3045, allocations: 110.5 kB / 0.4956 GB, free: 8.461 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001409/0.3046, allocations: 90.88 kB / 0.4957 GB, free: 8.371 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008112/0.3054, allocations: 0.5114 MB / 0.4962 GB, free: 7.812 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.493e-05/0.3055, allocations: 45.31 kB / 0.4962 GB, free: 7.77 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.8e-05/0.3056, allocations: 64 kB / 0.4963 GB, free: 7.707 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001303/0.3069, allocations: 0.6702 MB / 0.4969 GB, free: 7.031 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.74e-05/0.3069, allocations: 4 kB / 0.4969 GB, free: 7.027 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.293e-05/0.307, allocations: 27.98 kB / 0.497 GB, free: 7 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.393e-05/0.307, allocations: 16 kB / 0.497 GB, free: 6.984 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001602/0.3086, allocations: 0.7468 MB / 0.4977 GB, free: 6.234 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003689/0.3123, allocations: 2.353 MB / 0.5 GB, free: 3.754 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001377/0.3137, allocations: 0.6296 MB / 0.5006 GB, free: 3.113 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.83e-05/0.3138, allocations: 20.38 kB / 0.5006 GB, free: 3.094 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009655/0.3147, allocations: 449.4 kB / 0.5011 GB, free: 2.629 MB / 378.7 MB Notification: Performance of pre-optimization done (n=54): time 2.304e-06/0.3148, allocations: 0 / 0.5011 GB, free: 2.629 MB / 378.7 MB Notification: Performance of matching and sorting (n=94): time 0.2108/0.5256, allocations: 16.53 MB / 0.5172 GB, free: 90.4 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.71e-05/0.5257, allocations: 144.3 kB / 0.5173 GB, free: 90.24 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000474/0.5262, allocations: 462.8 kB / 0.5178 GB, free: 90.12 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001528/0.5263, allocations: 46.67 kB / 0.5178 GB, free: 90.09 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001906/0.5265, allocations: 385.5 kB / 0.5182 GB, free: 89.92 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002479/0.5268, allocations: 315.5 kB / 0.5185 GB, free: 89.74 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.309e-05/0.5269, allocations: 18.22 kB / 0.5185 GB, free: 89.74 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.939e-05/0.5269, allocations: 389.1 kB / 0.5189 GB, free: 89.43 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001754/0.5287, allocations: 0.796 MB / 0.5197 GB, free: 88.99 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001779/0.5305, allocations: 1.027 MB / 0.5207 GB, free: 88.02 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001734/0.5322, allocations: 0.8778 MB / 0.5215 GB, free: 87.24 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.649e-06/0.5322, allocations: 0 / 0.5215 GB, free: 87.24 MB / 378.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02128/0.5535, allocations: 5.627 MB / 0.527 GB, free: 81.86 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.253e-05/0.5536, allocations: 63.39 kB / 0.5271 GB, free: 81.79 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.342e-05/0.5536, allocations: 8 kB / 0.5271 GB, free: 81.78 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03331/0.587, allocations: 7.328 MB / 0.5342 GB, free: 74.45 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006747/0.5877, allocations: 179.7 kB / 0.5344 GB, free: 74.27 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00476/0.5924, allocations: 3.064 MB / 0.5374 GB, free: 71.15 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001532/0.594, allocations: 231.8 kB / 0.5376 GB, free: 70.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.051e-05/0.5941, allocations: 47.97 kB / 0.5377 GB, free: 70.88 MB / 378.7 MB 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 () * Number of clocked 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.0003549/0.5944, allocations: 225.6 kB / 0.5379 GB, free: 70.65 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001176/0.5946, allocations: 83.06 kB / 0.538 GB, free: 70.57 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02159/0.6162, allocations: 5.469 MB / 0.5433 GB, free: 65.09 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.851e-05/0.6162, allocations: 17.48 kB / 0.5433 GB, free: 65.07 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.075e-05/0.6162, allocations: 8.859 kB / 0.5433 GB, free: 65.07 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.952e-05/0.6163, allocations: 3.984 kB / 0.5433 GB, free: 65.06 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001215/0.6175, allocations: 1.101 MB / 0.5444 GB, free: 63.94 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.6175, allocations: 0 / 0.5444 GB, free: 63.94 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005205/0.618, allocations: 127.9 kB / 0.5445 GB, free: 63.82 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03285/0.6509, allocations: 7.288 MB / 0.5516 GB, free: 56.52 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001552/0.6511, allocations: 26.11 kB / 0.5517 GB, free: 56.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005517/0.6566, allocations: 3.227 MB / 0.5548 GB, free: 53.22 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.6566, allocations: 4 kB / 0.5548 GB, free: 53.21 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02318/0.6798, allocations: 6.424 MB / 0.5611 GB, free: 46.77 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001823/0.68, allocations: 144.2 kB / 0.5612 GB, free: 46.61 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001349/0.6802, allocations: 27.95 kB / 0.5613 GB, free: 46.58 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001261/0.6814, allocations: 207.8 kB / 0.5615 GB, free: 46.38 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002085/0.6816, allocations: 100.8 kB / 0.5616 GB, free: 46.28 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.865e-05/0.6817, allocations: 33.28 kB / 0.5616 GB, free: 46.25 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003/0.682, allocations: 354.8 kB / 0.5619 GB, free: 45.9 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.682, allocations: 0 / 0.5619 GB, free: 45.9 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000658/0.6827, allocations: 264.6 kB / 0.5622 GB, free: 45.65 MB / 378.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) * Number of clocked states: 0 () * 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.02266/0.7054, allocations: 7.011 MB / 0.569 GB, free: 38.62 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004921/0.7103, allocations: 2.187 MB / 0.5712 GB, free: 36.41 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.7104, allocations: 448 / 0.5712 GB, free: 36.41 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003748/0.7141, allocations: 1.296 MB / 0.5724 GB, free: 35.12 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006203/0.7148, allocations: 109 kB / 0.5725 GB, free: 35.02 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03001/0.7448, allocations: 14.29 MB / 0.5865 GB, free: 20.54 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000284/0.7451, allocations: 0.9626 MB / 0.5874 GB, free: 19.54 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003004/0.7454, allocations: 61.64 kB / 0.5875 GB, free: 19.48 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002521/0.7457, allocations: 271.3 kB / 0.5877 GB, free: 19.22 MB / 378.7 MB Notification: Performance of SimCode: time 6.21e-07/0.7457, allocations: 0 / 0.5877 GB, free: 19.22 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03576/0.7814, allocations: 26.33 MB / 0.6135 GB, free: 9.191 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001997/0.7817, allocations: 220.9 kB / 0.6137 GB, free: 8.949 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.556/3.338, allocations: 3.938 kB / 0.6137 GB, free: 8.945 MB / 394.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