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.001154/0.001154, allocations: 112.9 kB / 16.62 MB, free: 6.793 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.001078/0.001078, allocations: 189.8 kB / 17.55 MB, free: 5.918 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.529/1.529, allocations: 205.1 MB / 223.4 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.001378/0.001379, allocations: 48.16 kB / 279.5 MB, free: 3.504 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1086, allocations: 46.63 MB / 326.1 MB, free: 4.805 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.005911/0.1146, allocations: 4.726 MB / 330.9 MB, free: 44 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00267/0.1173, allocations: 1.261 MB / 332.1 MB, free: 14.77 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000391/0.1177, allocations: 15.94 kB / 332.1 MB, free: 14.76 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002958/0.1181, allocations: 79.36 kB / 332.2 MB, free: 14.68 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00045/0.1185, allocations: 206.2 kB / 332.4 MB, free: 14.48 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007022/0.1192, allocations: 267.7 kB / 332.7 MB, free: 14.21 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00102/0.1203, allocations: 1.044 MB / 333.7 MB, free: 13.17 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004263/0.1207, allocations: 258.4 kB / 334 MB, free: 12.9 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004808/0.1212, allocations: 402.5 kB / 334.4 MB, free: 12.51 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004707/0.1217, allocations: 454.1 kB / 334.8 MB, free: 12.06 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001153/0.1218, allocations: 87.98 kB / 334.9 MB, free: 11.98 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000206/0.122, allocations: 112 kB / 335 MB, free: 11.87 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001674/0.1222, allocations: 187.3 kB / 335.2 MB, free: 11.68 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000393/0.1226, allocations: 429.9 kB / 335.6 MB, free: 11.26 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000918/0.1235, allocations: 0.9657 MB / 336.6 MB, free: 10.29 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.1235, allocations: 0 / 336.6 MB, free: 10.29 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.1235, allocations: 0 / 336.6 MB, free: 10.29 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.373e-05/0.1235, allocations: 0 / 336.6 MB, free: 10.29 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.002463/0.126, allocations: 1.207 MB / 337.8 MB, free: 9.016 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.645e-05/0.1261, allocations: 11.97 kB / 337.8 MB, free: 9.004 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001619/0.1262, allocations: 95.84 kB / 337.9 MB, free: 8.91 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005293/0.1268, allocations: 457.5 kB / 338.3 MB, free: 8.422 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.957e-05/0.1268, allocations: 45.69 kB / 338.4 MB, free: 8.379 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000101/0.1269, allocations: 68.36 kB / 338.4 MB, free: 8.312 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001294/0.1282, allocations: 0.6392 MB / 339.1 MB, free: 7.664 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.036e-05/0.1283, allocations: 0 / 339.1 MB, free: 7.664 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.641e-05/0.1283, allocations: 28 kB / 339.1 MB, free: 7.637 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.249e-05/0.1284, allocations: 12 kB / 339.1 MB, free: 7.625 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001531/0.1299, allocations: 0.6726 MB / 339.8 MB, free: 6.953 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.003761/0.1337, allocations: 2.339 MB / 342.1 MB, free: 4.465 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001441/0.1351, allocations: 0.5865 MB / 342.7 MB, free: 3.867 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006993/0.1358, allocations: 334 kB / 343 MB, free: 3.539 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.617e-05/0.1359, allocations: 8.438 kB / 343.1 MB, free: 3.531 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001034/0.1369, allocations: 429.4 kB / 343.5 MB, free: 3.086 MB / 286.1 MB Notification: Performance of pre-optimization done (n=54): time 2.555e-06/0.137, allocations: 3.938 kB / 343.5 MB, free: 3.082 MB / 286.1 MB Notification: Performance of matching and sorting (n=94): time 0.06765/0.2046, allocations: 15.39 MB / 358.9 MB, free: 3.598 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.725e-05/0.2048, allocations: 149.4 kB / 359 MB, free: 3.418 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005924/0.2054, allocations: 498.8 kB / 359.5 MB, free: 2.922 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001927/0.2056, allocations: 45.7 kB / 359.5 MB, free: 2.871 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002495/0.2058, allocations: 363.9 kB / 359.9 MB, free: 2.508 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002711/0.2061, allocations: 311.5 kB / 360.2 MB, free: 2.199 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003526/0.2065, allocations: 178.5 kB / 360.4 MB, free: 2.02 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001674/0.2066, allocations: 382.8 kB / 360.7 MB, free: 1.637 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00191/0.2085, allocations: 0.7163 MB / 361.5 MB, free: 0.9219 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001995/0.2106, allocations: 0.9265 MB / 362.4 MB, free: 15.91 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003725/0.2143, allocations: 1.662 MB / 364.1 MB, free: 14.17 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.192e-06/0.2143, allocations: 7.938 kB / 364.1 MB, free: 14.16 MB / 318.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02206/0.2364, allocations: 5.347 MB / 369.4 MB, free: 8.781 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001099/0.2365, allocations: 63.39 kB / 369.5 MB, free: 8.707 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.629e-05/0.2366, allocations: 4 kB / 369.5 MB, free: 8.703 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03241/0.269, allocations: 6.832 MB / 376.3 MB, free: 1.855 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007519/0.2698, allocations: 147.7 kB / 376.5 MB, free: 1.711 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.178/0.4478, allocations: 3.005 MB / 379.5 MB, free: 53.04 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001827/0.4496, allocations: 179.5 kB / 379.6 MB, free: 53.04 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001597/0.4498, allocations: 48 kB / 379.7 MB, free: 53.04 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.0004657/0.4503, allocations: 227.2 kB / 379.9 MB, free: 52.93 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001767/0.4505, allocations: 73.94 kB / 380 MB, free: 52.93 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02315/0.4736, allocations: 5.097 MB / 385.1 MB, free: 52.4 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.336e-05/0.4737, allocations: 12.7 kB / 385.1 MB, free: 52.4 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.293e-05/0.4737, allocations: 1.625 kB / 385.1 MB, free: 52.4 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.601e-05/0.4738, allocations: 7.875 kB / 385.1 MB, free: 52.4 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001648/0.4754, allocations: 1.085 MB / 386.2 MB, free: 51.83 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.81e-06/0.4754, allocations: 4.469 kB / 386.2 MB, free: 51.83 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004979/0.476, allocations: 94.86 kB / 386.3 MB, free: 51.83 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03163/0.5076, allocations: 6.791 MB / 393.1 MB, free: 50.4 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002449/0.5079, allocations: 19.86 kB / 393.1 MB, free: 50.39 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004873/0.5128, allocations: 3.04 MB / 396.1 MB, free: 48.36 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.5128, allocations: 0 / 396.1 MB, free: 48.36 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02113/0.5339, allocations: 5.982 MB / 402.1 MB, free: 42.94 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003071/0.5343, allocations: 139.4 kB / 402.2 MB, free: 42.79 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001775/0.5345, allocations: 27.98 kB / 402.3 MB, free: 42.77 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001286/0.5358, allocations: 168.5 kB / 402.4 MB, free: 42.6 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002721/0.5361, allocations: 100.9 kB / 402.5 MB, free: 42.5 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.77e-05/0.5362, allocations: 27.98 kB / 402.6 MB, free: 42.48 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003462/0.5365, allocations: 334.9 kB / 402.9 MB, free: 42.15 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5365, allocations: 4 kB / 402.9 MB, free: 42.15 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007452/0.5373, allocations: 254.2 kB / 403.1 MB, free: 41.9 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.0002735/0.5376, allocations: 130.8 kB / 403.3 MB, free: 41.77 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.005333/0.5429, allocations: 2.055 MB / 405.3 MB, free: 39.69 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.572e-06/0.5429, allocations: 320 / 405.3 MB, free: 39.69 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002919/0.5459, allocations: 1.081 MB / 406.4 MB, free: 38.61 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007793/0.5467, allocations: 133.3 kB / 406.5 MB, free: 38.49 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003206/0.5499, allocations: 2.087 MB / 408.6 MB, free: 36.41 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002773/0.5502, allocations: 0.9375 MB / 409.6 MB, free: 35.45 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002762/0.5505, allocations: 54.08 kB / 409.6 MB, free: 35.4 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001044/0.5506, allocations: 39.38 kB / 409.6 MB, free: 35.36 MB / 318.1 MB Notification: Performance of SimCode: time 1.152e-06/0.5506, allocations: 0 / 409.6 MB, free: 35.36 MB / 318.1 MB Notification: Performance of Templates: time 0.02464/0.5752, allocations: 22.19 MB / 431.8 MB, free: 13.16 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)