Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingPNP_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate") translateModel(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001248/0.001248, allocations: 107.4 kB / 16.92 MB, free: 5.66 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.001416/0.001416, allocations: 190.5 kB / 17.85 MB, free: 5.176 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.405/1.405, allocations: 205.1 MB / 223.7 MB, free: 12.28 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001407/0.001407, allocations: 59.92 kB / 280 MB, free: 3.18 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1031, allocations: 46.62 MB / 326.6 MB, free: 4.488 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.005621/0.1087, allocations: 4.7 MB / 331.3 MB, free: 15.75 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002616/0.1114, allocations: 1.272 MB / 332.6 MB, free: 14.47 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004628/0.1119, allocations: 12 kB / 332.6 MB, free: 14.46 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003881/0.1123, allocations: 110.8 kB / 332.7 MB, free: 14.35 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006494/0.113, allocations: 249.7 kB / 333 MB, free: 14.1 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00116/0.1141, allocations: 303.5 kB / 333.3 MB, free: 13.8 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001389/0.1156, allocations: 1.041 MB / 334.3 MB, free: 12.76 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004819/0.116, allocations: 258.4 kB / 334.5 MB, free: 12.5 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005511/0.1166, allocations: 406.6 kB / 334.9 MB, free: 12.1 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005519/0.1172, allocations: 454.1 kB / 335.4 MB, free: 11.65 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001301/0.1173, allocations: 88 kB / 335.5 MB, free: 11.57 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002556/0.1176, allocations: 104 kB / 335.6 MB, free: 11.46 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001811/0.1178, allocations: 187.3 kB / 335.8 MB, free: 11.28 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004328/0.1182, allocations: 433.9 kB / 336.2 MB, free: 10.86 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001034/0.1192, allocations: 0.958 MB / 337.1 MB, free: 9.895 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.174e-05/0.1193, allocations: 0 / 337.1 MB, free: 9.895 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.216e-06/0.1193, allocations: 7.875 kB / 337.1 MB, free: 9.887 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.122e-05/0.1193, allocations: 4 kB / 337.1 MB, free: 9.883 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: 152 * Number of variables: 152 Notification: Performance of Generate backend data structure: time 0.002407/0.1217, allocations: 1.207 MB / 338.4 MB, free: 8.605 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.224e-05/0.1218, allocations: 12.03 kB / 338.4 MB, free: 8.594 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001519/0.1219, allocations: 87.91 kB / 338.5 MB, free: 8.508 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005648/0.1225, allocations: 461.5 kB / 338.9 MB, free: 8.016 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.979e-05/0.1226, allocations: 45.69 kB / 338.9 MB, free: 7.973 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001113/0.1227, allocations: 60.38 kB / 339 MB, free: 7.914 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001355/0.124, allocations: 0.6392 MB / 339.6 MB, free: 7.27 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.442e-05/0.1241, allocations: 7.969 kB / 339.7 MB, free: 7.262 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.852e-05/0.1242, allocations: 28 kB / 339.7 MB, free: 7.234 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.657e-05/0.1242, allocations: 12 kB / 339.7 MB, free: 7.223 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001621/0.1258, allocations: 0.6805 MB / 340.4 MB, free: 6.539 MB / 286.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.003592/0.1294, allocations: 2.323 MB / 342.7 MB, free: 4.066 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001443/0.1309, allocations: 0.5904 MB / 343.3 MB, free: 3.465 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007724/0.1317, allocations: 334 kB / 343.6 MB, free: 3.137 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.967e-05/0.1317, allocations: 12.41 kB / 343.6 MB, free: 3.125 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001025/0.1327, allocations: 425.4 kB / 344 MB, free: 2.684 MB / 286.1 MB Notification: Performance of pre-optimization done (n=54): time 2.275e-06/0.1328, allocations: 4 kB / 344 MB, free: 2.68 MB / 286.1 MB Notification: Performance of matching and sorting (n=94): time 0.06668/0.1994, allocations: 15.4 MB / 359.4 MB, free: 3.184 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001012/0.1996, allocations: 141.5 kB / 359.6 MB, free: 3.012 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006918/0.2003, allocations: 498.8 kB / 360.1 MB, free: 2.516 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002209/0.2005, allocations: 41.7 kB / 360.1 MB, free: 2.469 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002889/0.2008, allocations: 375.8 kB / 360.5 MB, free: 2.094 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000314/0.2011, allocations: 311.5 kB / 360.8 MB, free: 1.785 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003457/0.2015, allocations: 182.5 kB / 361 MB, free: 1.602 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001644/0.2017, allocations: 378.8 kB / 361.3 MB, free: 1.223 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002051/0.2037, allocations: 0.7241 MB / 362.1 MB, free: 0.5 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002079/0.2058, allocations: 0.9265 MB / 363 MB, free: 15.48 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003875/0.2097, allocations: 1.662 MB / 364.6 MB, free: 13.74 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.629e-06/0.2097, allocations: 0 / 364.6 MB, free: 13.74 MB / 318.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02241/0.2322, allocations: 5.339 MB / 370 MB, free: 8.375 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.396e-05/0.2323, allocations: 67.53 kB / 370 MB, free: 8.297 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.859e-05/0.2323, allocations: 8 kB / 370.1 MB, free: 8.289 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03193/0.2642, allocations: 6.832 MB / 376.9 MB, free: 1.441 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000686/0.265, allocations: 143.7 kB / 377 MB, free: 1.301 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2134/0.4784, allocations: 3.004 MB / 380 MB, free: 52.95 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002023/0.4805, allocations: 175.8 kB / 380.2 MB, free: 52.95 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001611/0.4806, allocations: 48.41 kB / 380.3 MB, free: 52.95 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (50): * Single equations (assignments): 46 * 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.0005289/0.4812, allocations: 220.5 kB / 380.5 MB, free: 52.84 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001953/0.4814, allocations: 77.41 kB / 380.5 MB, free: 52.84 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02304/0.5044, allocations: 5.097 MB / 385.6 MB, free: 52.16 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.217e-05/0.5045, allocations: 10.34 kB / 385.7 MB, free: 52.16 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.137e-06/0.5045, allocations: 3.969 kB / 385.7 MB, free: 52.16 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.842e-05/0.5046, allocations: 6.562 kB / 385.7 MB, free: 52.16 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001485/0.5061, allocations: 1.092 MB / 386.8 MB, free: 51.59 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.554e-06/0.5061, allocations: 0 / 386.8 MB, free: 51.59 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005212/0.5066, allocations: 89.89 kB / 386.8 MB, free: 51.59 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0314/0.538, allocations: 6.786 MB / 393.6 MB, free: 50.11 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002625/0.5383, allocations: 27.53 kB / 393.7 MB, free: 50.09 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005263/0.5436, allocations: 3.041 MB / 396.7 MB, free: 48.05 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.5436, allocations: 0 / 396.7 MB, free: 48.05 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02148/0.5651, allocations: 5.98 MB / 402.7 MB, free: 42.53 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002224/0.5654, allocations: 147.3 kB / 402.8 MB, free: 42.38 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001656/0.5656, allocations: 16 kB / 402.8 MB, free: 42.36 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001278/0.5669, allocations: 171.8 kB / 403 MB, free: 42.19 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002502/0.5671, allocations: 92.88 kB / 403.1 MB, free: 42.1 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.7e-05/0.5672, allocations: 39.8 kB / 403.1 MB, free: 42.07 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003378/0.5676, allocations: 330.9 kB / 403.5 MB, free: 41.75 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.5676, allocations: 4 kB / 403.5 MB, free: 41.74 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008889/0.5685, allocations: 253 kB / 403.7 MB, free: 41.5 MB / 318.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.0002665/0.5688, allocations: 138.2 kB / 403.8 MB, free: 41.35 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.005479/0.5742, allocations: 2.05 MB / 405.9 MB, free: 39.29 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.5743, allocations: 256 / 405.9 MB, free: 39.29 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00318/0.5775, allocations: 1.087 MB / 407 MB, free: 38.2 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007499/0.5782, allocations: 139 kB / 407.1 MB, free: 38.08 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003089/0.5813, allocations: 1.756 MB / 408.9 MB, free: 36.33 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002635/0.5816, allocations: 0.9453 MB / 409.8 MB, free: 35.36 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002438/0.5819, allocations: 50.08 kB / 409.9 MB, free: 35.31 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.949e-05/0.582, allocations: 39.44 kB / 409.9 MB, free: 35.27 MB / 318.1 MB Notification: Performance of SimCode: time 6.71e-07/0.582, allocations: 0 / 409.9 MB, free: 35.27 MB / 318.1 MB Notification: Performance of Templates: time 0.02528/0.6073, allocations: 22.55 MB / 432.4 MB, free: 12.72 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1)