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.000929/0.0009287, allocations: 93.5 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009946/0.0009947, allocations: 192 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.552/1.552, allocations: 227.4 MB / 246 MB, free: 10.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003059/0.000306, allocations: 8 kB / 306.8 MB, free: 1.23 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1178/0.1181, allocations: 51.5 MB / 358.3 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.005034/0.1232, allocations: 4.307 MB / 362.6 MB, free: 9.418 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002924/0.1262, allocations: 1.245 MB / 363.9 MB, free: 8.168 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004186/0.1266, allocations: 15.94 kB / 363.9 MB, free: 8.152 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002757/0.1269, allocations: 91.23 kB / 364 MB, free: 8.062 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004258/0.1274, allocations: 222.2 kB / 364.2 MB, free: 7.844 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006271/0.128, allocations: 219.7 kB / 364.4 MB, free: 7.629 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009817/0.129, allocations: 0.9818 MB / 365.4 MB, free: 6.641 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003673/0.1294, allocations: 207.6 kB / 365.6 MB, free: 6.426 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004492/0.1298, allocations: 350.7 kB / 365.9 MB, free: 6.082 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005093/0.1303, allocations: 422.2 kB / 366.3 MB, free: 5.668 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.151e-05/0.1304, allocations: 44 kB / 366.4 MB, free: 5.625 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001941/0.1306, allocations: 67.97 kB / 366.4 MB, free: 5.559 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001318/0.1308, allocations: 143.4 kB / 366.6 MB, free: 5.418 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001828/0.131, allocations: 177.2 kB / 366.8 MB, free: 5.238 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007411/0.1317, allocations: 0.7442 MB / 367.5 MB, free: 4.492 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.1317, allocations: 0 / 367.5 MB, free: 4.492 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.625e-06/0.1317, allocations: 0 / 367.5 MB, free: 4.492 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.213e-05/0.1318, allocations: 0 / 367.5 MB, free: 4.492 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.002246/0.134, allocations: 1.168 MB / 368.7 MB, free: 3.262 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.285e-05/0.1341, allocations: 12.03 kB / 368.7 MB, free: 3.25 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001399/0.1342, allocations: 106.5 kB / 368.8 MB, free: 3.137 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001576/0.1344, allocations: 90.88 kB / 368.9 MB, free: 3.047 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006025/0.135, allocations: 462.7 kB / 369.3 MB, free: 2.555 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.286e-05/0.135, allocations: 49.31 kB / 369.4 MB, free: 2.504 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001023/0.1352, allocations: 67.95 kB / 369.4 MB, free: 2.438 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00137/0.1365, allocations: 0.6779 MB / 370.1 MB, free: 1.754 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.804e-05/0.1366, allocations: 0 / 370.1 MB, free: 1.754 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.085e-05/0.1366, allocations: 27.98 kB / 370.1 MB, free: 1.727 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.98e-05/0.1367, allocations: 19.94 kB / 370.2 MB, free: 1.707 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001671/0.1384, allocations: 0.7469 MB / 370.9 MB, free: 0.9609 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.2151/0.3534, allocations: 2.416 MB / 373.3 MB, free: 18.7 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001775/0.3552, allocations: 0.6427 MB / 374 MB, free: 18.66 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001017/0.3563, allocations: 363.2 kB / 374.3 MB, free: 18.65 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.33e-05/0.3564, allocations: 11.59 kB / 374.3 MB, free: 18.64 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001139/0.3575, allocations: 463.7 kB / 374.8 MB, free: 18.55 MB / 302.1 MB Notification: Performance of pre-optimization done (n=54): time 2.675e-06/0.3575, allocations: 0 / 374.8 MB, free: 18.55 MB / 302.1 MB Notification: Performance of matching and sorting (n=94): time 0.06552/0.423, allocations: 16.74 MB / 391.5 MB, free: 13.14 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.387e-05/0.4232, allocations: 150.4 kB / 391.7 MB, free: 12.96 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000603/0.4238, allocations: 0.5108 MB / 392.2 MB, free: 12.45 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001769/0.424, allocations: 41.7 kB / 392.2 MB, free: 12.41 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001909/0.4242, allocations: 389.7 kB / 392.6 MB, free: 12.02 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002168/0.4244, allocations: 310.3 kB / 392.9 MB, free: 11.72 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.384e-05/0.4245, allocations: 24 kB / 392.9 MB, free: 11.7 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001191/0.4246, allocations: 390.7 kB / 393.3 MB, free: 11.31 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001745/0.4263, allocations: 0.7908 MB / 394.1 MB, free: 10.52 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001878/0.4282, allocations: 1.033 MB / 395.1 MB, free: 9.402 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001818/0.4301, allocations: 0.8808 MB / 396 MB, free: 8.508 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.4301, allocations: 0 / 396 MB, free: 8.508 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02012/0.4502, allocations: 5.658 MB / 401.7 MB, free: 2.828 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.398e-05/0.4503, allocations: 63.53 kB / 401.7 MB, free: 2.754 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.866e-05/0.4504, allocations: 8 kB / 401.7 MB, free: 2.746 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03202/0.4824, allocations: 7.307 MB / 409.1 MB, free: 11.43 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007217/0.4832, allocations: 179.7 kB / 409.2 MB, free: 11.26 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006545/0.4897, allocations: 3.227 MB / 412.5 MB, free: 7.977 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001659/0.4914, allocations: 231.8 kB / 412.7 MB, free: 7.75 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001214/0.4916, allocations: 44.91 kB / 412.7 MB, free: 7.707 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.0004949/0.4921, allocations: 229.6 kB / 413 MB, free: 7.473 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001586/0.4922, allocations: 79.02 kB / 413 MB, free: 7.395 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02151/0.5137, allocations: 5.462 MB / 418.5 MB, free: 1.922 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-05/0.5138, allocations: 12 kB / 418.5 MB, free: 1.91 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.048e-05/0.5139, allocations: 4 kB / 418.5 MB, free: 1.906 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.777e-05/0.5139, allocations: 3.984 kB / 418.5 MB, free: 1.902 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001992/0.5159, allocations: 1.107 MB / 419.6 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.197e-06/0.5159, allocations: 0.875 kB / 419.6 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005499/0.5165, allocations: 127.8 kB / 419.7 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03316/0.5496, allocations: 7.29 MB / 427 MB, free: 9.355 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002693/0.55, allocations: 23.98 kB / 427.1 MB, free: 9.332 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006053/0.556, allocations: 3.081 MB / 430.1 MB, free: 6.195 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.507e-06/0.5561, allocations: 0 / 430.1 MB, free: 6.195 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02463/0.5807, allocations: 6.423 MB / 436.6 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004335/0.5812, allocations: 144.2 kB / 436.7 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001824/0.5814, allocations: 16 kB / 436.7 MB, free: 15.58 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00128/0.5827, allocations: 219.8 kB / 436.9 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002367/0.5829, allocations: 97.41 kB / 437 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.573e-05/0.583, allocations: 31.97 kB / 437.1 MB, free: 15.23 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004269/0.5835, allocations: 350.5 kB / 437.4 MB, free: 14.89 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5835, allocations: 0 / 437.4 MB, free: 14.89 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008317/0.5843, allocations: 260 kB / 437.7 MB, free: 14.64 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.02409/0.6084, allocations: 7.004 MB / 444.7 MB, free: 7.609 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.006547/0.615, allocations: 2.334 MB / 447 MB, free: 5.25 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.951e-06/0.615, allocations: 4 kB / 447 MB, free: 5.246 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003248/0.6183, allocations: 1.157 MB / 448.2 MB, free: 4.094 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008257/0.6191, allocations: 133.7 kB / 448.3 MB, free: 3.965 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03072/0.6499, allocations: 10.37 MB / 458.6 MB, free: 9.418 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000539/0.6505, allocations: 0.9507 MB / 459.6 MB, free: 8.438 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003421/0.6508, allocations: 58.27 kB / 459.7 MB, free: 8.379 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003495/0.6512, allocations: 271.3 kB / 459.9 MB, free: 8.113 MB / 366.1 MB Notification: Performance of SimCode: time 1.072e-06/0.6512, allocations: 0 / 459.9 MB, free: 8.113 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05932/0.7105, allocations: 26.36 MB / 486.3 MB, free: 14.02 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001905/0.7107, allocations: 225.2 kB / 486.5 MB, free: 13.78 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.087/3.798, allocations: 3.938 kB / 486.5 MB, free: 13.78 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