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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001058/0.001058, allocations: 101.5 kB / 16.31 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001035/0.001035, allocations: 182.3 kB / 17.19 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.444/1.444, allocations: 223.2 MB / 241.1 MB, free: 14.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002528/0.000253, allocations: 8 kB / 300.8 MB, free: 6.129 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1292/0.1295, allocations: 50.41 MB / 351.2 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.005691/0.1352, allocations: 3.975 MB / 355.2 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003275/0.1385, allocations: 1.269 MB / 356.5 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006477/0.1393, allocations: 12 kB / 356.5 MB, free: 14.42 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002412/0.1395, allocations: 87.28 kB / 356.6 MB, free: 14.33 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008832/0.1404, allocations: 283.1 kB / 356.8 MB, free: 14.05 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008802/0.1413, allocations: 223.6 kB / 357.1 MB, free: 13.84 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001432/0.1428, allocations: 0.7032 MB / 357.8 MB, free: 13.13 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004259/0.1432, allocations: 203.7 kB / 358 MB, free: 12.91 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007222/0.1439, allocations: 362.7 kB / 358.3 MB, free: 12.56 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005818/0.1445, allocations: 410.3 kB / 358.7 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.786e-05/0.1446, allocations: 48 kB / 358.8 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001993/0.1448, allocations: 63.92 kB / 358.8 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002254/0.145, allocations: 151.4 kB / 359 MB, free: 11.9 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003044/0.1454, allocations: 173.3 kB / 359.1 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009907/0.1464, allocations: 0.7364 MB / 359.9 MB, free: 10.98 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.798e-06/0.1464, allocations: 0 / 359.9 MB, free: 10.98 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.1464, allocations: 4 kB / 359.9 MB, free: 10.98 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.326e-05/0.1464, allocations: 0 / 359.9 MB, free: 10.98 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.002531/0.1489, allocations: 1.157 MB / 361 MB, free: 9.754 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.43e-05/0.149, allocations: 8.031 kB / 361.1 MB, free: 9.746 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001459/0.1491, allocations: 110.5 kB / 361.2 MB, free: 9.629 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000141/0.1493, allocations: 90.88 kB / 361.2 MB, free: 9.539 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000704/0.15, allocations: 462.6 kB / 361.7 MB, free: 9.043 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.51e-05/0.1501, allocations: 49.31 kB / 361.7 MB, free: 8.996 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001067/0.1502, allocations: 64 kB / 361.8 MB, free: 8.934 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001474/0.1517, allocations: 0.6702 MB / 362.5 MB, free: 8.258 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.823e-05/0.1517, allocations: 0 / 362.5 MB, free: 8.258 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.71e-05/0.1518, allocations: 31.95 kB / 362.5 MB, free: 8.227 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.88e-05/0.1518, allocations: 19.94 kB / 362.5 MB, free: 8.207 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001831/0.1536, allocations: 0.7507 MB / 363.3 MB, free: 7.453 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.004763/0.1584, allocations: 2.437 MB / 365.7 MB, free: 4.867 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001524/0.1599, allocations: 0.6359 MB / 366.4 MB, free: 4.227 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.332e-05/0.16, allocations: 12.42 kB / 366.4 MB, free: 4.215 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001057/0.1611, allocations: 445.5 kB / 366.8 MB, free: 3.754 MB / 302.1 MB Notification: Performance of pre-optimization done (n=54): time 2.495e-06/0.1611, allocations: 0 / 366.8 MB, free: 3.754 MB / 302.1 MB Notification: Performance of matching and sorting (n=94): time 0.3096/0.4707, allocations: 16.71 MB / 383.5 MB, free: 22 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001077/0.4709, allocations: 148.2 kB / 383.7 MB, free: 21.83 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007282/0.4716, allocations: 0.5087 MB / 384.2 MB, free: 21.52 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002088/0.4719, allocations: 41.61 kB / 384.2 MB, free: 21.48 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002179/0.4721, allocations: 397.1 kB / 384.6 MB, free: 21.12 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000249/0.4724, allocations: 315.7 kB / 384.9 MB, free: 20.86 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.591e-05/0.4724, allocations: 19.97 kB / 384.9 MB, free: 20.84 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001221/0.4726, allocations: 386.8 kB / 385.3 MB, free: 20.47 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002188/0.4748, allocations: 0.7911 MB / 386.1 MB, free: 20.11 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00216/0.4769, allocations: 1.032 MB / 387.1 MB, free: 19.45 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002129/0.4791, allocations: 0.8839 MB / 388 MB, free: 19 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.687e-06/0.4791, allocations: 0 / 388 MB, free: 19 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02137/0.5005, allocations: 5.646 MB / 393.7 MB, free: 14.46 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.65e-05/0.5006, allocations: 64.91 kB / 393.7 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.58e-05/0.5007, allocations: 8 kB / 393.7 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03265/0.5333, allocations: 7.316 MB / 401 MB, free: 7.059 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007327/0.5341, allocations: 179.8 kB / 401.2 MB, free: 6.883 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006123/0.5402, allocations: 3.227 MB / 404.4 MB, free: 3.602 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00191/0.5422, allocations: 223.8 kB / 404.7 MB, free: 3.383 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001207/0.5424, allocations: 43.98 kB / 404.7 MB, free: 3.34 MB / 302.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.0005935/0.543, allocations: 229.6 kB / 404.9 MB, free: 3.105 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000171/0.5431, allocations: 86.84 kB / 405 MB, free: 3.023 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02202/0.5652, allocations: 5.448 MB / 410.5 MB, free: 13.56 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.486e-05/0.5653, allocations: 8.891 kB / 410.5 MB, free: 13.55 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.588e-05/0.5653, allocations: 2.938 kB / 410.5 MB, free: 13.55 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.588e-05/0.5653, allocations: 7.969 kB / 410.5 MB, free: 13.55 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002243/0.5676, allocations: 1.103 MB / 411.6 MB, free: 12.42 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-05/0.5676, allocations: 0 / 411.6 MB, free: 12.42 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006292/0.5683, allocations: 131.8 kB / 411.7 MB, free: 12.29 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03451/0.6028, allocations: 7.279 MB / 419 MB, free: 5.008 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002922/0.6031, allocations: 34.66 kB / 419 MB, free: 4.977 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00635/0.6095, allocations: 3.094 MB / 422.1 MB, free: 1.828 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.982e-06/0.6096, allocations: 0.7031 kB / 422.1 MB, free: 1.828 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02553/0.6351, allocations: 6.42 MB / 428.5 MB, free: 11.39 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004412/0.6356, allocations: 148.2 kB / 428.7 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002003/0.6358, allocations: 27.92 kB / 428.7 MB, free: 11.2 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001405/0.6372, allocations: 207.8 kB / 428.9 MB, free: 11 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002516/0.6375, allocations: 104.8 kB / 429 MB, free: 10.89 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.899e-05/0.6376, allocations: 27.98 kB / 429 MB, free: 10.87 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004467/0.638, allocations: 358.8 kB / 429.4 MB, free: 10.52 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.638, allocations: 0 / 429.4 MB, free: 10.52 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008728/0.6389, allocations: 263.5 kB / 429.7 MB, free: 10.27 MB / 334.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.02569/0.6646, allocations: 6.99 MB / 436.6 MB, free: 3.25 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.007562/0.6722, allocations: 2.331 MB / 439 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.391e-05/0.6723, allocations: 7.938 kB / 439 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003961/0.6763, allocations: 1.154 MB / 440.1 MB, free: 15.74 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007606/0.6771, allocations: 118.6 kB / 440.3 MB, free: 15.62 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03544/0.7125, allocations: 14.25 MB / 454.5 MB, free: 1.168 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006372/0.7132, allocations: 0.9665 MB / 455.5 MB, free: 168 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003993/0.7136, allocations: 66.25 kB / 455.5 MB, free: 100 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004961/0.7141, allocations: 276 kB / 455.8 MB, free: 15.87 MB / 366.1 MB Notification: Performance of SimCode: time 1.343e-06/0.7141, allocations: 0 / 455.8 MB, free: 15.87 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05612/0.7703, allocations: 26.37 MB / 482.2 MB, free: 5.777 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002081/0.7705, allocations: 224.8 kB / 482.4 MB, free: 5.527 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.851/3.621, allocations: 7.172 kB / 482.4 MB, free: 5.523 MB / 382.1 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