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.0007693/0.0007693, allocations: 88.72 kB / 16.31 MB, free: 5.684 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.0009061/0.0009061, allocations: 181.5 kB / 17.21 MB, free: 5.602 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.466/1.466, allocations: 223.3 MB / 241.2 MB, free: 14.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003045/0.0003047, allocations: 8 kB / 300.9 MB, free: 6.113 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1099, allocations: 50.42 MB / 351.3 MB, free: 3.676 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.004588/0.1145, allocations: 4.267 MB / 355.6 MB, free: 15.39 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002112/0.1166, allocations: 1.229 MB / 356.8 MB, free: 14.15 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002613/0.1169, allocations: 11.94 kB / 356.8 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000228/0.1172, allocations: 87.3 kB / 356.9 MB, free: 14.05 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003754/0.1175, allocations: 210.1 kB / 357.1 MB, free: 13.85 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005442/0.1181, allocations: 231.6 kB / 357.4 MB, free: 13.62 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008862/0.119, allocations: 0.978 MB / 358.3 MB, free: 12.64 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003242/0.1193, allocations: 199.7 kB / 358.5 MB, free: 12.43 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003596/0.1197, allocations: 354.7 kB / 358.9 MB, free: 12.08 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004502/0.1202, allocations: 418.2 kB / 359.3 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.371e-05/0.1202, allocations: 44 kB / 359.3 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002375/0.1205, allocations: 67.98 kB / 359.4 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001304/0.1206, allocations: 151.3 kB / 359.5 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001619/0.1208, allocations: 177.3 kB / 359.7 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007189/0.1215, allocations: 0.7442 MB / 360.5 MB, free: 10.48 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/0.1215, allocations: 0 / 360.5 MB, free: 10.48 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.1215, allocations: 0 / 360.5 MB, free: 10.48 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.588e-06/0.1216, allocations: 0 / 360.5 MB, free: 10.48 MB / 302.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.002458/0.124, allocations: 1.165 MB / 361.6 MB, free: 9.25 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.57e-05/0.1241, allocations: 12.03 kB / 361.6 MB, free: 9.238 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001694/0.1243, allocations: 110.4 kB / 361.7 MB, free: 9.121 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001777/0.1245, allocations: 94.88 kB / 361.8 MB, free: 9.027 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006839/0.1252, allocations: 454.7 kB / 362.3 MB, free: 8.539 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.186e-05/0.1252, allocations: 45.31 kB / 362.3 MB, free: 8.496 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001125/0.1253, allocations: 67.94 kB / 362.4 MB, free: 8.43 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001501/0.1268, allocations: 0.6741 MB / 363.1 MB, free: 7.75 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.314e-05/0.1269, allocations: 0 / 363.1 MB, free: 7.75 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.284e-05/0.127, allocations: 27.95 kB / 363.1 MB, free: 7.723 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.6e-05/0.127, allocations: 16 kB / 363.1 MB, free: 7.707 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001768/0.1288, allocations: 0.7507 MB / 363.9 MB, free: 6.953 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.004354/0.1331, allocations: 2.441 MB / 366.3 MB, free: 4.363 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001517/0.1347, allocations: 0.6296 MB / 366.9 MB, free: 3.727 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007176/0.1354, allocations: 362 kB / 367.3 MB, free: 3.367 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.948e-05/0.1355, allocations: 8.438 kB / 367.3 MB, free: 3.359 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009856/0.1365, allocations: 453.4 kB / 367.7 MB, free: 2.891 MB / 302.1 MB Notification: Performance of pre-optimization done (n=54): time 1.964e-06/0.1365, allocations: 0 / 367.7 MB, free: 2.891 MB / 302.1 MB Notification: Performance of matching and sorting (n=94): time 0.3086/0.4451, allocations: 16.74 MB / 384.5 MB, free: 21.88 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.631e-05/0.4452, allocations: 144.5 kB / 384.6 MB, free: 21.71 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008959/0.4461, allocations: 0.5185 MB / 385.1 MB, free: 21.4 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002741/0.4464, allocations: 48.56 kB / 385.2 MB, free: 21.35 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003154/0.4467, allocations: 380.8 kB / 385.6 MB, free: 21.02 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000393/0.4471, allocations: 313.3 kB / 385.9 MB, free: 20.75 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001003/0.4473, allocations: 20.38 kB / 385.9 MB, free: 20.73 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001438/0.4474, allocations: 391.7 kB / 386.3 MB, free: 20.36 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002229/0.4496, allocations: 0.796 MB / 387.1 MB, free: 20 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001988/0.4516, allocations: 1.028 MB / 388.1 MB, free: 19.35 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001914/0.4536, allocations: 0.8826 MB / 389 MB, free: 18.9 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.922e-06/0.4536, allocations: 0 / 389 MB, free: 18.9 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02031/0.4739, allocations: 5.661 MB / 394.6 MB, free: 13.76 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.864e-05/0.474, allocations: 63.39 kB / 394.7 MB, free: 13.69 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.741e-05/0.4741, allocations: 8 kB / 394.7 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02988/0.504, allocations: 7.32 MB / 402 MB, free: 6.355 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006869/0.5047, allocations: 179.7 kB / 402.2 MB, free: 6.18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006139/0.5109, allocations: 3.205 MB / 405.4 MB, free: 2.922 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001782/0.5127, allocations: 225.9 kB / 405.6 MB, free: 2.703 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001839/0.5129, allocations: 47.97 kB / 405.7 MB, free: 2.656 MB / 302.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.0005206/0.5134, allocations: 221.6 kB / 405.9 MB, free: 2.43 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002194/0.5137, allocations: 83.06 kB / 406 MB, free: 2.348 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02112/0.5348, allocations: 5.468 MB / 411.4 MB, free: 12.87 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.574e-05/0.5349, allocations: 12 kB / 411.4 MB, free: 12.86 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.067e-05/0.5349, allocations: 0 / 411.4 MB, free: 12.86 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.563e-05/0.5349, allocations: 7.969 kB / 411.5 MB, free: 12.85 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002268/0.5372, allocations: 1.108 MB / 412.6 MB, free: 11.72 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.482e-05/0.5372, allocations: 0 / 412.6 MB, free: 11.72 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005685/0.5378, allocations: 119.9 kB / 412.7 MB, free: 11.6 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03349/0.5713, allocations: 7.295 MB / 420 MB, free: 4.301 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000297/0.5717, allocations: 19.98 kB / 420 MB, free: 4.281 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006176/0.5779, allocations: 3.077 MB / 423.1 MB, free: 1.148 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.021e-05/0.5779, allocations: 11.94 kB / 423.1 MB, free: 1.137 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02434/0.6023, allocations: 6.424 MB / 429.5 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004239/0.6028, allocations: 140.3 kB / 429.6 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004798/0.6033, allocations: 23.98 kB / 429.7 MB, free: 10.52 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00154/0.6048, allocations: 211.7 kB / 429.9 MB, free: 10.31 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003205/0.6052, allocations: 104.8 kB / 430 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001266/0.6053, allocations: 31.98 kB / 430 MB, free: 10.18 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005379/0.6059, allocations: 346.8 kB / 430.3 MB, free: 9.84 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6059, allocations: 2.344 kB / 430.3 MB, free: 9.84 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001179/0.6071, allocations: 264 kB / 430.6 MB, free: 9.582 MB / 334.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.02511/0.6322, allocations: 7 MB / 437.6 MB, free: 2.559 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.007226/0.6395, allocations: 2.335 MB / 439.9 MB, free: 208 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.961e-06/0.6395, allocations: 0 / 439.9 MB, free: 208 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003506/0.643, allocations: 1.15 MB / 441.1 MB, free: 15.06 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001136/0.6442, allocations: 125.2 kB / 441.2 MB, free: 14.94 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03474/0.6789, allocations: 10.38 MB / 451.6 MB, free: 4.387 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000655/0.6797, allocations: 0.951 MB / 452.5 MB, free: 3.406 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004273/0.6801, allocations: 54.28 kB / 452.6 MB, free: 3.352 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003994/0.6805, allocations: 267.3 kB / 452.9 MB, free: 3.094 MB / 350.1 MB Notification: Performance of SimCode: time 1.153e-06/0.6805, allocations: 0 / 452.9 MB, free: 3.094 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05357/0.7341, allocations: 26.36 MB / 479.2 MB, free: 9.023 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002494/0.7344, allocations: 221.2 kB / 479.4 MB, free: 8.785 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.024/3.758, allocations: 3.234 kB / 479.4 MB, free: 8.785 MB / 382.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