Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001091/0.001091, allocations: 94.14 kB / 16.3 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009883/0.0009883, allocations: 181 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.494/1.494, allocations: 223.2 MB / 241.1 MB, free: 5.465 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003034/0.0003035, allocations: 8.031 kB / 300.8 MB, free: 6.043 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1287/0.129, allocations: 50.42 MB / 351.2 MB, free: 11.66 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.005253/0.1343, allocations: 3.965 MB / 355.2 MB, free: 7.676 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002783/0.1371, allocations: 1.273 MB / 356.5 MB, free: 6.398 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004194/0.1376, allocations: 11.94 kB / 356.5 MB, free: 6.387 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001723/0.1378, allocations: 79.34 kB / 356.6 MB, free: 6.309 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006561/0.1384, allocations: 287.1 kB / 356.8 MB, free: 6.027 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007627/0.1392, allocations: 223.6 kB / 357.1 MB, free: 5.809 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009468/0.1402, allocations: 0.7033 MB / 357.8 MB, free: 5.102 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003379/0.1405, allocations: 199.5 kB / 358 MB, free: 4.891 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004543/0.141, allocations: 362.6 kB / 358.3 MB, free: 4.535 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005306/0.1415, allocations: 410.3 kB / 358.7 MB, free: 4.133 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.507e-05/0.1416, allocations: 48 kB / 358.8 MB, free: 4.086 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000175/0.1418, allocations: 67.98 kB / 358.8 MB, free: 4.02 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001467/0.142, allocations: 151.4 kB / 359 MB, free: 3.871 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001616/0.1421, allocations: 177.2 kB / 359.1 MB, free: 3.691 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006654/0.1428, allocations: 0.7323 MB / 359.9 MB, free: 2.957 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.1428, allocations: 0 / 359.9 MB, free: 2.957 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1428, allocations: 0 / 359.9 MB, free: 2.957 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.39e-05/0.1428, allocations: 0 / 359.9 MB, free: 2.957 MB / 286.1 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.002502/0.1454, allocations: 1.153 MB / 361 MB, free: 1.73 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.908e-05/0.1454, allocations: 8.031 kB / 361 MB, free: 1.723 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001614/0.1456, allocations: 114.5 kB / 361.1 MB, free: 1.602 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001797/0.1458, allocations: 94.83 kB / 361.2 MB, free: 1.508 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006818/0.1465, allocations: 458.7 kB / 361.7 MB, free: 1.016 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.886e-05/0.1465, allocations: 49.25 kB / 361.7 MB, free: 0.9688 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001127/0.1466, allocations: 67.98 kB / 361.8 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001529/0.1482, allocations: 0.6701 MB / 362.5 MB, free: 232 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.393e-05/0.1482, allocations: 0 / 362.5 MB, free: 232 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.672e-05/0.1483, allocations: 28 kB / 362.5 MB, free: 204 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.195e-05/0.1483, allocations: 19.95 kB / 362.5 MB, free: 184 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001808/0.1501, allocations: 0.7508 MB / 363.3 MB, free: 15.43 MB / 302.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0042/0.1544, allocations: 2.437 MB / 365.7 MB, free: 12.84 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001504/0.1559, allocations: 0.6433 MB / 366.3 MB, free: 12.19 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.592e-05/0.1559, allocations: 4.438 kB / 366.4 MB, free: 12.19 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001018/0.157, allocations: 449.4 kB / 366.8 MB, free: 11.72 MB / 302.1 MB Notification: Performance of pre-optimization done (n=54): time 2.715e-06/0.157, allocations: 8 kB / 366.8 MB, free: 11.71 MB / 302.1 MB Notification: Performance of matching and sorting (n=94): time 0.07251/0.2295, allocations: 16.7 MB / 383.5 MB, free: 10.92 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001089/0.2296, allocations: 145.5 kB / 383.6 MB, free: 10.75 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007585/0.2304, allocations: 0.5224 MB / 384.2 MB, free: 10.21 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000211/0.2306, allocations: 41.7 kB / 384.2 MB, free: 10.17 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003227/0.231, allocations: 391.8 kB / 384.6 MB, free: 9.777 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002962/0.2313, allocations: 315.4 kB / 384.9 MB, free: 9.465 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.821e-05/0.2314, allocations: 20 kB / 384.9 MB, free: 9.445 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000193/0.2316, allocations: 386.8 kB / 385.3 MB, free: 9.059 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002094/0.2337, allocations: 0.7908 MB / 386.1 MB, free: 8.27 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002245/0.2359, allocations: 1.033 MB / 387.1 MB, free: 7.148 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002126/0.2381, allocations: 0.8769 MB / 388 MB, free: 6.262 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.089e-06/0.2381, allocations: 0 / 388 MB, free: 6.262 MB / 318.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02337/0.2615, allocations: 5.648 MB / 393.6 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.479e-05/0.2616, allocations: 67.41 kB / 393.7 MB, free: 0.5 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.71e-05/0.2616, allocations: 4 kB / 393.7 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0353/0.2969, allocations: 7.329 MB / 401 MB, free: 9.152 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007629/0.2977, allocations: 179.7 kB / 401.2 MB, free: 8.977 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006924/0.3047, allocations: 3.207 MB / 404.4 MB, free: 5.715 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001732/0.3064, allocations: 223.8 kB / 404.6 MB, free: 5.496 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001154/0.3066, allocations: 48.22 kB / 404.7 MB, free: 5.449 MB / 334.1 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.0004584/0.307, allocations: 233.6 kB / 404.9 MB, free: 5.211 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001591/0.3072, allocations: 82.97 kB / 405 MB, free: 5.129 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02308/0.3303, allocations: 5.459 MB / 410.5 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-05/0.3303, allocations: 8 kB / 410.5 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.498e-06/0.3304, allocations: 0 / 410.5 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.388e-05/0.3304, allocations: 7.984 kB / 410.5 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001614/0.332, allocations: 1.116 MB / 411.6 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.4e-06/0.332, allocations: 0 / 411.6 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005763/0.3326, allocations: 127.8 kB / 411.7 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03496/0.3676, allocations: 7.289 MB / 419 MB, free: 7.039 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003134/0.368, allocations: 27.97 kB / 419 MB, free: 7.012 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00605/0.374, allocations: 3.064 MB / 422.1 MB, free: 3.891 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.215e-06/0.3741, allocations: 7.953 kB / 422.1 MB, free: 3.883 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2442/0.6183, allocations: 6.415 MB / 428.5 MB, free: 67.99 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002345/0.6186, allocations: 143.3 kB / 428.7 MB, free: 67.89 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001758/0.6188, allocations: 18.66 kB / 428.7 MB, free: 67.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001405/0.6202, allocations: 220.2 kB / 428.9 MB, free: 67.89 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000268/0.6205, allocations: 100.6 kB / 429 MB, free: 67.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.129e-05/0.6206, allocations: 35.02 kB / 429 MB, free: 67.89 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005292/0.6211, allocations: 345.1 kB / 429.4 MB, free: 67.8 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.6211, allocations: 3.562 kB / 429.4 MB, free: 67.8 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008921/0.622, allocations: 259.9 kB / 429.6 MB, free: 67.8 MB / 350.1 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.02521/0.6472, allocations: 7.003 MB / 436.6 MB, free: 67.17 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.006386/0.6537, allocations: 2.333 MB / 439 MB, free: 66.97 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.5e-06/0.6537, allocations: 0 / 439 MB, free: 66.97 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003359/0.6571, allocations: 1.15 MB / 440.1 MB, free: 66.92 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006457/0.6577, allocations: 113.3 kB / 440.2 MB, free: 66.91 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02938/0.6871, allocations: 14.29 MB / 454.5 MB, free: 55.73 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003505/0.6875, allocations: 0.9665 MB / 455.5 MB, free: 54.74 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003694/0.6879, allocations: 57 kB / 455.5 MB, free: 54.68 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002806/0.6882, allocations: 267.3 kB / 455.8 MB, free: 54.42 MB / 350.1 MB Notification: Performance of SimCode: time 1.903e-06/0.6882, allocations: 0 / 455.8 MB, free: 54.42 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03885/0.727, allocations: 26.32 MB / 482.1 MB, free: 28.39 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002079/0.7273, allocations: 223.7 kB / 482.3 MB, free: 28.15 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.861/3.589, allocations: 0 / 482.3 MB, free: 28.15 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat does not exist to compare? outputFormat=mat