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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0006796/0.0006796, allocations: 76.06 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007634/0.0007634, allocations: 149.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8722/0.8722, allocations: 173.4 MB / 200.5 MB, free: 9.422 MB / 186.7 MB " [Timeout remaining time 179] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.623e-06/1.623e-06, allocations: 0 / 318.5 MB, free: 6.332 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.602e-05/1.764e-05, allocations: 2.281 kB / 318.5 MB, free: 6.328 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.003759/0.003777, allocations: 4.397 MB / 322.9 MB, free: 1.906 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00138/0.005157, allocations: 1.237 MB / 324.1 MB, free: 0.6602 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000195/0.005352, allocations: 15.94 kB / 324.1 MB, free: 0.6445 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002115/0.005564, allocations: 130.6 kB / 324.2 MB, free: 0.5156 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002853/0.005849, allocations: 281.4 kB / 324.5 MB, free: 244 kB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004554/0.006304, allocations: 311.4 kB / 324.8 MB, free: 15.93 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006352/0.00694, allocations: 1.134 MB / 325.9 MB, free: 14.8 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002557/0.007195, allocations: 175 kB / 326.1 MB, free: 14.61 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004162/0.007611, allocations: 0.608 MB / 326.7 MB, free: 14 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003067/0.007918, allocations: 366.9 kB / 327.1 MB, free: 13.64 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000343/0.008261, allocations: 92 kB / 327.2 MB, free: 13.55 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001315/0.008393, allocations: 116 kB / 327.3 MB, free: 13.44 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001057/0.008498, allocations: 199.2 kB / 327.5 MB, free: 13.24 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002082/0.008707, allocations: 319.2 kB / 327.8 MB, free: 12.93 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006856/0.009392, allocations: 1.086 MB / 328.9 MB, free: 11.84 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.009397, allocations: 0 / 328.9 MB, free: 11.84 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.41e-07/0.009397, allocations: 0 / 328.9 MB, free: 11.84 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.606e-06/0.009406, allocations: 0 / 328.9 MB, free: 11.84 MB / 298.7 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.00148/0.01089, allocations: 1.205 MB / 330.1 MB, free: 10.59 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.922e-05/0.01093, allocations: 8.922 kB / 330.1 MB, free: 10.58 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.337e-05/0.01103, allocations: 110.7 kB / 330.2 MB, free: 10.46 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001152/0.01114, allocations: 100.3 kB / 330.3 MB, free: 10.36 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004861/0.01163, allocations: 425.4 kB / 330.7 MB, free: 9.922 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.398e-05/0.01166, allocations: 45.62 kB / 330.8 MB, free: 9.875 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.867e-05/0.01174, allocations: 72.36 kB / 330.8 MB, free: 9.805 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008932/0.01264, allocations: 0.7728 MB / 331.6 MB, free: 8.996 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.103e-05/0.01266, allocations: 192 / 331.6 MB, free: 8.996 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.47e-05/0.0127, allocations: 32.12 kB / 331.6 MB, free: 8.965 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.37e-05/0.01271, allocations: 16 kB / 331.7 MB, free: 8.949 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009533/0.01367, allocations: 0.6922 MB / 332.3 MB, free: 8.258 MB / 298.7 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.00229/0.01596, allocations: 1.886 MB / 334.2 MB, free: 6.281 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001279/0.01724, allocations: 0.5595 MB / 334.8 MB, free: 5.715 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004067/0.01764, allocations: 318.7 kB / 335.1 MB, free: 5.398 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.002e-05/0.01768, allocations: 12.48 kB / 335.1 MB, free: 5.383 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000588/0.01827, allocations: 0.5458 MB / 335.7 MB, free: 4.785 MB / 298.7 MB Notification: Performance of pre-optimization done (n=54): time 2.124e-06/0.01827, allocations: 0 / 335.7 MB, free: 4.785 MB / 298.7 MB Notification: Performance of matching and sorting (n=94): time 0.03239/0.05066, allocations: 15.24 MB / 350.9 MB, free: 5.484 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.761e-05/0.05074, allocations: 145.5 kB / 351 MB, free: 5.309 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004027/0.05114, allocations: 0.5302 MB / 351.6 MB, free: 4.773 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.604e-05/0.05121, allocations: 41.7 kB / 351.6 MB, free: 4.727 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001975/0.0514, allocations: 392.7 kB / 352 MB, free: 4.336 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001814/0.05159, allocations: 325.2 kB / 352.3 MB, free: 4.016 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002336/0.05182, allocations: 186.6 kB / 352.5 MB, free: 3.828 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001165/0.05194, allocations: 382.8 kB / 352.9 MB, free: 3.445 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001134/0.05307, allocations: 0.7746 MB / 353.6 MB, free: 2.656 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001227/0.0543, allocations: 1.092 MB / 354.7 MB, free: 1.445 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002613/0.05691, allocations: 1.708 MB / 356.4 MB, free: 15.64 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/0.05691, allocations: 0 / 356.4 MB, free: 15.64 MB / 330.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.01106/0.06797, allocations: 5.409 MB / 361.8 MB, free: 10.19 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.211e-05/0.06801, allocations: 63.39 kB / 361.9 MB, free: 10.12 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.161e-05/0.06802, allocations: 4 kB / 361.9 MB, free: 10.11 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01551/0.08353, allocations: 6.849 MB / 368.8 MB, free: 3.25 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003443/0.08387, allocations: 143.8 kB / 368.9 MB, free: 3.109 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003869/0.08774, allocations: 3.161 MB / 372.1 MB, free: 15.89 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007669/0.08851, allocations: 179.8 kB / 372.2 MB, free: 15.71 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.564e-05/0.08858, allocations: 47.97 kB / 372.3 MB, free: 15.67 MB / 346.7 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.0002875/0.08886, allocations: 225.6 kB / 372.5 MB, free: 15.44 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.762e-05/0.08896, allocations: 87.48 kB / 372.6 MB, free: 15.35 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01068/0.09964, allocations: 5.076 MB / 377.7 MB, free: 10.25 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.065e-06/0.09965, allocations: 12 kB / 377.7 MB, free: 10.24 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.613e-06/0.09965, allocations: 4 kB / 377.7 MB, free: 10.23 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.608e-06/0.09966, allocations: 8.016 kB / 377.7 MB, free: 10.23 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007977/0.1005, allocations: 0.851 MB / 378.5 MB, free: 9.336 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-06/0.1005, allocations: 0 / 378.5 MB, free: 9.336 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002475/0.1007, allocations: 95.83 kB / 378.6 MB, free: 9.242 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01531/0.116, allocations: 6.789 MB / 385.4 MB, free: 2.438 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.839e-05/0.1161, allocations: 23.98 kB / 385.4 MB, free: 2.414 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003325/0.1194, allocations: 3.041 MB / 388.5 MB, free: 15.32 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.1194, allocations: 4 kB / 388.5 MB, free: 15.31 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01201/0.1314, allocations: 5.945 MB / 394.4 MB, free: 9.34 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001096/0.1315, allocations: 79.45 kB / 394.5 MB, free: 9.262 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.263e-05/0.1316, allocations: 23.94 kB / 394.5 MB, free: 9.238 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006059/0.1322, allocations: 163.8 kB / 394.7 MB, free: 9.078 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000172/0.1324, allocations: 108.8 kB / 394.8 MB, free: 8.973 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.108e-05/0.1325, allocations: 31.97 kB / 394.8 MB, free: 8.941 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002585/0.1327, allocations: 358.8 kB / 395.2 MB, free: 8.59 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1327, allocations: 0 / 395.2 MB, free: 8.59 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004952/0.1332, allocations: 256 kB / 395.4 MB, free: 8.34 MB / 362.7 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.01233/0.1455, allocations: 6.536 MB / 402 MB, free: 1.758 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003627/0.1492, allocations: 2.156 MB / 404.1 MB, free: 15.57 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.1492, allocations: 0 / 404.1 MB, free: 15.57 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001743/0.1509, allocations: 1.016 MB / 405.1 MB, free: 14.55 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004589/0.1514, allocations: 134.1 kB / 405.3 MB, free: 14.42 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0282/0.1796, allocations: 16.13 MB / 421.4 MB, free: 13.91 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002075/0.1798, allocations: 357.8 kB / 421.8 MB, free: 13.54 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002041/0.18, allocations: 54.28 kB / 421.8 MB, free: 13.48 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002419/0.1802, allocations: 276.4 kB / 422.1 MB, free: 13.21 MB / 394.7 MB Notification: Performance of SimCode: time 1.142e-06/0.1802, allocations: 0 / 422.1 MB, free: 13.21 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03493/0.2152, allocations: 27.02 MB / 449.1 MB, free: 2.445 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.531/8.747, allocations: 11.94 kB / 449.1 MB, free: 2.434 MB / 410.7 MB " [Timeout remaining time 651] (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/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 --stepSize=0.0396747 --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) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.48698501009494] Failed to read output from testmodel.py, exit status != 0: ['time', 'HeatCapacitor1.T'] 8.852267886511981 8.98509729 8.97438998 Calling exit ...