Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingNPN_OrGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingNPN_OrGate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001037/0.001037, allocations: 175.2 kB / 14.1 MB, free: 1.211 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.412/1.412, allocations: 205.2 MB / 219.8 MB, free: 14.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000773/0.0007729, allocations: 89.92 kB / 268 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.498e-05/2.507e-05, allocations: 4 kB / 322.5 MB, free: 17.27 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08259/0.08263, allocations: 47.56 MB / 370.1 MB, free: 1.637 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2979/0.3806, allocations: 81.06 MB / 451.2 MB, free: 11.94 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000344/0.3811, allocations: 74.91 kB / 451.2 MB, free: 11.9 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03422/0.4153, allocations: 12.14 MB / 463.4 MB, free: 1.434 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.522e-06/0.4153, allocations: 4 kB / 463.4 MB, free: 1.43 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.907e-05/0.4154, allocations: 20 kB / 463.4 MB, free: 1.41 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 152 * Number of variables: 152 Notification: Performance of Generate backend data structure: time 0.002119/0.4175, allocations: 1.039 MB / 464.4 MB, free: 316 kB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.218e-05/0.4176, allocations: 8.031 kB / 464.4 MB, free: 308 kB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001196/0.4177, allocations: 102.5 kB / 464.5 MB, free: 196 kB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001452/0.4178, allocations: 90.97 kB / 464.6 MB, free: 104 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007953/0.4186, allocations: 0.4898 MB / 465.1 MB, free: 15.57 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.63e-05/0.4187, allocations: 45.31 kB / 465.2 MB, free: 15.53 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001058/0.4188, allocations: 60 kB / 465.2 MB, free: 15.47 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009521/0.4198, allocations: 0.5493 MB / 465.8 MB, free: 14.91 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.966e-05/0.4198, allocations: 0 / 465.8 MB, free: 14.91 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.132e-05/0.4199, allocations: 24 kB / 465.8 MB, free: 14.89 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.499e-05/0.4199, allocations: 16 kB / 465.8 MB, free: 14.87 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008713/0.4208, allocations: 0.5284 MB / 466.3 MB, free: 14.34 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003582/0.4244, allocations: 2.302 MB / 468.6 MB, free: 11.91 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007946/0.4252, allocations: 468.3 kB / 469.1 MB, free: 11.45 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003627/0.4255, allocations: 259.5 kB / 469.4 MB, free: 11.2 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.023e-05/0.4256, allocations: 4.438 kB / 469.4 MB, free: 11.2 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005635/0.4262, allocations: 349.6 kB / 469.7 MB, free: 10.82 MB / 346.7 MB Notification: Performance of pre-optimization done (n=54): time 2.124e-06/0.4262, allocations: 0 / 469.7 MB, free: 10.82 MB / 346.7 MB Notification: Performance of matching and sorting (n=94): time 0.0582/0.4844, allocations: 13.49 MB / 483.2 MB, free: 13.26 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001428/0.4846, allocations: 141.3 kB / 483.3 MB, free: 13.09 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007135/0.4853, allocations: 428.7 kB / 483.7 MB, free: 12.67 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002393/0.4856, allocations: 45.7 kB / 483.8 MB, free: 12.62 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002877/0.4859, allocations: 368 kB / 484.1 MB, free: 12.25 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004285/0.4863, allocations: 311.5 kB / 484.5 MB, free: 11.95 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001033/0.4864, allocations: 16 kB / 484.5 MB, free: 11.93 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001968/0.4866, allocations: 382.8 kB / 484.8 MB, free: 11.55 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009599/0.4876, allocations: 474 kB / 485.3 MB, free: 11.09 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001031/0.4887, allocations: 0.6729 MB / 486 MB, free: 10.33 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009023/0.4896, allocations: 0.5431 MB / 486.5 MB, free: 9.777 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.4896, allocations: 8 kB / 486.5 MB, free: 9.77 MB / 362.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02/0.5096, allocations: 4.805 MB / 491.3 MB, free: 4.934 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.781e-05/0.5097, allocations: 67.53 kB / 491.4 MB, free: 4.855 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.947e-05/0.5098, allocations: 11.95 kB / 491.4 MB, free: 4.844 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0321/0.5419, allocations: 6.935 MB / 498.3 MB, free: 13.89 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007314/0.5426, allocations: 171.7 kB / 498.5 MB, free: 13.73 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005146/0.5478, allocations: 2.821 MB / 0.4896 GB, free: 10.85 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001699/0.5495, allocations: 239.6 kB / 0.4898 GB, free: 10.62 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001369/0.5497, allocations: 43.97 kB / 0.4899 GB, free: 10.57 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (50): * Single equations (assignments): 46 * 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.0002645/0.55, allocations: 156.9 kB / 0.49 GB, free: 10.41 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001661/0.5501, allocations: 75.41 kB / 0.4901 GB, free: 10.34 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01924/0.5694, allocations: 4.684 MB / 0.4947 GB, free: 5.625 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.898e-05/0.5694, allocations: 12 kB / 0.4947 GB, free: 5.613 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.975e-06/0.5694, allocations: 0 / 0.4947 GB, free: 5.613 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.477e-05/0.5695, allocations: 7.969 kB / 0.4947 GB, free: 5.605 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001693/0.5712, allocations: 1.106 MB / 0.4957 GB, free: 4.441 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.743e-06/0.5712, allocations: 0 / 0.4957 GB, free: 4.441 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005667/0.5718, allocations: 123.9 kB / 0.4959 GB, free: 4.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03112/0.6029, allocations: 6.907 MB / 0.5026 GB, free: 13.4 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002527/0.6032, allocations: 23.97 kB / 0.5026 GB, free: 13.38 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005159/0.6084, allocations: 2.853 MB / 0.5054 GB, free: 10.47 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.6084, allocations: 0 / 0.5054 GB, free: 10.47 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02059/0.629, allocations: 5.295 MB / 0.5106 GB, free: 5.152 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002333/0.6293, allocations: 144.2 kB / 0.5107 GB, free: 4.992 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002293/0.6295, allocations: 23.95 kB / 0.5108 GB, free: 4.969 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001471/0.631, allocations: 211.9 kB / 0.511 GB, free: 4.762 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002708/0.6313, allocations: 104.5 kB / 0.5111 GB, free: 4.66 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001043/0.6314, allocations: 36.22 kB / 0.5111 GB, free: 4.625 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004137/0.6318, allocations: 329.6 kB / 0.5114 GB, free: 4.305 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.6318, allocations: 3.938 kB / 0.5114 GB, free: 4.301 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000885/0.6327, allocations: 264 kB / 0.5117 GB, free: 4.043 MB / 394.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) * 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.02047/0.6532, allocations: 5.898 MB / 0.5174 GB, free: 14.09 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004475/0.6577, allocations: 1.66 MB / 0.519 GB, free: 12.41 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.079e-06/0.6577, allocations: 0 / 0.519 GB, free: 12.41 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003162/0.6609, allocations: 0.9707 MB / 0.52 GB, free: 11.44 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008624/0.6618, allocations: 115.5 kB / 0.5201 GB, free: 11.33 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003115/0.6649, allocations: 1.334 MB / 0.5214 GB, free: 9.953 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004279/0.6654, allocations: 0.9548 MB / 0.5223 GB, free: 8.973 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002966/0.6657, allocations: 58.06 kB / 0.5224 GB, free: 8.914 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003141/0.666, allocations: 263.3 kB / 0.5226 GB, free: 8.66 MB / 410.7 MB Notification: Performance of SimCode: time 5.71e-07/0.666, allocations: 0 / 0.5226 GB, free: 8.66 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2264/0.8924, allocations: 26.62 MB / 0.5486 GB, free: 128.5 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001442/0.8926, allocations: 186.9 kB / 0.5488 GB, free: 128.2 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.821/3.714, allocations: 0 / 0.5488 GB, free: 128.2 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingNPN_OrGate_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingNPN_OrGate.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate_res.mat does not exist to compare? outputFormat=mat