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.001034/0.001034, allocations: 89.25 kB / 16.31 MB, free: 6.461 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.001109/0.001109, allocations: 177.5 kB / 17.21 MB, free: 6.336 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.426/1.426, allocations: 223.2 MB / 241.2 MB, free: 5.41 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002951/0.0002952, allocations: 7 kB / 300.9 MB, free: 6.113 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1069, allocations: 50.43 MB / 351.3 MB, free: 11.55 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.004976/0.1119, allocations: 4.281 MB / 355.6 MB, free: 7.254 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002895/0.1149, allocations: 1.229 MB / 356.9 MB, free: 6.02 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004725/0.1154, allocations: 11.94 kB / 356.9 MB, free: 6.008 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000304/0.1157, allocations: 87.3 kB / 356.9 MB, free: 5.922 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000618/0.1163, allocations: 218.1 kB / 357.2 MB, free: 5.707 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007304/0.1171, allocations: 223.7 kB / 357.4 MB, free: 5.488 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001093/0.1182, allocations: 0.9857 MB / 358.4 MB, free: 4.496 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003973/0.1186, allocations: 199.5 kB / 358.6 MB, free: 4.285 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004732/0.119, allocations: 358.6 kB / 358.9 MB, free: 3.934 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004776/0.1195, allocations: 410.3 kB / 359.3 MB, free: 3.531 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.068e-05/0.1196, allocations: 48 kB / 359.4 MB, free: 3.484 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001869/0.1198, allocations: 71.98 kB / 359.4 MB, free: 3.414 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001398/0.12, allocations: 151.3 kB / 359.6 MB, free: 3.266 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001734/0.1202, allocations: 173.3 kB / 359.7 MB, free: 3.09 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000664/0.1208, allocations: 0.7362 MB / 360.5 MB, free: 2.352 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.572e-06/0.1208, allocations: 0 / 360.5 MB, free: 2.352 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.1209, allocations: 0 / 360.5 MB, free: 2.352 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.516e-06/0.1209, allocations: 0 / 360.5 MB, free: 2.352 MB / 286.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.002129/0.123, allocations: 1.161 MB / 361.6 MB, free: 1.121 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.655e-05/0.1231, allocations: 11.97 kB / 361.7 MB, free: 1.109 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001433/0.1232, allocations: 106.5 kB / 361.8 MB, free: 0.9961 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001572/0.1234, allocations: 98.83 kB / 361.9 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006279/0.124, allocations: 454.7 kB / 362.3 MB, free: 420 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.107e-05/0.1241, allocations: 49.31 kB / 362.3 MB, free: 372 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001206/0.1242, allocations: 64 kB / 362.4 MB, free: 308 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0014/0.1256, allocations: 0.6779 MB / 363.1 MB, free: 15.62 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.81e-05/0.1256, allocations: 0 / 363.1 MB, free: 15.62 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.116e-05/0.1257, allocations: 31.98 kB / 363.1 MB, free: 15.59 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.611e-05/0.1257, allocations: 19.95 kB / 363.1 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001595/0.1273, allocations: 0.7507 MB / 363.9 MB, free: 14.81 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.003902/0.1312, allocations: 2.429 MB / 366.3 MB, free: 12.23 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001404/0.1327, allocations: 0.6434 MB / 367 MB, free: 11.59 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007046/0.1334, allocations: 358 kB / 367.3 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.942e-05/0.1334, allocations: 12.42 kB / 367.3 MB, free: 11.22 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009443/0.1344, allocations: 453.5 kB / 367.8 MB, free: 10.75 MB / 302.1 MB Notification: Performance of pre-optimization done (n=54): time 2.134e-06/0.1344, allocations: 0 / 367.8 MB, free: 10.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=94): time 0.06433/0.1988, allocations: 16.73 MB / 384.5 MB, free: 9.926 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001129/0.1989, allocations: 149.5 kB / 384.6 MB, free: 9.75 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007162/0.1996, allocations: 0.5223 MB / 385.2 MB, free: 9.219 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001744/0.1998, allocations: 41.7 kB / 385.2 MB, free: 9.172 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003228/0.2002, allocations: 391.8 kB / 385.6 MB, free: 8.781 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003295/0.2005, allocations: 315.4 kB / 385.9 MB, free: 8.469 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.805e-05/0.2006, allocations: 20 kB / 385.9 MB, free: 8.449 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002003/0.2008, allocations: 386.8 kB / 386.3 MB, free: 8.062 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001947/0.2027, allocations: 0.7947 MB / 387.1 MB, free: 7.27 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002169/0.2049, allocations: 1.037 MB / 388.1 MB, free: 6.145 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002037/0.207, allocations: 0.8769 MB / 389 MB, free: 5.258 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.344e-06/0.207, allocations: 4 kB / 389 MB, free: 5.254 MB / 318.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02208/0.2291, allocations: 5.651 MB / 394.7 MB, free: 15.57 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.374e-05/0.2292, allocations: 59.41 kB / 394.7 MB, free: 15.5 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.911e-05/0.2292, allocations: 8 kB / 394.7 MB, free: 15.49 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0323/0.2616, allocations: 7.317 MB / 402 MB, free: 8.156 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007778/0.2624, allocations: 187.7 kB / 402.2 MB, free: 7.973 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006688/0.2691, allocations: 3.219 MB / 405.4 MB, free: 4.699 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001649/0.2708, allocations: 219.8 kB / 405.7 MB, free: 4.484 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001362/0.271, allocations: 47.98 kB / 405.7 MB, free: 4.438 MB / 334.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.0004377/0.2714, allocations: 229.6 kB / 405.9 MB, free: 4.203 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001382/0.2716, allocations: 82.97 kB / 406 MB, free: 4.121 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02194/0.2935, allocations: 5.459 MB / 411.5 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.82e-05/0.2936, allocations: 8 kB / 411.5 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.647e-06/0.2936, allocations: 0 / 411.5 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.269e-05/0.2936, allocations: 15.86 kB / 411.5 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001496/0.2951, allocations: 1.112 MB / 412.6 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.949e-06/0.2951, allocations: 0 / 412.6 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005378/0.2957, allocations: 131.8 kB / 412.7 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03252/0.3282, allocations: 7.281 MB / 420 MB, free: 6.031 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002192/0.3285, allocations: 31.97 kB / 420 MB, free: 6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005716/0.3342, allocations: 3.08 MB / 423.1 MB, free: 2.863 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.831e-06/0.3342, allocations: 3.953 kB / 423.1 MB, free: 2.859 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2802/0.6145, allocations: 6.402 MB / 429.5 MB, free: 68.35 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002639/0.6148, allocations: 150.7 kB / 429.7 MB, free: 68.25 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001944/0.615, allocations: 25.06 kB / 429.7 MB, free: 68.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001366/0.6163, allocations: 213.5 kB / 429.9 MB, free: 68.25 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002854/0.6166, allocations: 101.2 kB / 430 MB, free: 68.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.96e-05/0.6167, allocations: 30.52 kB / 430 MB, free: 68.25 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004858/0.6172, allocations: 350.8 kB / 430.4 MB, free: 68.16 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6172, allocations: 0 / 430.4 MB, free: 68.16 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009434/0.6182, allocations: 260.6 kB / 430.6 MB, free: 68.16 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.02465/0.6429, allocations: 7.002 MB / 437.6 MB, free: 67.47 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.006158/0.6491, allocations: 2.327 MB / 440 MB, free: 67.06 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 8.666e-06/0.6491, allocations: 0 / 440 MB, free: 67.06 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003118/0.6522, allocations: 1.162 MB / 441.1 MB, free: 66.81 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000854/0.6531, allocations: 125.9 kB / 441.2 MB, free: 66.79 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02841/0.6816, allocations: 10.35 MB / 451.6 MB, free: 58.7 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003427/0.6819, allocations: 0.9568 MB / 452.6 MB, free: 57.72 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003677/0.6823, allocations: 59.06 kB / 452.6 MB, free: 57.66 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000277/0.6826, allocations: 271.3 kB / 452.9 MB, free: 57.4 MB / 350.1 MB Notification: Performance of SimCode: time 1.433e-06/0.6826, allocations: 0.8438 kB / 452.9 MB, free: 57.4 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.041/0.7236, allocations: 26.41 MB / 479.3 MB, free: 31.29 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000149/0.7238, allocations: 228.9 kB / 479.5 MB, free: 31.04 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.89/3.614, allocations: 0 / 479.5 MB, free: 31.04 MB / 350.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