Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_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.1_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate") translateModel(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_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.001066/0.001066, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001319/0.001319, allocations: 197.9 kB / 16.26 MB, free: 6.617 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.602/1.602, allocations: 205.1 MB / 222.1 MB, free: 4.699 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.001269/0.001269, allocations: 47.94 kB / 278.2 MB, free: 12.69 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2882/0.2895, allocations: 46.63 MB / 324.8 MB, free: 1.938 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.006949/0.2965, allocations: 4.714 MB / 329.6 MB, free: 14.18 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002861/0.2994, allocations: 1.267 MB / 330.8 MB, free: 13.12 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004591/0.2999, allocations: 9.25 kB / 330.8 MB, free: 13.12 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003193/0.3003, allocations: 80.2 kB / 330.9 MB, free: 13.05 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005163/0.3008, allocations: 212.4 kB / 331.1 MB, free: 12.87 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007316/0.3015, allocations: 264.9 kB / 331.4 MB, free: 12.65 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001113/0.3027, allocations: 1.045 MB / 332.4 MB, free: 12.03 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004198/0.3031, allocations: 254.6 kB / 332.7 MB, free: 11.88 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000563/0.3037, allocations: 409.4 kB / 333.1 MB, free: 11.64 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000521/0.3042, allocations: 451.9 kB / 333.5 MB, free: 11.32 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001366/0.3043, allocations: 87.88 kB / 333.6 MB, free: 11.32 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002128/0.3046, allocations: 112 kB / 333.7 MB, free: 11.21 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001726/0.3047, allocations: 183.3 kB / 333.9 MB, free: 11.03 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004007/0.3051, allocations: 433.9 kB / 334.3 MB, free: 10.6 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009308/0.3061, allocations: 0.9707 MB / 335.3 MB, free: 9.629 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.657e-06/0.3061, allocations: 0 / 335.3 MB, free: 9.629 MB / 270.1 MB Notification: Performance of FrontEnd: time 4.228e-06/0.3061, allocations: 0 / 335.3 MB, free: 9.629 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.331e-05/0.3061, allocations: 3.938 kB / 335.3 MB, free: 9.625 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.002534/0.3087, allocations: 1.207 MB / 336.5 MB, free: 8.348 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.477e-05/0.3087, allocations: 8.031 kB / 336.5 MB, free: 8.34 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001714/0.3089, allocations: 91.89 kB / 336.6 MB, free: 8.25 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000627/0.3095, allocations: 461.4 kB / 337 MB, free: 7.758 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.272e-05/0.3096, allocations: 49.67 kB / 337.1 MB, free: 7.711 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001091/0.3098, allocations: 60.38 kB / 337.1 MB, free: 7.652 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001398/0.3112, allocations: 0.6353 MB / 337.8 MB, free: 7.008 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.483e-05/0.3112, allocations: 4 kB / 337.8 MB, free: 7.004 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.793e-05/0.3113, allocations: 24 kB / 337.8 MB, free: 6.98 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.48e-05/0.3113, allocations: 16 kB / 337.8 MB, free: 6.965 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001506/0.3128, allocations: 0.6726 MB / 338.5 MB, free: 6.293 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.003894/0.3167, allocations: 2.339 MB / 340.8 MB, free: 3.801 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001388/0.3181, allocations: 0.5827 MB / 341.4 MB, free: 3.211 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000697/0.3188, allocations: 338 kB / 341.8 MB, free: 2.879 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.586e-05/0.3189, allocations: 12.42 kB / 341.8 MB, free: 2.867 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001076/0.32, allocations: 429.4 kB / 342.2 MB, free: 2.422 MB / 270.1 MB Notification: Performance of pre-optimization done (n=54): time 2.435e-06/0.32, allocations: 4 kB / 342.2 MB, free: 2.418 MB / 270.1 MB Notification: Performance of matching and sorting (n=94): time 0.07115/0.3911, allocations: 15.4 MB / 357.6 MB, free: 2.926 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001153/0.3913, allocations: 137.5 kB / 357.7 MB, free: 2.758 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007099/0.392, allocations: 498.8 kB / 358.2 MB, free: 2.262 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00024/0.3923, allocations: 45.7 kB / 358.3 MB, free: 2.211 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002921/0.3926, allocations: 360 kB / 358.6 MB, free: 1.852 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002934/0.3929, allocations: 315.4 kB / 358.9 MB, free: 1.539 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003873/0.3933, allocations: 178.5 kB / 359.1 MB, free: 1.359 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001944/0.3935, allocations: 382.8 kB / 359.5 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002226/0.3957, allocations: 0.7202 MB / 360.2 MB, free: 264 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002986/0.3987, allocations: 0.9303 MB / 361.1 MB, free: 15.25 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00572/0.4045, allocations: 1.658 MB / 362.8 MB, free: 13.51 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.091e-06/0.4045, allocations: 4 kB / 362.8 MB, free: 13.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.03692/0.4414, allocations: 5.339 MB / 368.1 MB, free: 8.129 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001532/0.4417, allocations: 63.39 kB / 368.2 MB, free: 8.055 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.064e-05/0.4417, allocations: 8 kB / 368.2 MB, free: 8.047 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0507/0.4924, allocations: 6.84 MB / 375 MB, free: 1.191 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006985/0.4932, allocations: 135.8 kB / 375.2 MB, free: 1.059 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005999/0.4992, allocations: 3.012 MB / 378.2 MB, free: 13.98 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001718/0.5009, allocations: 187.8 kB / 378.3 MB, free: 13.8 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001365/0.5011, allocations: 43.97 kB / 378.4 MB, free: 13.76 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.0004406/0.5015, allocations: 221.8 kB / 378.6 MB, free: 13.53 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000158/0.5017, allocations: 79 kB / 378.7 MB, free: 13.45 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02178/0.5235, allocations: 5.102 MB / 383.8 MB, free: 8.336 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.578e-05/0.5236, allocations: 12 kB / 383.8 MB, free: 8.324 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.066e-05/0.5236, allocations: 256 / 383.8 MB, free: 8.324 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.351e-05/0.5236, allocations: 3.984 kB / 383.8 MB, free: 8.32 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001572/0.5252, allocations: 1.086 MB / 384.9 MB, free: 7.18 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.575e-06/0.5252, allocations: 3.938 kB / 384.9 MB, free: 7.176 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005168/0.5257, allocations: 95.88 kB / 385 MB, free: 7.082 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0343/0.5601, allocations: 6.789 MB / 391.8 MB, free: 284 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002725/0.5604, allocations: 27.97 kB / 391.8 MB, free: 256 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005753/0.5661, allocations: 3.04 MB / 394.8 MB, free: 13.16 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.899e-06/0.5662, allocations: 0 / 394.8 MB, free: 13.16 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0234/0.5896, allocations: 5.979 MB / 400.8 MB, free: 7.145 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002449/0.5899, allocations: 140.3 kB / 401 MB, free: 6.988 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001679/0.59, allocations: 20 kB / 401 MB, free: 6.969 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001324/0.5914, allocations: 175.8 kB / 401.2 MB, free: 6.797 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002907/0.5917, allocations: 92.88 kB / 401.2 MB, free: 6.707 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.472e-05/0.5918, allocations: 35.97 kB / 401.3 MB, free: 6.672 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004087/0.5922, allocations: 334.9 kB / 401.6 MB, free: 6.348 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.532e-06/0.5922, allocations: 0 / 401.6 MB, free: 6.348 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007971/0.593, allocations: 259.9 kB / 401.9 MB, free: 6.094 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 (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.0003037/0.5933, allocations: 135.2 kB / 402 MB, free: 5.949 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.005855/0.5992, allocations: 2.051 MB / 404 MB, free: 3.875 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.45e-06/0.5992, allocations: 0 / 404 MB, free: 3.875 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00339/0.6026, allocations: 1.09 MB / 405.1 MB, free: 2.781 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008487/0.6035, allocations: 133.4 kB / 405.3 MB, free: 2.656 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003855/0.6074, allocations: 2.081 MB / 407.3 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004672/0.6078, allocations: 0.9389 MB / 408.3 MB, free: 15.59 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002966/0.6081, allocations: 58.06 kB / 408.3 MB, free: 15.53 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001111/0.6083, allocations: 35.44 kB / 408.4 MB, free: 15.5 MB / 350.1 MB Notification: Performance of SimCode: time 8.12e-07/0.6083, allocations: 0 / 408.4 MB, free: 15.5 MB / 350.1 MB Notification: Performance of Templates: time 0.03285/0.6411, allocations: 22.18 MB / 430.5 MB, free: 9.281 MB / 366.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.makefile (rm -f Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & ./Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1)