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.001515/0.001515, allocations: 111.3 kB / 16.51 MB, free: 6.707 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.001542/0.001542, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.473/1.473, allocations: 205.1 MB / 223.3 MB, free: 12.48 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.001204/0.001204, allocations: 52.3 kB / 279.3 MB, free: 3.582 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1153/0.1165, allocations: 46.62 MB / 326 MB, free: 4.891 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.00593/0.1225, allocations: 4.706 MB / 330.7 MB, free: 152 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003002/0.1255, allocations: 1.276 MB / 331.9 MB, free: 14.86 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003562/0.1259, allocations: 11.94 kB / 332 MB, free: 14.85 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000299/0.1262, allocations: 79.36 kB / 332 MB, free: 14.77 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004162/0.1267, allocations: 214.2 kB / 332.2 MB, free: 14.56 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000642/0.1273, allocations: 263.7 kB / 332.5 MB, free: 14.3 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008291/0.1282, allocations: 0.9859 MB / 333.5 MB, free: 13.32 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003845/0.1286, allocations: 219.3 kB / 333.7 MB, free: 13.09 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004345/0.129, allocations: 370.5 kB / 334.1 MB, free: 12.72 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005006/0.1295, allocations: 430.1 kB / 334.5 MB, free: 12.3 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001066/0.1296, allocations: 52 kB / 334.5 MB, free: 12.25 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000235/0.1299, allocations: 75.98 kB / 334.6 MB, free: 12.18 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001665/0.13, allocations: 159.3 kB / 334.8 MB, free: 12.02 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004304/0.1305, allocations: 397.9 kB / 335.1 MB, free: 11.63 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008914/0.1314, allocations: 0.9267 MB / 336.1 MB, free: 10.7 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.137e-06/0.1314, allocations: 0 / 336.1 MB, free: 10.7 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.1314, allocations: 0 / 336.1 MB, free: 10.7 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.326e-05/0.1314, allocations: 0 / 336.1 MB, free: 10.7 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.002795/0.1342, allocations: 1.219 MB / 337.3 MB, free: 9.414 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.864e-05/0.1343, allocations: 8.031 kB / 337.3 MB, free: 9.406 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001896/0.1345, allocations: 87.91 kB / 337.4 MB, free: 9.32 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006785/0.1352, allocations: 465.4 kB / 337.8 MB, free: 8.824 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.38e-05/0.1352, allocations: 45.69 kB / 337.9 MB, free: 8.781 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001099/0.1353, allocations: 56.38 kB / 337.9 MB, free: 8.727 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001405/0.1368, allocations: 0.6431 MB / 338.6 MB, free: 8.074 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.499e-05/0.1368, allocations: 4 kB / 338.6 MB, free: 8.07 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.525e-05/0.1369, allocations: 24 kB / 338.6 MB, free: 8.047 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.722e-05/0.1369, allocations: 16 kB / 338.6 MB, free: 8.031 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001687/0.1386, allocations: 0.6804 MB / 339.3 MB, free: 7.352 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.003945/0.1426, allocations: 2.327 MB / 341.6 MB, free: 4.871 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001408/0.144, allocations: 0.5827 MB / 342.2 MB, free: 4.277 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007005/0.1447, allocations: 330 kB / 342.5 MB, free: 3.953 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.041e-05/0.1448, allocations: 8.422 kB / 342.5 MB, free: 3.945 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009938/0.1458, allocations: 437.3 kB / 343 MB, free: 3.492 MB / 286.1 MB Notification: Performance of pre-optimization done (n=54): time 2.435e-06/0.1458, allocations: 0 / 343 MB, free: 3.492 MB / 286.1 MB Notification: Performance of matching and sorting (n=94): time 0.0684/0.2142, allocations: 15.4 MB / 358.4 MB, free: 3.996 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001283/0.2144, allocations: 141.5 kB / 358.5 MB, free: 3.824 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006935/0.2151, allocations: 498.8 kB / 359 MB, free: 3.332 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002027/0.2153, allocations: 53.69 kB / 359.1 MB, free: 3.273 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002803/0.2156, allocations: 367.9 kB / 359.4 MB, free: 2.906 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002882/0.2159, allocations: 307.5 kB / 359.7 MB, free: 2.602 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003674/0.2163, allocations: 182.5 kB / 359.9 MB, free: 2.418 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001761/0.2164, allocations: 382.8 kB / 360.3 MB, free: 2.035 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001959/0.2184, allocations: 0.7163 MB / 361 MB, free: 1.32 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002093/0.2205, allocations: 0.9265 MB / 361.9 MB, free: 320 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00396/0.2245, allocations: 1.666 MB / 363.6 MB, free: 14.57 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.2245, allocations: 0 / 363.6 MB, free: 14.57 MB / 318.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.0228/0.2473, allocations: 5.339 MB / 368.9 MB, free: 9.195 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001027/0.2475, allocations: 63.41 kB / 369 MB, free: 9.121 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.456e-05/0.2475, allocations: 8 kB / 369 MB, free: 9.113 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0341/0.2816, allocations: 6.828 MB / 375.8 MB, free: 2.27 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007443/0.2824, allocations: 143.7 kB / 375.9 MB, free: 2.129 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2487/0.5311, allocations: 3.009 MB / 379 MB, free: 52.96 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00197/0.5331, allocations: 177.5 kB / 379.1 MB, free: 52.96 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001262/0.5333, allocations: 50.12 kB / 379.2 MB, free: 52.96 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.0004944/0.5338, allocations: 223.8 kB / 379.4 MB, free: 52.84 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001857/0.534, allocations: 78.11 kB / 379.5 MB, free: 52.84 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02525/0.5592, allocations: 5.103 MB / 384.6 MB, free: 52.4 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.242e-05/0.5593, allocations: 9.375 kB / 384.6 MB, free: 52.4 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.305e-05/0.5593, allocations: 1.219 kB / 384.6 MB, free: 52.4 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-05/0.5593, allocations: 3.938 kB / 384.6 MB, free: 52.4 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001928/0.5613, allocations: 1.079 MB / 385.7 MB, free: 51.84 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.897e-06/0.5613, allocations: 6.938 kB / 385.7 MB, free: 51.84 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005267/0.5618, allocations: 93.06 kB / 385.8 MB, free: 51.84 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03356/0.5954, allocations: 6.795 MB / 392.6 MB, free: 50.46 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002654/0.5957, allocations: 27.19 kB / 392.6 MB, free: 50.44 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005077/0.6008, allocations: 3.044 MB / 395.6 MB, free: 48.41 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.556e-06/0.6008, allocations: 0 / 395.6 MB, free: 48.41 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02145/0.6223, allocations: 5.978 MB / 401.6 MB, free: 43.22 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002514/0.6226, allocations: 144.5 kB / 401.8 MB, free: 43.08 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001582/0.6228, allocations: 16 kB / 401.8 MB, free: 43.06 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001264/0.624, allocations: 176.4 kB / 401.9 MB, free: 42.89 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002595/0.6243, allocations: 92.86 kB / 402 MB, free: 42.8 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.474e-05/0.6244, allocations: 35.98 kB / 402.1 MB, free: 42.77 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003636/0.6248, allocations: 334.9 kB / 402.4 MB, free: 42.44 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6248, allocations: 4 kB / 402.4 MB, free: 42.44 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000725/0.6255, allocations: 256 kB / 402.6 MB, free: 42.19 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.0002429/0.6258, allocations: 134.5 kB / 402.8 MB, free: 42.05 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.005063/0.6308, allocations: 2.031 MB / 404.8 MB, free: 40 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.6309, allocations: 5.875 kB / 404.8 MB, free: 40 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002939/0.6338, allocations: 1.07 MB / 405.9 MB, free: 38.93 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000646/0.6345, allocations: 120.5 kB / 406 MB, free: 38.81 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003093/0.6376, allocations: 2.094 MB / 408.1 MB, free: 36.73 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003147/0.6379, allocations: 0.9386 MB / 409 MB, free: 35.77 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002545/0.6382, allocations: 55.16 kB / 409.1 MB, free: 35.71 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001147/0.6383, allocations: 31.44 kB / 409.1 MB, free: 35.68 MB / 318.1 MB Notification: Performance of SimCode: time 2.244e-06/0.6383, allocations: 0 / 409.1 MB, free: 35.68 MB / 318.1 MB Notification: Performance of Templates: time 0.02411/0.6624, allocations: 20.85 MB / 430 MB, free: 14.83 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)