Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.0009457/0.000946, allocations: 94 kB / 17 MB, free: 6.121 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001212/0.001212, allocations: 197.6 kB / 17.91 MB, free: 5.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.544/1.544, allocations: 227.3 MB / 246 MB, free: 10.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000234/0.000234, allocations: 8 kB / 306.8 MB, free: 1.266 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1569/0.1571, allocations: 51.49 MB / 358.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.004553/0.1617, allocations: 4.296 MB / 362.6 MB, free: 9.453 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002508/0.1643, allocations: 1.241 MB / 363.8 MB, free: 8.207 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003159/0.1646, allocations: 8 kB / 363.9 MB, free: 8.199 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002229/0.1649, allocations: 91.23 kB / 363.9 MB, free: 8.109 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003997/0.1653, allocations: 222.1 kB / 364.2 MB, free: 7.891 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005407/0.1658, allocations: 211.7 kB / 364.4 MB, free: 7.684 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001035/0.1669, allocations: 0.9857 MB / 365.4 MB, free: 6.691 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003491/0.1672, allocations: 211.6 kB / 365.6 MB, free: 6.473 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004362/0.1677, allocations: 354.6 kB / 365.9 MB, free: 6.125 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004541/0.1681, allocations: 418.2 kB / 366.3 MB, free: 5.715 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.117e-05/0.1682, allocations: 44 kB / 366.4 MB, free: 5.672 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001653/0.1684, allocations: 71.97 kB / 366.4 MB, free: 5.602 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001284/0.1685, allocations: 139.4 kB / 366.6 MB, free: 5.465 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000143/0.1687, allocations: 173.3 kB / 366.7 MB, free: 5.289 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006445/0.1693, allocations: 0.7403 MB / 367.5 MB, free: 4.547 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.1693, allocations: 4 kB / 367.5 MB, free: 4.543 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.1694, allocations: 0 / 367.5 MB, free: 4.543 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.054e-05/0.1694, allocations: 4 kB / 367.5 MB, free: 4.539 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.002227/0.1716, allocations: 1.161 MB / 368.6 MB, free: 3.312 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.562e-05/0.1717, allocations: 12.03 kB / 368.7 MB, free: 3.301 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001563/0.1718, allocations: 110.4 kB / 368.8 MB, free: 3.184 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001482/0.172, allocations: 90.88 kB / 368.8 MB, free: 3.094 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006056/0.1726, allocations: 462.7 kB / 369.3 MB, free: 2.602 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.241e-05/0.1727, allocations: 49.31 kB / 369.3 MB, free: 2.551 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001074/0.1728, allocations: 63.95 kB / 369.4 MB, free: 2.488 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001389/0.1742, allocations: 0.6857 MB / 370.1 MB, free: 1.797 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.818e-05/0.1742, allocations: 0 / 370.1 MB, free: 1.797 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.276e-05/0.1743, allocations: 31.94 kB / 370.1 MB, free: 1.766 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.763e-05/0.1743, allocations: 16 kB / 370.1 MB, free: 1.75 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001617/0.1759, allocations: 0.7469 MB / 370.9 MB, free: 1.004 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.2008/0.3767, allocations: 2.424 MB / 373.3 MB, free: 18.52 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001585/0.3783, allocations: 0.6367 MB / 374 MB, free: 18.48 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008438/0.3791, allocations: 360 kB / 374.3 MB, free: 18.47 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.966e-05/0.3792, allocations: 10.88 kB / 374.3 MB, free: 18.47 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00104/0.3803, allocations: 456.8 kB / 374.8 MB, free: 18.38 MB / 302.1 MB Notification: Performance of pre-optimization done (n=54): time 2.314e-06/0.3803, allocations: 0 / 374.8 MB, free: 18.38 MB / 302.1 MB Notification: Performance of matching and sorting (n=94): time 0.06261/0.4429, allocations: 16.75 MB / 391.5 MB, free: 12.96 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.813e-05/0.443, allocations: 145.5 kB / 391.7 MB, free: 12.79 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005183/0.4435, allocations: 0.5185 MB / 392.2 MB, free: 12.27 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001375/0.4437, allocations: 47.89 kB / 392.2 MB, free: 12.22 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001817/0.4438, allocations: 381.9 kB / 392.6 MB, free: 11.84 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000187/0.444, allocations: 318.2 kB / 392.9 MB, free: 11.54 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.107e-05/0.4441, allocations: 20 kB / 392.9 MB, free: 11.52 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.81e-05/0.4442, allocations: 386.7 kB / 393.3 MB, free: 11.13 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001664/0.4459, allocations: 0.7947 MB / 394.1 MB, free: 10.33 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001677/0.4476, allocations: 1.029 MB / 395.1 MB, free: 9.223 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001654/0.4492, allocations: 0.8808 MB / 396 MB, free: 8.328 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.119e-06/0.4492, allocations: 4 kB / 396 MB, free: 8.324 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.01942/0.4687, allocations: 5.653 MB / 401.7 MB, free: 2.648 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.653e-05/0.4688, allocations: 63.36 kB / 401.7 MB, free: 2.574 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.771e-05/0.4688, allocations: 8 kB / 401.7 MB, free: 2.566 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03636/0.5052, allocations: 7.316 MB / 409 MB, free: 11.25 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001106/0.5063, allocations: 179.7 kB / 409.2 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009456/0.5158, allocations: 3.207 MB / 412.4 MB, free: 7.809 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002387/0.5183, allocations: 235.8 kB / 412.7 MB, free: 7.578 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002544/0.5185, allocations: 47.97 kB / 412.7 MB, free: 7.531 MB / 318.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.000676/0.5192, allocations: 218.5 kB / 412.9 MB, free: 7.309 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002864/0.5195, allocations: 79.06 kB / 413 MB, free: 7.23 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02554/0.5451, allocations: 5.468 MB / 418.5 MB, free: 1.754 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.75e-05/0.5452, allocations: 10.84 kB / 418.5 MB, free: 1.746 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.171e-05/0.5452, allocations: 0 / 418.5 MB, free: 1.746 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.378e-05/0.5452, allocations: 11.97 kB / 418.5 MB, free: 1.734 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002052/0.5473, allocations: 1.111 MB / 419.6 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.259e-05/0.5473, allocations: 4.875 kB / 419.6 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005648/0.5479, allocations: 119.8 kB / 419.7 MB, free: 488 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0329/0.5808, allocations: 7.294 MB / 427 MB, free: 9.18 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002854/0.5812, allocations: 19.98 kB / 427 MB, free: 9.16 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006051/0.5872, allocations: 3.077 MB / 430.1 MB, free: 6.027 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/0.5873, allocations: 0 / 430.1 MB, free: 6.027 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02435/0.6116, allocations: 6.418 MB / 436.5 MB, free: 15.6 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004529/0.6122, allocations: 148.1 kB / 436.7 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004187/0.6126, allocations: 20 kB / 436.7 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001584/0.6142, allocations: 215.8 kB / 436.9 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003391/0.6146, allocations: 96.84 kB / 437 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001653/0.6147, allocations: 39.92 kB / 437 MB, free: 15.07 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006435/0.6154, allocations: 346.8 kB / 437.4 MB, free: 14.73 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.6154, allocations: 0 / 437.4 MB, free: 14.73 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001194/0.6166, allocations: 256 kB / 437.6 MB, free: 14.48 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.02451/0.6411, allocations: 7.009 MB / 444.6 MB, free: 7.445 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.006942/0.6481, allocations: 2.325 MB / 447 MB, free: 5.094 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.301e-06/0.6482, allocations: 448 / 447 MB, free: 5.094 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003477/0.6516, allocations: 1.16 MB / 448.1 MB, free: 3.938 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000946/0.6526, allocations: 128.6 kB / 448.2 MB, free: 3.809 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03172/0.6844, allocations: 10.39 MB / 458.6 MB, free: 9.246 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009716/0.6854, allocations: 0.9507 MB / 459.6 MB, free: 8.27 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003496/0.6857, allocations: 58.27 kB / 459.6 MB, free: 8.211 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004491/0.6862, allocations: 271.3 kB / 459.9 MB, free: 7.945 MB / 366.1 MB Notification: Performance of SimCode: time 1.212e-06/0.6862, allocations: 0 / 459.9 MB, free: 7.945 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04998/0.7362, allocations: 26.31 MB / 486.2 MB, free: 13.91 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001873/0.7364, allocations: 217.8 kB / 486.4 MB, free: 13.67 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.934/3.671, allocations: 0 / 486.4 MB, free: 13.67 MB / 398.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat does not exist to compare? outputFormat=mat