Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001554/0.001554, allocations: 179.3 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.418/1.418, allocations: 223.2 MB / 240.3 MB, free: 11.9 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009493/0.0009494, allocations: 93.48 kB / 291.5 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002475/0.0002475, allocations: 4 kB / 351.2 MB, free: 15.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2598/0.2601, allocations: 50.4 MB / 401.6 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1047/0.3648, allocations: 83.05 MB / 484.6 MB, free: 13.42 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002837/0.3652, allocations: 67.97 kB / 484.7 MB, free: 13.36 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03821/0.4034, allocations: 12.77 MB / 497.5 MB, free: 0.5352 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.874e-06/0.4035, allocations: 0 / 497.5 MB, free: 0.5352 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.579e-05/0.4035, allocations: 16 kB / 497.5 MB, free: 0.5195 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.00243/0.4059, allocations: 1.163 MB / 498.6 MB, free: 15.29 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.851e-05/0.406, allocations: 11.97 kB / 498.7 MB, free: 15.28 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001368/0.4061, allocations: 110.5 kB / 498.8 MB, free: 15.16 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001527/0.4063, allocations: 94.88 kB / 498.9 MB, free: 15.07 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008569/0.4072, allocations: 0.5037 MB / 499.4 MB, free: 14.52 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.986e-05/0.4072, allocations: 49.31 kB / 499.4 MB, free: 14.48 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.812e-05/0.4073, allocations: 67.86 kB / 499.5 MB, free: 14.41 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001314/0.4086, allocations: 0.6741 MB / 0.4884 GB, free: 13.73 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.871e-05/0.4087, allocations: 0 / 0.4884 GB, free: 13.73 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.758e-05/0.4087, allocations: 28 kB / 0.4884 GB, free: 13.7 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.385e-05/0.4088, allocations: 12 kB / 0.4885 GB, free: 13.69 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001592/0.4104, allocations: 0.7547 MB / 0.4892 GB, free: 12.93 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003773/0.4141, allocations: 2.337 MB / 0.4915 GB, free: 10.47 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00142/0.4156, allocations: 0.6413 MB / 0.4921 GB, free: 9.82 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.897e-05/0.4156, allocations: 12.42 kB / 0.4921 GB, free: 9.809 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009727/0.4166, allocations: 449.5 kB / 0.4925 GB, free: 9.344 MB / 378.7 MB Notification: Performance of pre-optimization done (n=54): time 2.475e-06/0.4166, allocations: 0 / 0.4925 GB, free: 9.344 MB / 378.7 MB Notification: Performance of matching and sorting (n=94): time 0.3219/0.7385, allocations: 16.53 MB / 0.5087 GB, free: 95.67 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.828e-05/0.7387, allocations: 144.6 kB / 0.5088 GB, free: 95.51 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006054/0.7393, allocations: 467.7 kB / 0.5093 GB, free: 95.39 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001771/0.7395, allocations: 40.8 kB / 0.5093 GB, free: 95.36 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002496/0.7397, allocations: 390.3 kB / 0.5097 GB, free: 95.2 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002426/0.74, allocations: 316 kB / 0.51 GB, free: 95.02 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.08e-05/0.74, allocations: 19.09 kB / 0.51 GB, free: 95.02 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001099/0.7402, allocations: 389.9 kB / 0.5104 GB, free: 94.71 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001811/0.742, allocations: 0.7905 MB / 0.5111 GB, free: 94.69 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001842/0.7438, allocations: 1.025 MB / 0.5122 GB, free: 94.43 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001797/0.7456, allocations: 0.8752 MB / 0.513 GB, free: 94.3 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.883e-06/0.7457, allocations: 3.969 kB / 0.513 GB, free: 94.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02255/0.7682, allocations: 5.636 MB / 0.5185 GB, free: 92.69 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001007/0.7684, allocations: 62.22 kB / 0.5186 GB, free: 92.62 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.013e-05/0.7684, allocations: 8 kB / 0.5186 GB, free: 92.61 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03325/0.8017, allocations: 7.333 MB / 0.5257 GB, free: 85.82 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007276/0.8024, allocations: 179.7 kB / 0.5259 GB, free: 85.65 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005002/0.8075, allocations: 3.085 MB / 0.5289 GB, free: 82.51 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001759/0.8092, allocations: 227.8 kB / 0.5291 GB, free: 82.29 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.95e-05/0.8093, allocations: 47.97 kB / 0.5292 GB, free: 82.24 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.0004637/0.8098, allocations: 221.7 kB / 0.5294 GB, free: 82.02 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001349/0.81, allocations: 79.06 kB / 0.5295 GB, free: 81.94 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02246/0.8324, allocations: 5.462 MB / 0.5348 GB, free: 76.47 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-05/0.8325, allocations: 11.94 kB / 0.5348 GB, free: 76.46 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.393e-05/0.8325, allocations: 8 kB / 0.5348 GB, free: 76.45 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.451e-05/0.8326, allocations: 3.984 kB / 0.5348 GB, free: 76.45 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001802/0.8344, allocations: 1.113 MB / 0.5359 GB, free: 75.31 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.173e-06/0.8344, allocations: 1.062 kB / 0.5359 GB, free: 75.31 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005456/0.835, allocations: 123.9 kB / 0.536 GB, free: 75.19 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03375/0.8687, allocations: 7.294 MB / 0.5432 GB, free: 67.89 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002676/0.869, allocations: 19.98 kB / 0.5432 GB, free: 67.87 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00578/0.8748, allocations: 3.233 MB / 0.5463 GB, free: 64.58 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.137e-06/0.8749, allocations: 5.469 kB / 0.5463 GB, free: 64.58 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02397/0.8988, allocations: 6.419 MB / 0.5526 GB, free: 58.15 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00042/0.8993, allocations: 148.1 kB / 0.5528 GB, free: 57.98 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00016/0.8995, allocations: 24.06 kB / 0.5528 GB, free: 57.96 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001417/0.9009, allocations: 211.8 kB / 0.553 GB, free: 57.75 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002592/0.9012, allocations: 96.84 kB / 0.5531 GB, free: 57.66 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.169e-05/0.9013, allocations: 35.97 kB / 0.5531 GB, free: 57.62 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004389/0.9017, allocations: 353.2 kB / 0.5534 GB, free: 57.28 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.9017, allocations: 0 / 0.5534 GB, free: 57.28 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008384/0.9026, allocations: 263.1 kB / 0.5537 GB, free: 57.03 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.02578/0.9284, allocations: 7.013 MB / 0.5605 GB, free: 49.99 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005324/0.9338, allocations: 2.196 MB / 0.5627 GB, free: 47.77 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.312e-06/0.9338, allocations: 384 / 0.5627 GB, free: 47.77 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003884/0.9377, allocations: 1.293 MB / 0.5639 GB, free: 46.48 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008049/0.9385, allocations: 117.5 kB / 0.5641 GB, free: 46.37 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03249/0.971, allocations: 14.27 MB / 0.578 GB, free: 31.91 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003539/0.9714, allocations: 0.9626 MB / 0.5789 GB, free: 30.92 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003768/0.9718, allocations: 62.22 kB / 0.579 GB, free: 30.86 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002906/0.9721, allocations: 275.3 kB / 0.5793 GB, free: 30.59 MB / 378.7 MB Notification: Performance of SimCode: time 1.412e-06/0.9721, allocations: 0 / 0.5793 GB, free: 30.59 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2724/1.245, allocations: 26.42 MB / 0.6051 GB, free: 4.516 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001855/1.245, allocations: 206.1 kB / 0.6053 GB, free: 4.281 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.053/4.298, allocations: 3.562 kB / 0.6053 GB, free: 4.281 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.mat does not exist to compare? outputFormat=mat