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.01109/0.01109, allocations: 110.3 kB / 15.74 MB, free: 6.453 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.001686/0.001686, allocations: 196.6 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.569/1.569, allocations: 205.1 MB / 222.6 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.001251/0.001251, allocations: 52.27 kB / 326.6 MB, free: 14.21 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1049, allocations: 46.62 MB / 373.2 MB, free: 1.312 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate): time 0.005874/0.1108, allocations: 4.7 MB / 377.9 MB, free: 12.58 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002548/0.1134, allocations: 1.272 MB / 379.2 MB, free: 11.3 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003727/0.1138, allocations: 12 kB / 379.2 MB, free: 11.29 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003133/0.1142, allocations: 114.8 kB / 379.3 MB, free: 11.18 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005165/0.1147, allocations: 253.7 kB / 379.5 MB, free: 10.93 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007128/0.1154, allocations: 303.5 kB / 379.8 MB, free: 10.63 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001078/0.1165, allocations: 1.052 MB / 380.9 MB, free: 9.57 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004162/0.1169, allocations: 270.3 kB / 381.1 MB, free: 9.293 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004757/0.1174, allocations: 414.5 kB / 381.5 MB, free: 8.887 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005177/0.118, allocations: 450.1 kB / 382 MB, free: 8.445 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001262/0.1181, allocations: 84 kB / 382.1 MB, free: 8.363 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002042/0.1183, allocations: 108 kB / 382.2 MB, free: 8.258 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001633/0.1185, allocations: 199.2 kB / 382.4 MB, free: 8.062 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003779/0.1189, allocations: 425.9 kB / 382.8 MB, free: 7.645 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009279/0.1198, allocations: 0.9771 MB / 383.8 MB, free: 6.664 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.1198, allocations: 0 / 383.8 MB, free: 6.664 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1198, allocations: 4 kB / 383.8 MB, free: 6.66 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.242e-05/0.1198, allocations: 0 / 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.002336/0.1222, allocations: 1.207 MB / 385 MB, free: 5.387 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.218e-05/0.1222, allocations: 12.03 kB / 385 MB, free: 5.375 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000155/0.1224, allocations: 91.91 kB / 385.1 MB, free: 5.285 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006577/0.1231, allocations: 461.4 kB / 385.5 MB, free: 4.793 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.142e-05/0.1231, allocations: 49.67 kB / 385.6 MB, free: 4.742 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001163/0.1232, allocations: 64.38 kB / 385.6 MB, free: 4.68 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001287/0.1245, allocations: 0.6431 MB / 386.3 MB, free: 4.031 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.049e-05/0.1246, allocations: 0 / 386.3 MB, free: 4.031 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.276e-05/0.1246, allocations: 24 kB / 386.3 MB, free: 4.008 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.377e-05/0.1247, allocations: 12 kB / 386.3 MB, free: 3.996 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001561/0.1262, allocations: 0.6805 MB / 387 MB, free: 3.316 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.003761/0.13, allocations: 2.308 MB / 389.3 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001379/0.1314, allocations: 0.5866 MB / 389.9 MB, free: 268 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006852/0.1321, allocations: 337.9 kB / 390.2 MB, free: 15.93 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.603e-05/0.1321, allocations: 4.438 kB / 390.2 MB, free: 15.92 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009401/0.1331, allocations: 437.3 kB / 390.6 MB, free: 15.47 MB / 334.1 MB Notification: Performance of pre-optimization done (n=54): time 2.365e-06/0.1331, allocations: 0 / 390.6 MB, free: 15.47 MB / 334.1 MB Notification: Performance of matching and sorting (n=94): time 0.06455/0.1977, allocations: 15.4 MB / 406.1 MB, free: 15.97 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001062/0.1978, allocations: 137.5 kB / 406.2 MB, free: 15.8 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007195/0.1986, allocations: 498.8 kB / 406.7 MB, free: 15.3 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002426/0.1988, allocations: 45.7 kB / 406.7 MB, free: 15.25 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003572/0.1992, allocations: 368 kB / 407.1 MB, free: 14.89 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004126/0.1996, allocations: 311.4 kB / 407.4 MB, free: 14.58 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004689/0.2001, allocations: 182.5 kB / 407.6 MB, free: 14.39 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002045/0.2003, allocations: 382.8 kB / 407.9 MB, free: 14.01 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002023/0.2023, allocations: 0.7202 MB / 408.7 MB, free: 13.29 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002337/0.2047, allocations: 0.9265 MB / 409.6 MB, free: 12.28 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004149/0.2088, allocations: 1.658 MB / 411.2 MB, free: 10.54 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.796e-06/0.2089, allocations: 0 / 411.2 MB, free: 10.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02201/0.2309, allocations: 5.346 MB / 416.6 MB, free: 5.164 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001043/0.231, allocations: 71.3 kB / 416.7 MB, free: 5.082 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.629e-05/0.2311, allocations: 4 kB / 416.7 MB, free: 5.078 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03222/0.2633, allocations: 6.84 MB / 423.5 MB, free: 14.22 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007224/0.2641, allocations: 147.7 kB / 423.6 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006953/0.271, allocations: 3.164 MB / 426.8 MB, free: 10.86 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001698/0.2728, allocations: 175.8 kB / 427 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002008/0.273, allocations: 51.91 kB / 427 MB, free: 10.63 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.0005964/0.2736, allocations: 221.7 kB / 427.2 MB, free: 10.41 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002376/0.2739, allocations: 75.06 kB / 427.3 MB, free: 10.33 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0209/0.2948, allocations: 5.111 MB / 432.4 MB, free: 5.203 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.103e-05/0.2948, allocations: 8 kB / 432.4 MB, free: 5.195 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.002e-05/0.2949, allocations: 0 / 432.4 MB, free: 5.195 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.554e-05/0.2949, allocations: 3.984 kB / 432.4 MB, free: 5.191 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001754/0.2966, allocations: 1.092 MB / 433.5 MB, free: 4.047 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.201e-05/0.2967, allocations: 3.938 kB / 433.5 MB, free: 4.043 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005273/0.2972, allocations: 99.88 kB / 433.6 MB, free: 3.945 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03099/0.3282, allocations: 6.789 MB / 440.4 MB, free: 13.14 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002904/0.3286, allocations: 31.91 kB / 440.5 MB, free: 13.11 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005877/0.3344, allocations: 3.04 MB / 443.5 MB, free: 10.02 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.887e-06/0.3345, allocations: 0 / 443.5 MB, free: 10.02 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02369/0.3582, allocations: 5.991 MB / 449.5 MB, free: 3.992 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004638/0.3587, allocations: 144.2 kB / 449.6 MB, free: 3.832 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004072/0.3592, allocations: 16 kB / 449.6 MB, free: 3.816 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001483/0.3607, allocations: 175.8 kB / 449.8 MB, free: 3.645 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003265/0.361, allocations: 92.88 kB / 449.9 MB, free: 3.555 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001316/0.3612, allocations: 39.97 kB / 449.9 MB, free: 3.516 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00049/0.3617, allocations: 330.9 kB / 450.3 MB, free: 3.195 MB / 382.1 MB Notification: Performance of sort global known variables: time 3e-07/0.3617, allocations: 0 / 450.3 MB, free: 3.195 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001006/0.3627, allocations: 260 kB / 450.5 MB, free: 2.941 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.0003583/0.363, allocations: 131.1 kB / 450.7 MB, free: 2.809 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006639/0.3697, allocations: 2.176 MB / 452.8 MB, free: 0.6055 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/0.3697, allocations: 0 / 452.8 MB, free: 0.6055 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.2531/0.6228, allocations: 1.086 MB / 453.9 MB, free: 77.27 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008491/0.6237, allocations: 129.5 kB / 454 MB, free: 77.27 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004247/0.628, allocations: 1.725 MB / 455.8 MB, free: 76.75 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004192/0.6284, allocations: 0.9368 MB / 456.7 MB, free: 76.05 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003039/0.6287, allocations: 56.91 kB / 456.8 MB, free: 76.04 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001276/0.6289, allocations: 32.47 kB / 456.8 MB, free: 76.03 MB / 382.1 MB Notification: Performance of SimCode: time 9.42e-07/0.6289, allocations: 0 / 456.8 MB, free: 76.03 MB / 382.1 MB Notification: Performance of Templates: time 0.03303/0.6619, allocations: 22.51 MB / 479.3 MB, free: 62.98 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)