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.001197/0.001197, 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.254/1.254, allocations: 227.2 MB / 245 MB, free: 5.875 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008637/0.0008635, allocations: 112.3 kB / 297.3 MB, free: 5.98 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002125/0.0002125, allocations: 8 kB / 358 MB, free: 9.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1796/0.1798, allocations: 51.48 MB / 409.5 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09054/0.2704, allocations: 83.85 MB / 493.3 MB, free: 6.742 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001997/0.2706, allocations: 67.97 kB / 493.4 MB, free: 6.676 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03542/0.3061, allocations: 12.79 MB / 0.4943 GB, free: 9.832 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.3061, allocations: 0 / 0.4943 GB, free: 9.832 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.495e-05/0.3062, allocations: 16 kB / 0.4944 GB, free: 9.816 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.002681/0.3088, allocations: 1.166 MB / 0.4955 GB, free: 8.586 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.772e-05/0.3089, allocations: 8.031 kB / 0.4955 GB, free: 8.578 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002303/0.3091, allocations: 106.5 kB / 0.4956 GB, free: 8.465 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002476/0.3094, allocations: 94.88 kB / 0.4957 GB, free: 8.371 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009892/0.3104, allocations: 0.5152 MB / 0.4962 GB, free: 7.809 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.344e-05/0.3104, allocations: 45.31 kB / 0.4962 GB, free: 7.766 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001266/0.3106, allocations: 68 kB / 0.4963 GB, free: 7.699 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00139/0.312, allocations: 0.6701 MB / 0.497 GB, free: 7.023 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.968e-05/0.312, allocations: 0 / 0.497 GB, free: 7.023 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.468e-05/0.3121, allocations: 28 kB / 0.497 GB, free: 6.996 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.338e-05/0.3121, allocations: 16 kB / 0.497 GB, free: 6.98 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001761/0.3139, allocations: 0.7546 MB / 0.4977 GB, free: 6.223 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004018/0.3179, allocations: 2.345 MB / 0.5 GB, free: 3.75 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001415/0.3193, allocations: 0.6374 MB / 0.5006 GB, free: 3.102 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.614e-05/0.3194, allocations: 12.39 kB / 0.5007 GB, free: 3.09 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009189/0.3203, allocations: 457.2 kB / 0.5011 GB, free: 2.621 MB / 378.7 MB Notification: Performance of pre-optimization done (n=54): time 2.104e-06/0.3203, allocations: 0 / 0.5011 GB, free: 2.621 MB / 378.7 MB Notification: Performance of matching and sorting (n=94): time 0.2158/0.5362, allocations: 16.54 MB / 0.5173 GB, free: 90.44 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.265e-05/0.5362, allocations: 141.9 kB / 0.5174 GB, free: 90.28 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004526/0.5367, allocations: 457.7 kB / 0.5178 GB, free: 90.16 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001383/0.5369, allocations: 51.2 kB / 0.5179 GB, free: 90.13 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001716/0.537, allocations: 389.1 kB / 0.5182 GB, free: 89.96 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001826/0.5372, allocations: 310.7 kB / 0.5185 GB, free: 89.79 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.785e-05/0.5373, allocations: 20.31 kB / 0.5186 GB, free: 89.79 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.59e-05/0.5374, allocations: 384.5 kB / 0.5189 GB, free: 89.47 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001764/0.5391, allocations: 0.8001 MB / 0.5197 GB, free: 89.04 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001787/0.5409, allocations: 1.016 MB / 0.5207 GB, free: 88.07 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001763/0.5427, allocations: 0.8818 MB / 0.5216 GB, free: 87.29 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.5427, allocations: 4 kB / 0.5216 GB, free: 87.29 MB / 378.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02208/0.5648, allocations: 5.63 MB / 0.5271 GB, free: 81.85 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.927e-05/0.5649, allocations: 67.41 kB / 0.5271 GB, free: 81.77 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.269e-05/0.5649, allocations: 7.953 kB / 0.5271 GB, free: 81.77 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03379/0.5987, allocations: 7.324 MB / 0.5343 GB, free: 74.44 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006723/0.5994, allocations: 187.7 kB / 0.5345 GB, free: 74.25 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004788/0.6042, allocations: 3.076 MB / 0.5375 GB, free: 71.12 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001628/0.6059, allocations: 231.6 kB / 0.5377 GB, free: 70.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001011/0.606, allocations: 47.97 kB / 0.5377 GB, free: 70.85 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.0003783/0.6064, allocations: 228.1 kB / 0.538 GB, free: 70.62 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001252/0.6065, allocations: 79.06 kB / 0.538 GB, free: 70.54 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02283/0.6293, allocations: 5.473 MB / 0.5434 GB, free: 65.06 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.308e-05/0.6294, allocations: 8 kB / 0.5434 GB, free: 65.05 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.6294, allocations: 0 / 0.5434 GB, free: 65.05 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.854e-05/0.6294, allocations: 3.984 kB / 0.5434 GB, free: 65.05 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001178/0.6306, allocations: 1.107 MB / 0.5445 GB, free: 63.92 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.6306, allocations: 0 / 0.5445 GB, free: 63.92 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00052/0.6311, allocations: 130 kB / 0.5446 GB, free: 63.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03491/0.6661, allocations: 7.29 MB / 0.5517 GB, free: 56.5 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002181/0.6663, allocations: 27.97 kB / 0.5517 GB, free: 56.48 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005551/0.6719, allocations: 3.223 MB / 0.5549 GB, free: 53.2 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.6719, allocations: 0 / 0.5549 GB, free: 53.2 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02347/0.6954, allocations: 6.427 MB / 0.5612 GB, free: 46.75 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002081/0.6956, allocations: 144.2 kB / 0.5613 GB, free: 46.59 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001421/0.6958, allocations: 23.95 kB / 0.5613 GB, free: 46.56 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001314/0.6971, allocations: 211.8 kB / 0.5615 GB, free: 46.36 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002053/0.6973, allocations: 100.8 kB / 0.5616 GB, free: 46.26 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.852e-05/0.6974, allocations: 37.3 kB / 0.5617 GB, free: 46.22 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003161/0.6977, allocations: 346.8 kB / 0.562 GB, free: 45.89 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6977, allocations: 0 / 0.562 GB, free: 45.89 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006674/0.6984, allocations: 272.5 kB / 0.5622 GB, free: 45.62 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.02454/0.7229, allocations: 7.012 MB / 0.5691 GB, free: 38.59 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005023/0.728, allocations: 2.191 MB / 0.5712 GB, free: 36.38 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.728, allocations: 0 / 0.5712 GB, free: 36.38 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003999/0.732, allocations: 1.296 MB / 0.5725 GB, free: 35.09 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005762/0.7326, allocations: 121 kB / 0.5726 GB, free: 34.97 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02937/0.762, allocations: 14.26 MB / 0.5865 GB, free: 20.52 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002688/0.7623, allocations: 0.9665 MB / 0.5875 GB, free: 19.52 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000288/0.7626, allocations: 57.66 kB / 0.5875 GB, free: 19.47 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002506/0.7629, allocations: 271.3 kB / 0.5878 GB, free: 19.2 MB / 378.7 MB Notification: Performance of SimCode: time 5.82e-07/0.7629, allocations: 0 / 0.5878 GB, free: 19.2 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03501/0.7979, allocations: 26.38 MB / 0.6136 GB, free: 9.117 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002165/0.7981, allocations: 225.1 kB / 0.6138 GB, free: 8.871 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.684/3.482, allocations: 0 / 0.6138 GB, free: 8.871 MB / 394.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