Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001633/0.001633, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00198/0.00198, allocations: 211.4 kB / 23.73 MB, free: 4.523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.395/1.395, allocations: 230.6 MB / 257.5 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001423/0.001423, allocations: 43.94 kB / 377.7 MB, free: 2.945 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2599/0.2613, allocations: 53.37 MB / 431.1 MB, free: 6.625 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.005869/0.2672, allocations: 4.428 MB / 435.5 MB, free: 2.184 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002485/0.2696, allocations: 1.248 MB / 436.8 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003126/0.27, allocations: 11.94 kB / 436.8 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003177/0.2703, allocations: 126.7 kB / 436.9 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004961/0.2708, allocations: 261.6 kB / 437.2 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006931/0.2715, allocations: 319.5 kB / 437.5 MB, free: 224 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001126/0.2726, allocations: 1.099 MB / 438.6 MB, free: 15.12 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003305/0.2729, allocations: 192.7 kB / 438.8 MB, free: 14.92 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005034/0.2734, allocations: 430.5 kB / 439.2 MB, free: 14.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006139/0.274, allocations: 474.1 kB / 439.7 MB, free: 14.03 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001287/0.2742, allocations: 88 kB / 439.7 MB, free: 13.95 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002017/0.2744, allocations: 116 kB / 439.9 MB, free: 13.83 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002166/0.2746, allocations: 203.2 kB / 440.1 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003772/0.275, allocations: 386.2 kB / 440.4 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001086/0.276, allocations: 1.039 MB / 441.5 MB, free: 12.21 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.276, allocations: 0 / 441.5 MB, free: 12.21 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.2761, allocations: 0 / 441.5 MB, free: 12.21 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.093e-05/0.2761, allocations: 0 / 441.5 MB, free: 12.21 MB / 350.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.002578/0.2786, allocations: 1.213 MB / 442.7 MB, free: 10.95 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.226e-05/0.2787, allocations: 8.031 kB / 442.7 MB, free: 10.94 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001311/0.2788, allocations: 106.7 kB / 442.8 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001573/0.279, allocations: 100.3 kB / 442.9 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007739/0.2797, allocations: 430.1 kB / 443.3 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.446e-05/0.2798, allocations: 49.69 kB / 443.4 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001223/0.2799, allocations: 64.33 kB / 443.4 MB, free: 10.17 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001535/0.2815, allocations: 0.7879 MB / 444.2 MB, free: 9.348 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.212e-05/0.2815, allocations: 4 kB / 444.2 MB, free: 9.344 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.877e-05/0.2815, allocations: 24 kB / 444.2 MB, free: 9.32 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.119e-05/0.2816, allocations: 16 kB / 444.3 MB, free: 9.305 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001757/0.2833, allocations: 0.6922 MB / 444.9 MB, free: 8.613 MB / 350.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.004025/0.2873, allocations: 1.878 MB / 446.8 MB, free: 6.648 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001541/0.2889, allocations: 0.5521 MB / 447.4 MB, free: 6.086 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000726/0.2896, allocations: 314 kB / 447.7 MB, free: 5.777 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.868e-05/0.2897, allocations: 8.422 kB / 447.7 MB, free: 5.77 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001089/0.2908, allocations: 0.5487 MB / 448.2 MB, free: 5.164 MB / 350.1 MB Notification: Performance of pre-optimization done (n=54): time 2.455e-06/0.2908, allocations: 0 / 448.2 MB, free: 5.164 MB / 350.1 MB Notification: Performance of matching and sorting (n=94): time 0.07105/0.3618, allocations: 15.25 MB / 463.5 MB, free: 5.859 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001202/0.3619, allocations: 153.4 kB / 463.6 MB, free: 5.676 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006733/0.3626, allocations: 0.5263 MB / 464.2 MB, free: 5.141 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001663/0.3628, allocations: 41.7 kB / 464.2 MB, free: 5.094 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003053/0.3631, allocations: 400.6 kB / 464.6 MB, free: 4.695 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003056/0.3634, allocations: 329.2 kB / 464.9 MB, free: 4.371 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003788/0.3638, allocations: 186.5 kB / 465.1 MB, free: 4.184 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001893/0.3639, allocations: 390.7 kB / 465.5 MB, free: 3.793 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002053/0.366, allocations: 0.7746 MB / 466.3 MB, free: 3.004 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002224/0.3682, allocations: 1.088 MB / 467.3 MB, free: 1.797 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003995/0.3722, allocations: 1.701 MB / 469 MB, free: 4 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.043e-06/0.3722, allocations: 4 kB / 469 MB, free: 0 / 366.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.0241/0.3963, allocations: 5.401 MB / 474.4 MB, free: 10.55 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.312e-05/0.3964, allocations: 63.39 kB / 474.5 MB, free: 10.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.103e-05/0.3964, allocations: 8 kB / 474.5 MB, free: 10.47 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03523/0.4317, allocations: 6.841 MB / 481.4 MB, free: 3.613 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007008/0.4324, allocations: 151.7 kB / 481.5 MB, free: 3.465 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006848/0.4392, allocations: 3.157 MB / 484.7 MB, free: 260 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001563/0.4408, allocations: 192 kB / 484.9 MB, free: 68 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001138/0.4409, allocations: 55.91 kB / 484.9 MB, free: 12 kB / 382.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 (V2.signalSource.count,$PRE.V2.signalSource.count,V2.signalSource.T_start,$PRE.V2.signalSource.T_start,V1.signalSource.count,$PRE.V1.signalSource.count,V1.signalSource.T_start,$PRE.V1.signalSource.T_start,$whenCondition1,$whenCondition2) * 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(5,32), (5,32)} Notification: Performance of prepare postOptimizeDAE: time 0.000425/0.4413, allocations: 225.7 kB / 485.1 MB, free: 15.78 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001711/0.4415, allocations: 87.48 kB / 485.2 MB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02245/0.4639, allocations: 5.064 MB / 490.3 MB, free: 10.61 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.031e-05/0.464, allocations: 16 kB / 490.3 MB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.618e-06/0.464, allocations: 0 / 490.3 MB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.304e-05/0.464, allocations: 7.969 kB / 490.3 MB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001423/0.4654, allocations: 0.8499 MB / 491.1 MB, free: 9.695 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.252e-06/0.4654, allocations: 4 kB / 491.2 MB, free: 9.691 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005112/0.4659, allocations: 95.81 kB / 491.2 MB, free: 9.598 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03439/0.5003, allocations: 6.785 MB / 498 MB, free: 2.797 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001777/0.5005, allocations: 23.97 kB / 498.1 MB, free: 2.773 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005818/0.5063, allocations: 3.045 MB / 0.4894 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.5063, allocations: 0 / 0.4894 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0246/0.5309, allocations: 5.956 MB / 0.4952 GB, free: 9.688 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002124/0.5311, allocations: 79.34 kB / 0.4952 GB, free: 9.609 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001668/0.5313, allocations: 16 kB / 0.4953 GB, free: 9.594 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001352/0.5327, allocations: 172.1 kB / 0.4954 GB, free: 9.426 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00025/0.5329, allocations: 96.83 kB / 0.4955 GB, free: 9.332 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.479e-05/0.533, allocations: 35.97 kB / 0.4956 GB, free: 9.297 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004242/0.5334, allocations: 366.8 kB / 0.4959 GB, free: 8.941 MB / 414.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.5334, allocations: 0 / 0.4959 GB, free: 8.941 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007219/0.5342, allocations: 259.9 kB / 0.4961 GB, free: 8.688 MB / 414.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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(5,32), (5,36)} Notification: Performance of Backend phase and start with SimCode phase: time 0.02501/0.5592, allocations: 6.532 MB / 0.5025 GB, free: 2.109 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006774/0.5659, allocations: 2.152 MB / 0.5046 GB, free: 15.92 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.294e-06/0.5659, allocations: 0 / 0.5046 GB, free: 15.92 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003458/0.5694, allocations: 1.02 MB / 0.5056 GB, free: 14.9 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008255/0.5702, allocations: 132.9 kB / 0.5058 GB, free: 14.78 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05575/0.626, allocations: 16.14 MB / 0.5215 GB, free: 14.26 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003492/0.6263, allocations: 361.8 kB / 0.5219 GB, free: 13.88 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0003325/0.6267, allocations: 58.27 kB / 0.5219 GB, free: 13.82 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003747/0.627, allocations: 275.3 kB / 0.5222 GB, free: 13.55 MB / 446.1 MB Notification: Performance of SimCode: time 8.72e-07/0.627, allocations: 0 / 0.5222 GB, free: 13.55 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2546/0.8817, allocations: 27.32 MB / 0.5489 GB, free: 105.1 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.86/13.75, allocations: 4 kB / 0.5489 GB, free: 105.1 MB / 446.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate_fmu --startTime=0 --stopTime=200 --stepSize=0.0396747 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 16.066535235004267] Failed to read output from testmodel.py, exit status != 0: ['time', 'HeatCapacitor1.T'] 13.891038877016399 13.907941396 13.628971421 Calling exit ...