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.009491/0.009491, allocations: 100.9 kB / 15.73 MB, free: 6.055 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.001974/0.001974, allocations: 197.3 kB / 16.68 MB, free: 5.969 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.561/1.561, allocations: 205.1 MB / 222.6 MB, free: 4.477 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.00118/0.00118, allocations: 47.03 kB / 326.6 MB, free: 14.39 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1202/0.1214, allocations: 46.63 MB / 373.2 MB, free: 1.285 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.005746/0.1272, allocations: 4.688 MB / 377.9 MB, free: 12.57 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003008/0.1302, allocations: 1.268 MB / 379.1 MB, free: 11.29 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003779/0.1306, allocations: 15.94 kB / 379.2 MB, free: 11.27 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000316/0.131, allocations: 110.8 kB / 379.3 MB, free: 11.16 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004813/0.1315, allocations: 257.7 kB / 379.5 MB, free: 10.91 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000711/0.1322, allocations: 295.5 kB / 379.8 MB, free: 10.62 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009661/0.1332, allocations: 1.06 MB / 380.9 MB, free: 9.555 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003919/0.1336, allocations: 258.3 kB / 381.1 MB, free: 9.289 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004221/0.134, allocations: 418.5 kB / 381.5 MB, free: 8.879 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004678/0.1345, allocations: 450.1 kB / 382 MB, free: 8.438 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001222/0.1346, allocations: 88 kB / 382.1 MB, free: 8.352 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000205/0.1348, allocations: 104 kB / 382.2 MB, free: 8.25 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001879/0.135, allocations: 195.3 kB / 382.4 MB, free: 8.059 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003983/0.1355, allocations: 429.9 kB / 382.8 MB, free: 7.637 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009009/0.1364, allocations: 0.9733 MB / 383.7 MB, free: 6.66 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.1364, allocations: 0 / 383.7 MB, free: 6.66 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.1364, allocations: 0 / 383.7 MB, free: 6.66 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.125e-05/0.1364, allocations: 0 / 383.7 MB, free: 6.66 MB / 318.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.002502/0.1389, allocations: 1.215 MB / 385 MB, free: 5.379 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.483e-05/0.139, allocations: 11.97 kB / 385 MB, free: 5.367 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001633/0.1391, allocations: 87.91 kB / 385.1 MB, free: 5.281 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007345/0.1399, allocations: 473.4 kB / 385.5 MB, free: 4.777 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.634e-05/0.1399, allocations: 45.69 kB / 385.6 MB, free: 4.73 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001107/0.1401, allocations: 64.38 kB / 385.6 MB, free: 4.668 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00142/0.1415, allocations: 0.6353 MB / 386.3 MB, free: 4.027 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.414e-05/0.1415, allocations: 0 / 386.3 MB, free: 4.027 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.04e-05/0.1416, allocations: 28 kB / 386.3 MB, free: 4 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.06e-05/0.1416, allocations: 16 kB / 386.3 MB, free: 3.984 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001696/0.1433, allocations: 0.6804 MB / 387 MB, free: 3.305 MB / 318.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.003785/0.1471, allocations: 2.308 MB / 389.3 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001544/0.1487, allocations: 0.5866 MB / 389.9 MB, free: 256 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007948/0.1495, allocations: 330 kB / 390.2 MB, free: 15.92 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.209e-05/0.1496, allocations: 8.344 kB / 390.2 MB, free: 15.91 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001137/0.1507, allocations: 441.3 kB / 390.6 MB, free: 15.46 MB / 334.1 MB Notification: Performance of pre-optimization done (n=54): time 2.725e-06/0.1507, allocations: 0 / 390.6 MB, free: 15.46 MB / 334.1 MB Notification: Performance of matching and sorting (n=94): time 0.0705/0.2212, allocations: 15.4 MB / 406 MB, free: 15.96 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001193/0.2214, allocations: 141.5 kB / 406.2 MB, free: 15.79 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007316/0.2221, allocations: 498.8 kB / 406.7 MB, free: 15.29 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002254/0.2224, allocations: 41.7 kB / 406.7 MB, free: 15.25 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002814/0.2227, allocations: 368 kB / 407.1 MB, free: 14.88 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002963/0.223, allocations: 307.5 kB / 407.4 MB, free: 14.57 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003535/0.2233, allocations: 182.5 kB / 407.5 MB, free: 14.39 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001791/0.2235, allocations: 378.8 kB / 407.9 MB, free: 14.01 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002046/0.2256, allocations: 0.7202 MB / 408.6 MB, free: 13.29 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002174/0.2277, allocations: 0.9303 MB / 409.6 MB, free: 12.28 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004181/0.2319, allocations: 1.658 MB / 411.2 MB, free: 10.54 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.22e-06/0.232, allocations: 3.938 kB / 411.2 MB, free: 10.53 MB / 350.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02276/0.2547, allocations: 5.342 MB / 416.6 MB, free: 5.16 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001151/0.2549, allocations: 71.52 kB / 416.6 MB, free: 5.078 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.246e-05/0.2549, allocations: 8 kB / 416.6 MB, free: 5.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.034/0.2889, allocations: 6.829 MB / 423.5 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007838/0.2898, allocations: 139.8 kB / 423.6 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006188/0.296, allocations: 3.012 MB / 426.6 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001716/0.2977, allocations: 179.9 kB / 426.8 MB, free: 10.85 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001176/0.2978, allocations: 47.97 kB / 426.8 MB, free: 10.8 MB / 366.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.000519/0.2984, allocations: 213.7 kB / 427.1 MB, free: 10.58 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001541/0.2985, allocations: 79.06 kB / 427.1 MB, free: 10.5 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02154/0.3201, allocations: 5.103 MB / 432.2 MB, free: 5.383 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.939e-05/0.3202, allocations: 8 kB / 432.2 MB, free: 5.375 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.113e-05/0.3202, allocations: 0 / 432.2 MB, free: 5.375 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.751e-05/0.3202, allocations: 7.984 kB / 432.3 MB, free: 5.367 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001615/0.3219, allocations: 1.1 MB / 433.4 MB, free: 4.215 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.222e-06/0.3219, allocations: 7.938 kB / 433.4 MB, free: 4.207 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005447/0.3224, allocations: 91.88 kB / 433.4 MB, free: 4.117 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03296/0.3554, allocations: 6.789 MB / 440.2 MB, free: 13.31 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002776/0.3558, allocations: 23.97 kB / 440.3 MB, free: 13.29 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005944/0.3617, allocations: 3.024 MB / 443.3 MB, free: 10.21 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.137e-06/0.3617, allocations: 0 / 443.3 MB, free: 10.21 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02426/0.386, allocations: 5.991 MB / 449.3 MB, free: 4.188 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003273/0.3864, allocations: 144.2 kB / 449.4 MB, free: 4.027 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001878/0.3866, allocations: 20 kB / 449.4 MB, free: 4.008 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001367/0.388, allocations: 171.8 kB / 449.6 MB, free: 3.84 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002841/0.3883, allocations: 96.92 kB / 449.7 MB, free: 3.746 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.737e-05/0.3884, allocations: 35.95 kB / 449.7 MB, free: 3.711 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004009/0.3888, allocations: 338.9 kB / 450.1 MB, free: 3.383 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3888, allocations: 4 kB / 450.1 MB, free: 3.379 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008026/0.3896, allocations: 252 kB / 450.3 MB, free: 3.133 MB / 382.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.0003023/0.3899, allocations: 131.2 kB / 450.4 MB, free: 2.996 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006067/0.396, allocations: 2.04 MB / 452.5 MB, free: 0.9297 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.991e-06/0.396, allocations: 4.375 kB / 452.5 MB, free: 0.9258 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.2607/0.6567, allocations: 1.079 MB / 453.6 MB, free: 77.09 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001604/0.6584, allocations: 123.3 kB / 453.7 MB, free: 77.09 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005858/0.6643, allocations: 1.744 MB / 455.4 MB, free: 76.57 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007686/0.6651, allocations: 0.9377 MB / 456.4 MB, free: 75.88 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003896/0.6655, allocations: 55.53 kB / 456.4 MB, free: 75.87 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001417/0.6656, allocations: 33.53 kB / 456.5 MB, free: 75.86 MB / 382.1 MB Notification: Performance of SimCode: time 8.82e-07/0.6656, allocations: 0 / 456.5 MB, free: 75.86 MB / 382.1 MB Notification: Performance of Templates: time 0.04295/0.7086, allocations: 22.76 MB / 479.2 MB, free: 62.99 MB / 382.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)