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.0009717/0.0009717, allocations: 87.52 kB / 16.31 MB, free: 5.637 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.001017/0.001017, allocations: 177.7 kB / 17.2 MB, free: 5.559 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.465/1.465, allocations: 205.4 MB / 223.4 MB, free: 5.555 MB / 174.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.0006294/0.0006295, allocations: 12 kB / 280.1 MB, free: 12.84 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2894/0.29, allocations: 47.59 MB / 327.7 MB, free: 1.641 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.005238/0.2953, allocations: 4.063 MB / 331.8 MB, free: 14.43 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003401/0.2988, allocations: 1.226 MB / 333 MB, free: 13.4 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001032/0.2998, allocations: 14.25 kB / 333 MB, free: 13.4 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004839/0.3003, allocations: 80.05 kB / 333.1 MB, free: 13.33 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009993/0.3013, allocations: 208.4 kB / 333.3 MB, free: 13.15 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009278/0.3023, allocations: 226.2 kB / 333.5 MB, free: 12.96 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001631/0.3039, allocations: 0.9395 MB / 334.5 MB, free: 12.39 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005233/0.3045, allocations: 199 kB / 334.7 MB, free: 12.25 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008655/0.3054, allocations: 343.9 kB / 335 MB, free: 12.07 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001012/0.3064, allocations: 399.2 kB / 335.4 MB, free: 11.81 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002371/0.3066, allocations: 45.03 kB / 335.4 MB, free: 11.81 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004534/0.3071, allocations: 67.88 kB / 335.5 MB, free: 11.8 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002189/0.3073, allocations: 149.5 kB / 335.7 MB, free: 11.68 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003905/0.3077, allocations: 166 kB / 335.8 MB, free: 11.53 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008653/0.3086, allocations: 0.7221 MB / 336.5 MB, free: 10.8 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.69e-06/0.3086, allocations: 0 / 336.5 MB, free: 10.8 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.3086, allocations: 3.938 kB / 336.5 MB, free: 10.8 MB / 270.1 MB Notification: Performance of Transformations before backend: time 2.87e-05/0.3087, allocations: 0 / 336.5 MB, free: 10.8 MB / 270.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.002392/0.3111, allocations: 1.11 MB / 337.6 MB, free: 9.625 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.829e-05/0.3111, allocations: 12.03 kB / 337.7 MB, free: 9.613 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000262/0.3114, allocations: 90.97 kB / 337.7 MB, free: 9.523 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000701/0.3121, allocations: 440.5 kB / 338.2 MB, free: 9.055 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.381e-05/0.3122, allocations: 57.2 kB / 338.2 MB, free: 9 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000125/0.3123, allocations: 63.91 kB / 338.3 MB, free: 8.938 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001444/0.3138, allocations: 0.6623 MB / 339 MB, free: 8.266 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.961e-05/0.3138, allocations: 0 / 339 MB, free: 8.266 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.39e-05/0.3139, allocations: 24 kB / 339 MB, free: 8.242 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.375e-05/0.3139, allocations: 16 kB / 339 MB, free: 8.227 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001745/0.3157, allocations: 0.739 MB / 339.7 MB, free: 7.488 MB / 270.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.004478/0.3202, allocations: 2.363 MB / 342.1 MB, free: 4.969 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001449/0.3216, allocations: 0.6374 MB / 342.7 MB, free: 4.324 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007579/0.3224, allocations: 361.9 kB / 343.1 MB, free: 3.969 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.824e-05/0.3225, allocations: 8.422 kB / 343.1 MB, free: 3.961 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001018/0.3235, allocations: 449.5 kB / 343.5 MB, free: 3.496 MB / 270.1 MB Notification: Performance of pre-optimization done (n=54): time 2.244e-06/0.3235, allocations: 0 / 343.5 MB, free: 3.496 MB / 270.1 MB Notification: Performance of matching and sorting (n=94): time 0.06757/0.3911, allocations: 16.74 MB / 360.3 MB, free: 2.656 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001098/0.3912, allocations: 137.5 kB / 360.4 MB, free: 2.492 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006776/0.3919, allocations: 490.9 kB / 360.9 MB, free: 2.008 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002243/0.3922, allocations: 49.7 kB / 360.9 MB, free: 1.953 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003107/0.3925, allocations: 367.9 kB / 361.3 MB, free: 1.586 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003978/0.3929, allocations: 307.5 kB / 361.6 MB, free: 1.281 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.53e-05/0.393, allocations: 20 kB / 361.6 MB, free: 1.262 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000189/0.3932, allocations: 382.8 kB / 362 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002019/0.3952, allocations: 0.7943 MB / 362.8 MB, free: 88 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002121/0.3974, allocations: 1.001 MB / 363.8 MB, free: 15 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002024/0.3994, allocations: 0.8768 MB / 364.7 MB, free: 14.12 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.456e-06/0.3994, allocations: 4 kB / 364.7 MB, free: 14.11 MB / 302.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02181/0.4213, allocations: 5.621 MB / 370.3 MB, free: 8.465 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.394e-05/0.4214, allocations: 63.39 kB / 370.4 MB, free: 8.391 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.064e-05/0.4214, allocations: 8 kB / 370.4 MB, free: 8.383 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03262/0.4541, allocations: 7.317 MB / 377.7 MB, free: 1.051 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007165/0.4548, allocations: 175.7 kB / 377.8 MB, free: 0.8789 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006568/0.4614, allocations: 3.2 MB / 381 MB, free: 13.62 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001525/0.463, allocations: 223.8 kB / 381.3 MB, free: 13.4 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001523/0.4632, allocations: 43.98 kB / 381.3 MB, free: 13.36 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 ($whenCondition2,$whenCondition1,$PRE.V1.signalSource.T_start,V1.signalSource.T_start,$PRE.V1.signalSource.count,V1.signalSource.count,$PRE.V2.signalSource.T_start,V2.signalSource.T_start,$PRE.V2.signalSource.count,V2.signalSource.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {5 32,5 32} Notification: Performance of prepare postOptimizeDAE: time 0.0004499/0.4636, allocations: 225.6 kB / 381.5 MB, free: 13.13 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001842/0.4638, allocations: 75.06 kB / 381.6 MB, free: 13.05 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02068/0.4845, allocations: 5.458 MB / 387.1 MB, free: 7.566 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.592e-05/0.4846, allocations: 35.77 kB / 387.1 MB, free: 7.531 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.145e-06/0.4846, allocations: 0 / 387.1 MB, free: 7.531 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.267e-05/0.4846, allocations: 4.031 kB / 387.1 MB, free: 7.527 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001611/0.4862, allocations: 1.094 MB / 388.2 MB, free: 6.387 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.827e-06/0.4863, allocations: 0 / 388.2 MB, free: 6.387 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005096/0.4868, allocations: 123.9 kB / 388.3 MB, free: 6.266 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0319/0.5187, allocations: 7.285 MB / 395.6 MB, free: 14.96 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001896/0.5189, allocations: 27.97 kB / 395.6 MB, free: 14.94 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005344/0.5243, allocations: 3.09 MB / 398.7 MB, free: 11.79 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/0.5243, allocations: 4 kB / 398.7 MB, free: 11.79 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02287/0.5472, allocations: 6.417 MB / 405.1 MB, free: 5.336 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002588/0.5475, allocations: 140.2 kB / 405.3 MB, free: 5.18 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002739/0.5477, allocations: 20 kB / 405.3 MB, free: 5.16 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001351/0.5491, allocations: 211.8 kB / 405.5 MB, free: 4.953 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002871/0.5494, allocations: 104.8 kB / 405.6 MB, free: 4.852 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001038/0.5495, allocations: 31.97 kB / 405.6 MB, free: 4.82 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005625/0.5501, allocations: 330.9 kB / 406 MB, free: 4.5 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.5501, allocations: 0 / 406 MB, free: 4.5 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000995/0.5511, allocations: 252 kB / 406.2 MB, free: 4.254 MB / 334.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {5 32,5 36} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003436/0.5515, allocations: 139.2 kB / 406.3 MB, free: 4.109 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.006632/0.5581, allocations: 2.314 MB / 408.7 MB, free: 1.773 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.5581, allocations: 0 / 408.7 MB, free: 1.773 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003279/0.5614, allocations: 1.152 MB / 409.8 MB, free: 0.625 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008559/0.5623, allocations: 134.1 kB / 409.9 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003772/0.5661, allocations: 2.054 MB / 412 MB, free: 14.41 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005044/0.5666, allocations: 0.9427 MB / 412.9 MB, free: 13.44 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003034/0.5669, allocations: 58.06 kB / 413 MB, free: 13.38 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001143/0.567, allocations: 31.44 kB / 413 MB, free: 13.35 MB / 350.1 MB Notification: Performance of SimCode: time 7.92e-07/0.5671, allocations: 0 / 413 MB, free: 13.35 MB / 350.1 MB Notification: Performance of Templates: time 0.03378/0.6008, allocations: 19.72 MB / 432.7 MB, free: 9.602 MB / 366.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)