Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_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.HeatingNPN_NORGate,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingNPN_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.001037/0.001037, allocations: 93.92 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001155/0.001155, allocations: 204.8 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.529/1.529, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002678/0.0002678, allocations: 11.98 kB / 306.7 MB, free: 1.27 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1139/0.1142, allocations: 51.49 MB / 358.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.004709/0.119, allocations: 4 MB / 362.2 MB, free: 9.77 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002729/0.1217, allocations: 1.292 MB / 363.5 MB, free: 8.473 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003367/0.1221, allocations: 15.94 kB / 363.5 MB, free: 8.457 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001681/0.1223, allocations: 79.36 kB / 363.6 MB, free: 8.379 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005181/0.1228, allocations: 287.1 kB / 363.9 MB, free: 8.098 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006312/0.1234, allocations: 223.6 kB / 364.1 MB, free: 7.879 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008463/0.1243, allocations: 0.6993 MB / 364.8 MB, free: 7.176 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003178/0.1246, allocations: 211.6 kB / 365 MB, free: 6.957 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004034/0.125, allocations: 358.7 kB / 365.3 MB, free: 6.605 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004738/0.1255, allocations: 410.3 kB / 365.7 MB, free: 6.203 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.949e-05/0.1256, allocations: 48 kB / 365.8 MB, free: 6.156 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001726/0.1258, allocations: 67.98 kB / 365.8 MB, free: 6.09 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001322/0.1259, allocations: 147.4 kB / 366 MB, free: 5.945 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002174/0.1262, allocations: 173.3 kB / 366.2 MB, free: 5.77 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006935/0.1269, allocations: 0.7286 MB / 366.9 MB, free: 5.039 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.1269, allocations: 0 / 366.9 MB, free: 5.039 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1269, allocations: 0 / 366.9 MB, free: 5.039 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.21e-05/0.1269, allocations: 4 kB / 366.9 MB, free: 5.035 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.002328/0.1292, allocations: 1.169 MB / 368.1 MB, free: 3.801 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.744e-05/0.1293, allocations: 8.031 kB / 368.1 MB, free: 3.793 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001402/0.1294, allocations: 106.5 kB / 368.2 MB, free: 3.68 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001696/0.1296, allocations: 94.88 kB / 368.3 MB, free: 3.586 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007192/0.1303, allocations: 458.7 kB / 368.7 MB, free: 3.098 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.341e-05/0.1304, allocations: 45.31 kB / 368.8 MB, free: 3.051 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001255/0.1305, allocations: 71.95 kB / 368.8 MB, free: 2.98 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001492/0.132, allocations: 0.674 MB / 369.5 MB, free: 2.301 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.583e-05/0.1321, allocations: 3.984 kB / 369.5 MB, free: 2.297 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.381e-05/0.1322, allocations: 24 kB / 369.5 MB, free: 2.273 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.136e-05/0.1322, allocations: 16 kB / 369.5 MB, free: 2.258 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001974/0.1342, allocations: 0.7468 MB / 370.3 MB, free: 1.512 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.2238/0.3579, allocations: 2.424 MB / 372.7 MB, free: 18.07 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001705/0.3597, allocations: 0.6396 MB / 373.4 MB, free: 18.04 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.278e-05/0.3597, allocations: 12.95 kB / 373.4 MB, free: 18.04 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001189/0.3609, allocations: 449.6 kB / 373.8 MB, free: 17.96 MB / 302.1 MB Notification: Performance of pre-optimization done (n=54): time 2.405e-06/0.361, allocations: 3.656 kB / 373.8 MB, free: 17.96 MB / 302.1 MB Notification: Performance of matching and sorting (n=94): time 0.0741/0.4351, allocations: 16.73 MB / 390.5 MB, free: 13.62 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.045e-05/0.4352, allocations: 141.6 kB / 390.7 MB, free: 13.47 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007903/0.436, allocations: 0.5116 MB / 391.2 MB, free: 13.07 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002537/0.4363, allocations: 49.7 kB / 391.2 MB, free: 13.02 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002671/0.4366, allocations: 382.5 kB / 391.6 MB, free: 12.64 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002764/0.4368, allocations: 319.9 kB / 391.9 MB, free: 12.33 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.34e-05/0.4369, allocations: 20 kB / 391.9 MB, free: 12.31 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001291/0.4371, allocations: 386.7 kB / 392.3 MB, free: 11.92 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001842/0.4389, allocations: 0.7986 MB / 393.1 MB, free: 11.12 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001981/0.4409, allocations: 1.021 MB / 394.1 MB, free: 10.02 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001934/0.4429, allocations: 0.8872 MB / 395 MB, free: 9.125 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.461e-06/0.4429, allocations: 0 / 395 MB, free: 9.125 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02194/0.4648, allocations: 5.649 MB / 400.7 MB, free: 3.453 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.437e-05/0.465, allocations: 67.39 kB / 400.7 MB, free: 3.375 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.516e-05/0.465, allocations: 4 kB / 400.7 MB, free: 3.371 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03446/0.4994, allocations: 7.32 MB / 408.1 MB, free: 12.05 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000932/0.5005, allocations: 179.7 kB / 408.2 MB, free: 11.87 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007408/0.5079, allocations: 3.225 MB / 411.5 MB, free: 8.594 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001958/0.5099, allocations: 219.8 kB / 411.7 MB, free: 8.379 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001505/0.5101, allocations: 51.97 kB / 411.7 MB, free: 8.328 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.0005147/0.5106, allocations: 230.4 kB / 412 MB, free: 8.094 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001826/0.5108, allocations: 83.05 kB / 412 MB, free: 8.012 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02307/0.5339, allocations: 5.461 MB / 417.5 MB, free: 2.543 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.348e-05/0.534, allocations: 11.95 kB / 417.5 MB, free: 2.531 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.088e-05/0.534, allocations: 0 / 417.5 MB, free: 2.531 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.244e-05/0.534, allocations: 7.922 kB / 417.5 MB, free: 2.523 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002638/0.5367, allocations: 1.114 MB / 418.6 MB, free: 1.387 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.464e-06/0.5367, allocations: 0 / 418.6 MB, free: 1.387 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006335/0.5374, allocations: 127.9 kB / 418.8 MB, free: 1.262 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03508/0.5725, allocations: 7.284 MB / 426 MB, free: 9.969 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002848/0.5728, allocations: 19.98 kB / 426.1 MB, free: 9.949 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005844/0.5786, allocations: 3.084 MB / 429.1 MB, free: 6.809 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.324e-06/0.5787, allocations: 4 kB / 429.2 MB, free: 6.805 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0255/0.6042, allocations: 6.419 MB / 435.6 MB, free: 380 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003516/0.6046, allocations: 148.1 kB / 435.7 MB, free: 212 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000194/0.6048, allocations: 16.05 kB / 435.7 MB, free: 196 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001475/0.6063, allocations: 223.8 kB / 435.9 MB, free: 15.97 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000266/0.6066, allocations: 100.8 kB / 436 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.338e-05/0.6067, allocations: 36.53 kB / 436.1 MB, free: 15.84 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000552/0.6073, allocations: 346.8 kB / 436.4 MB, free: 15.5 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.6073, allocations: 4 kB / 436.4 MB, free: 15.49 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009861/0.6083, allocations: 258.6 kB / 436.7 MB, free: 15.24 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.02602/0.6343, allocations: 6.997 MB / 443.7 MB, free: 8.211 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00732/0.6417, allocations: 2.332 MB / 446 MB, free: 5.855 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 8.756e-06/0.6417, allocations: 0 / 446 MB, free: 5.855 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003695/0.6454, allocations: 1.165 MB / 447.2 MB, free: 4.695 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008403/0.6463, allocations: 110.2 kB / 447.3 MB, free: 4.586 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03813/0.6845, allocations: 14.26 MB / 461.5 MB, free: 6.109 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007677/0.6853, allocations: 0.9623 MB / 462.5 MB, free: 5.121 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004027/0.6857, allocations: 58.27 kB / 462.6 MB, free: 5.062 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004106/0.6861, allocations: 271.3 kB / 462.8 MB, free: 4.797 MB / 366.1 MB Notification: Performance of SimCode: time 1.513e-06/0.6861, allocations: 0 / 462.8 MB, free: 4.797 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05925/0.7454, allocations: 26.35 MB / 489.2 MB, free: 10.72 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002156/0.7457, allocations: 212.6 kB / 489.4 MB, free: 10.48 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.824/3.57, allocations: 0 / 489.4 MB, free: 10.48 MB / 398.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.mat does not exist to compare? outputFormat=mat