Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.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.HeatingNPN_OrGate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate") translateModel(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006544/0.006544, allocations: 102.3 kB / 15.73 MB, free: 6.043 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.001353/0.001353, allocations: 193.6 kB / 16.67 MB, free: 5.957 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.525/1.525, allocations: 205.1 MB / 222.6 MB, free: 4.516 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.0013/0.0013, allocations: 56.48 kB / 326.6 MB, free: 14.28 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1359/0.1372, allocations: 46.62 MB / 373.2 MB, free: 1.309 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate): time 0.005954/0.1432, allocations: 4.708 MB / 377.9 MB, free: 12.57 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003092/0.1464, allocations: 1.268 MB / 379.2 MB, free: 11.29 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007862/0.1472, allocations: 19.94 kB / 379.2 MB, free: 11.27 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004263/0.1477, allocations: 114.8 kB / 379.3 MB, free: 11.16 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006033/0.1483, allocations: 241.7 kB / 379.5 MB, free: 10.92 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009049/0.1492, allocations: 299.5 kB / 379.8 MB, free: 10.63 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001143/0.1504, allocations: 1.06 MB / 380.9 MB, free: 9.562 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004606/0.1508, allocations: 266.3 kB / 381.1 MB, free: 9.289 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005195/0.1514, allocations: 406.5 kB / 381.5 MB, free: 8.891 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005234/0.1519, allocations: 454.1 kB / 382 MB, free: 8.445 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001141/0.152, allocations: 84 kB / 382.1 MB, free: 8.363 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002513/0.1523, allocations: 112 kB / 382.2 MB, free: 8.254 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001964/0.1525, allocations: 191.3 kB / 382.4 MB, free: 8.066 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005609/0.153, allocations: 422 kB / 382.8 MB, free: 7.652 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001277/0.1543, allocations: 0.9771 MB / 383.7 MB, free: 6.672 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.098e-05/0.1544, allocations: 0 / 383.7 MB, free: 6.672 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.957e-06/0.1544, allocations: 0 / 383.7 MB, free: 6.672 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.88e-05/0.1544, allocations: 0 / 383.7 MB, free: 6.672 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.002844/0.1572, allocations: 1.215 MB / 385 MB, free: 5.391 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.116e-05/0.1573, allocations: 8.031 kB / 385 MB, free: 5.383 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002199/0.1575, allocations: 95.91 kB / 385.1 MB, free: 5.289 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008735/0.1584, allocations: 457.5 kB / 385.5 MB, free: 4.801 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.351e-05/0.1585, allocations: 49.67 kB / 385.6 MB, free: 4.75 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001197/0.1586, allocations: 60.38 kB / 385.6 MB, free: 4.691 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001486/0.1601, allocations: 0.647 MB / 386.3 MB, free: 4.039 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.631e-05/0.1601, allocations: 0 / 386.3 MB, free: 4.039 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.411e-05/0.1602, allocations: 24 kB / 386.3 MB, free: 4.016 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.711e-05/0.1603, allocations: 16 kB / 386.3 MB, free: 4 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001669/0.1619, allocations: 0.6726 MB / 387 MB, free: 3.328 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.003743/0.1657, allocations: 2.308 MB / 389.3 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0016/0.1673, allocations: 0.5915 MB / 389.9 MB, free: 276 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007774/0.1681, allocations: 338 kB / 390.2 MB, free: 15.93 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.602e-05/0.1681, allocations: 4.438 kB / 390.2 MB, free: 15.93 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009459/0.1691, allocations: 429.3 kB / 390.6 MB, free: 15.48 MB / 334.1 MB Notification: Performance of pre-optimization done (n=54): time 5.801e-06/0.1691, allocations: 0 / 390.6 MB, free: 15.48 MB / 334.1 MB Notification: Performance of matching and sorting (n=94): time 0.06957/0.2387, allocations: 15.41 MB / 406 MB, free: 15.98 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001326/0.2389, allocations: 141.5 kB / 406.2 MB, free: 15.81 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007909/0.2397, allocations: 494.8 kB / 406.7 MB, free: 15.31 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002056/0.2399, allocations: 49.7 kB / 406.7 MB, free: 15.26 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002943/0.2402, allocations: 364 kB / 407.1 MB, free: 14.89 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000336/0.2406, allocations: 315.4 kB / 407.4 MB, free: 14.58 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003748/0.2409, allocations: 178.5 kB / 407.5 MB, free: 14.4 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001925/0.2411, allocations: 382.8 kB / 407.9 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002027/0.2432, allocations: 0.7163 MB / 408.6 MB, free: 13.3 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002148/0.2453, allocations: 0.9265 MB / 409.6 MB, free: 12.29 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004313/0.2497, allocations: 1.658 MB / 411.2 MB, free: 10.55 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.189e-05/0.2497, allocations: 4 kB / 411.2 MB, free: 10.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02284/0.2725, allocations: 5.358 MB / 416.6 MB, free: 5.16 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001019/0.2727, allocations: 63.34 kB / 416.6 MB, free: 5.086 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.17e-05/0.2727, allocations: 7.938 kB / 416.7 MB, free: 5.078 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.033/0.3058, allocations: 6.837 MB / 423.5 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007699/0.3066, allocations: 147.7 kB / 423.6 MB, free: 14.08 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007165/0.3137, allocations: 3.164 MB / 426.8 MB, free: 10.86 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001894/0.3157, allocations: 171.9 kB / 427 MB, free: 10.7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001239/0.3158, allocations: 43.97 kB / 427 MB, free: 10.65 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.0005147/0.3164, allocations: 225.7 kB / 427.2 MB, free: 10.42 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001796/0.3166, allocations: 75.06 kB / 427.3 MB, free: 10.35 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02247/0.339, allocations: 5.107 MB / 432.4 MB, free: 5.223 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.237e-05/0.3391, allocations: 12.05 kB / 432.4 MB, free: 5.211 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.745e-05/0.3392, allocations: 3.984 kB / 432.4 MB, free: 5.207 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.791e-05/0.3392, allocations: 3.984 kB / 432.4 MB, free: 5.203 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001821/0.341, allocations: 1.088 MB / 433.5 MB, free: 4.062 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.955e-06/0.341, allocations: 3.938 kB / 433.5 MB, free: 4.059 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005651/0.3416, allocations: 103.8 kB / 433.6 MB, free: 3.957 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.033/0.3746, allocations: 6.793 MB / 440.4 MB, free: 13.15 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003235/0.375, allocations: 23.98 kB / 440.4 MB, free: 13.12 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005823/0.3808, allocations: 3.048 MB / 443.5 MB, free: 10.02 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.3809, allocations: 0 / 443.5 MB, free: 10.02 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02389/0.4048, allocations: 5.987 MB / 449.5 MB, free: 4.004 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003556/0.4052, allocations: 144.2 kB / 449.6 MB, free: 3.844 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001717/0.4054, allocations: 16 kB / 449.6 MB, free: 3.828 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001373/0.4067, allocations: 179.7 kB / 449.8 MB, free: 3.652 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002756/0.407, allocations: 92.88 kB / 449.9 MB, free: 3.562 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.386e-05/0.4071, allocations: 39.97 kB / 449.9 MB, free: 3.523 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004512/0.4076, allocations: 334.9 kB / 450.3 MB, free: 3.199 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4076, allocations: 0 / 450.3 MB, free: 3.199 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008057/0.4084, allocations: 252 kB / 450.5 MB, free: 2.953 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.0003978/0.4088, allocations: 127.2 kB / 450.6 MB, free: 2.82 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006903/0.4157, allocations: 2.18 MB / 452.8 MB, free: 0.6133 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/0.4158, allocations: 0 / 452.8 MB, free: 0.6133 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.2797/0.6955, allocations: 1.087 MB / 453.9 MB, free: 77.95 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001055/0.6966, allocations: 125.5 kB / 454 MB, free: 77.95 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005151/0.7018, allocations: 1.723 MB / 455.7 MB, free: 77.43 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006333/0.7024, allocations: 0.938 MB / 456.7 MB, free: 76.73 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003489/0.7028, allocations: 50.8 kB / 456.7 MB, free: 76.72 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001434/0.7029, allocations: 32.19 kB / 456.8 MB, free: 76.71 MB / 382.1 MB Notification: Performance of SimCode: time 2.395e-06/0.7029, allocations: 3.906 kB / 456.8 MB, free: 76.71 MB / 382.1 MB Notification: Performance of Templates: time 0.03384/0.7368, allocations: 22.52 MB / 479.3 MB, free: 63.71 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.makefile (rm -f Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.sim & ./Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe 2>&1)