Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.005673/0.005673, allocations: 103.7 kB / 15.74 MB, free: 6.449 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.001113/0.001113, allocations: 196 kB / 16.67 MB, free: 6.355 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.495/1.495, allocations: 205.1 MB / 222.5 MB, free: 4.535 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.001226/0.001226, allocations: 50.2 kB / 326.6 MB, free: 14.23 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1204/0.1216, allocations: 46.63 MB / 373.2 MB, free: 1.301 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate): time 0.006349/0.1281, allocations: 4.696 MB / 377.9 MB, free: 12.57 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002883/0.131, allocations: 1.272 MB / 379.2 MB, free: 11.29 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003749/0.1314, allocations: 12 kB / 379.2 MB, free: 11.28 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003217/0.1318, allocations: 110.8 kB / 379.3 MB, free: 11.17 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004827/0.1323, allocations: 253.7 kB / 379.5 MB, free: 10.92 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007137/0.133, allocations: 299.4 kB / 379.8 MB, free: 10.63 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001126/0.1341, allocations: 1.052 MB / 380.9 MB, free: 9.57 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004135/0.1345, allocations: 258.4 kB / 381.1 MB, free: 9.305 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005295/0.1351, allocations: 410.5 kB / 381.5 MB, free: 8.902 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006265/0.1357, allocations: 450.1 kB / 382 MB, free: 8.461 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001226/0.1358, allocations: 84 kB / 382 MB, free: 8.379 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002245/0.1361, allocations: 108 kB / 382.2 MB, free: 8.273 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001709/0.1362, allocations: 195.3 kB / 382.3 MB, free: 8.082 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003767/0.1366, allocations: 433.9 kB / 382.8 MB, free: 7.656 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00108/0.1377, allocations: 0.9804 MB / 383.7 MB, free: 6.672 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.1377, allocations: 3.938 kB / 383.8 MB, free: 6.668 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.1377, allocations: 0 / 383.8 MB, free: 6.668 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.73e-05/0.1378, allocations: 8 kB / 383.8 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.002424/0.1402, allocations: 1.226 MB / 385 MB, free: 5.367 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.218e-05/0.1403, allocations: 12.03 kB / 385 MB, free: 5.355 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001704/0.1404, allocations: 92.38 kB / 385.1 MB, free: 5.266 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007812/0.1412, allocations: 473.8 kB / 385.5 MB, free: 4.762 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.689e-05/0.1413, allocations: 45.69 kB / 385.6 MB, free: 4.715 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001142/0.1414, allocations: 64.38 kB / 385.7 MB, free: 4.652 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001371/0.1428, allocations: 0.6431 MB / 386.3 MB, free: 4.004 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.399e-05/0.1428, allocations: 0 / 386.3 MB, free: 4.004 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.295e-05/0.1429, allocations: 27.98 kB / 386.3 MB, free: 3.977 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.888e-05/0.1429, allocations: 15.98 kB / 386.3 MB, free: 3.961 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001642/0.1446, allocations: 0.6765 MB / 387 MB, free: 3.285 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.00394/0.1485, allocations: 2.309 MB / 389.3 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001446/0.15, allocations: 0.5788 MB / 389.9 MB, free: 244 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007671/0.1508, allocations: 342 kB / 390.2 MB, free: 15.89 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.866e-05/0.1508, allocations: 4.438 kB / 390.2 MB, free: 15.89 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009848/0.1518, allocations: 429.4 kB / 390.7 MB, free: 15.45 MB / 334.1 MB Notification: Performance of pre-optimization done (n=54): time 3.006e-06/0.1518, allocations: 4 kB / 390.7 MB, free: 15.44 MB / 334.1 MB Notification: Performance of matching and sorting (n=94): time 0.06705/0.2189, allocations: 15.42 MB / 406.1 MB, free: 15.93 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001303/0.2191, allocations: 141.5 kB / 406.2 MB, free: 15.76 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008513/0.22, allocations: 0.4911 MB / 406.7 MB, free: 15.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002525/0.2202, allocations: 41.7 kB / 406.8 MB, free: 15.21 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004392/0.2207, allocations: 376.8 kB / 407.1 MB, free: 14.83 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005526/0.2212, allocations: 321.2 kB / 407.4 MB, free: 14.52 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004867/0.2217, allocations: 186.5 kB / 407.6 MB, free: 14.32 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002246/0.222, allocations: 378.8 kB / 408 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002211/0.2242, allocations: 0.7241 MB / 408.7 MB, free: 13.22 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002381/0.2266, allocations: 0.9265 MB / 409.6 MB, free: 12.21 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004296/0.2309, allocations: 1.654 MB / 411.3 MB, free: 10.48 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.248e-05/0.2309, allocations: 4 kB / 411.3 MB, free: 10.47 MB / 350.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02257/0.2535, allocations: 5.355 MB / 416.7 MB, free: 5.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001037/0.2537, allocations: 67.31 kB / 416.7 MB, free: 5.012 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.205e-05/0.2537, allocations: 4 kB / 416.7 MB, free: 5.008 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03281/0.2865, allocations: 6.84 MB / 423.6 MB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007655/0.2874, allocations: 139.7 kB / 423.7 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007026/0.2944, allocations: 3.176 MB / 426.9 MB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001664/0.2961, allocations: 175.8 kB / 427.1 MB, free: 10.61 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001761/0.2963, allocations: 47.97 kB / 427.1 MB, free: 10.57 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.0005512/0.2969, allocations: 225.7 kB / 427.3 MB, free: 10.34 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002598/0.2971, allocations: 75.53 kB / 427.4 MB, free: 10.26 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02122/0.3184, allocations: 5.115 MB / 432.5 MB, free: 5.129 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.348e-05/0.3184, allocations: 8 kB / 432.5 MB, free: 5.121 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.8e-05/0.3185, allocations: 0 / 432.5 MB, free: 5.121 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.672e-05/0.3185, allocations: 3.984 kB / 432.5 MB, free: 5.117 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001775/0.3203, allocations: 1.1 MB / 433.6 MB, free: 3.965 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.117e-05/0.3203, allocations: 3.938 kB / 433.6 MB, free: 3.961 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005543/0.3209, allocations: 95.89 kB / 433.7 MB, free: 3.867 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03177/0.3527, allocations: 6.797 MB / 440.5 MB, free: 13.05 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003311/0.353, allocations: 23.98 kB / 440.5 MB, free: 13.03 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006019/0.3591, allocations: 3.048 MB / 443.6 MB, free: 9.93 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.3591, allocations: 0 / 443.6 MB, free: 9.93 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02344/0.3826, allocations: 5.984 MB / 449.6 MB, free: 3.914 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002973/0.3829, allocations: 148.6 kB / 449.7 MB, free: 3.75 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002935/0.3832, allocations: 16 kB / 449.7 MB, free: 3.734 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001392/0.3846, allocations: 179.8 kB / 449.9 MB, free: 3.559 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003002/0.385, allocations: 92.88 kB / 450 MB, free: 3.469 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001048/0.3851, allocations: 35.97 kB / 450 MB, free: 3.434 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004565/0.3855, allocations: 330.9 kB / 450.4 MB, free: 3.113 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3855, allocations: 0 / 450.4 MB, free: 3.113 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008749/0.3864, allocations: 252 kB / 450.6 MB, free: 2.867 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.0003217/0.3868, allocations: 143.1 kB / 450.7 MB, free: 2.719 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006897/0.3937, allocations: 2.172 MB / 452.9 MB, free: 0.5195 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.701e-06/0.3937, allocations: 0 / 452.9 MB, free: 0.5195 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.2459/0.6396, allocations: 1.09 MB / 454 MB, free: 77.3 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009624/0.6406, allocations: 126.3 kB / 454.1 MB, free: 77.3 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004282/0.6449, allocations: 1.739 MB / 455.9 MB, free: 76.75 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004972/0.6454, allocations: 0.9341 MB / 456.8 MB, free: 76.05 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000268/0.6457, allocations: 58.25 kB / 456.9 MB, free: 76.04 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001287/0.6458, allocations: 36.02 kB / 456.9 MB, free: 76.04 MB / 382.1 MB Notification: Performance of SimCode: time 1.102e-06/0.6458, allocations: 0 / 456.9 MB, free: 76.04 MB / 382.1 MB Notification: Performance of Templates: time 0.03074/0.6766, allocations: 22.52 MB / 479.4 MB, free: 62.89 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe 2>&1)