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.007234/0.007234, allocations: 101.8 kB / 15.73 MB, free: 5.992 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.001351/0.001351, allocations: 195.9 kB / 16.67 MB, free: 5.922 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.553/1.553, allocations: 205.1 MB / 222.5 MB, free: 12.22 MB / 190.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.001153/0.001153, allocations: 52.2 kB / 326.6 MB, free: 3.277 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1055, allocations: 46.61 MB / 373.2 MB, free: 4.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate): time 0.295/0.4005, allocations: 4.699 MB / 377.9 MB, free: 9.727 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003551/0.4042, allocations: 1.28 MB / 379.2 MB, free: 9.699 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003289/0.4045, allocations: 12.03 kB / 379.2 MB, free: 9.699 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003031/0.4049, allocations: 114.6 kB / 379.3 MB, free: 9.645 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004504/0.4053, allocations: 247.2 kB / 379.5 MB, free: 9.52 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007562/0.4061, allocations: 303.2 kB / 379.8 MB, free: 9.508 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001419/0.4075, allocations: 1.053 MB / 380.9 MB, free: 9.293 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005912/0.4081, allocations: 264.5 kB / 381.1 MB, free: 9.238 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008577/0.409, allocations: 413.9 kB / 381.5 MB, free: 9.098 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006665/0.4097, allocations: 449.9 kB / 382 MB, free: 8.891 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001533/0.4098, allocations: 84.5 kB / 382.1 MB, free: 8.891 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002639/0.4101, allocations: 110 kB / 382.2 MB, free: 8.883 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001932/0.4103, allocations: 192.7 kB / 382.3 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005255/0.4108, allocations: 429 kB / 382.8 MB, free: 8.504 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001325/0.4122, allocations: 0.9774 MB / 383.7 MB, free: 8.137 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.4122, allocations: 1.969 kB / 383.7 MB, free: 8.137 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.4122, allocations: 0 / 383.7 MB, free: 8.137 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.277e-05/0.4122, allocations: 0 / 383.7 MB, free: 8.137 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.002826/0.4151, allocations: 1.212 MB / 385 MB, free: 7.312 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.53e-05/0.4151, allocations: 8.844 kB / 385 MB, free: 7.312 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002166/0.4154, allocations: 89.78 kB / 385.1 MB, free: 7.27 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007924/0.4162, allocations: 467.6 kB / 385.5 MB, free: 6.91 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.232e-05/0.4162, allocations: 47.25 kB / 385.6 MB, free: 6.887 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001184/0.4163, allocations: 61.53 kB / 385.6 MB, free: 6.867 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001552/0.4179, allocations: 0.6391 MB / 386.3 MB, free: 6.625 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.777e-05/0.4179, allocations: 0.7031 kB / 386.3 MB, free: 6.625 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.359e-05/0.418, allocations: 23.28 kB / 386.3 MB, free: 6.609 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.597e-05/0.418, allocations: 16.05 kB / 386.3 MB, free: 6.609 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001964/0.42, allocations: 0.6774 MB / 387 MB, free: 6.402 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.004929/0.425, allocations: 2.306 MB / 389.3 MB, free: 4.977 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001918/0.4269, allocations: 0.5892 MB / 389.9 MB, free: 4.75 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009204/0.4278, allocations: 332.5 kB / 390.2 MB, free: 4.633 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.858e-05/0.4279, allocations: 6.953 kB / 390.2 MB, free: 4.629 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001242/0.4292, allocations: 436.1 kB / 390.6 MB, free: 4.434 MB / 318.1 MB Notification: Performance of pre-optimization done (n=54): time 2.565e-06/0.4292, allocations: 0 / 390.6 MB, free: 4.434 MB / 318.1 MB Notification: Performance of matching and sorting (n=94): time 0.07048/0.4997, allocations: 15.41 MB / 406 MB, free: 13.68 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001783/0.4999, allocations: 145.5 kB / 406.2 MB, free: 13.51 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008392/0.5008, allocations: 494.8 kB / 406.7 MB, free: 13.02 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002516/0.501, allocations: 45.69 kB / 406.7 MB, free: 12.96 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002936/0.5013, allocations: 365.9 kB / 407.1 MB, free: 12.6 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003059/0.5016, allocations: 311 kB / 407.4 MB, free: 12.3 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003596/0.502, allocations: 178.5 kB / 407.5 MB, free: 12.12 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002069/0.5022, allocations: 382.8 kB / 407.9 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002094/0.5043, allocations: 0.7163 MB / 408.6 MB, free: 11.02 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002193/0.5065, allocations: 0.9304 MB / 409.6 MB, free: 10.01 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004131/0.5107, allocations: 1.663 MB / 411.2 MB, free: 8.262 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.621e-06/0.5107, allocations: 0 / 411.2 MB, free: 8.262 MB / 334.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02316/0.5339, allocations: 5.354 MB / 416.6 MB, free: 2.887 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001158/0.5341, allocations: 60.34 kB / 416.6 MB, free: 2.816 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.709e-05/0.5341, allocations: 8 kB / 416.6 MB, free: 2.809 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03415/0.5683, allocations: 6.844 MB / 423.5 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009105/0.5693, allocations: 139.7 kB / 423.6 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007719/0.577, allocations: 3.166 MB / 426.8 MB, free: 8.602 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002049/0.5791, allocations: 175.9 kB / 427 MB, free: 8.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002132/0.5793, allocations: 47.97 kB / 427 MB, free: 8.383 MB / 350.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.0006327/0.58, allocations: 223.8 kB / 427.2 MB, free: 8.156 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001987/0.5802, allocations: 83.05 kB / 427.3 MB, free: 8.074 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02183/0.602, allocations: 5.1 MB / 432.4 MB, free: 2.965 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.421e-05/0.6021, allocations: 8 kB / 432.4 MB, free: 2.957 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.888e-06/0.6021, allocations: 0 / 432.4 MB, free: 2.957 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.556e-05/0.6022, allocations: 7.984 kB / 432.4 MB, free: 2.949 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001774/0.6039, allocations: 1.1 MB / 433.5 MB, free: 1.812 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.984e-06/0.604, allocations: 3.938 kB / 433.5 MB, free: 1.809 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005326/0.6045, allocations: 83.89 kB / 433.6 MB, free: 1.727 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03324/0.6377, allocations: 6.797 MB / 440.4 MB, free: 10.92 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003115/0.6381, allocations: 27.97 kB / 440.4 MB, free: 10.89 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006292/0.6444, allocations: 3.035 MB / 443.5 MB, free: 7.809 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.202e-06/0.6445, allocations: 7.984 kB / 443.5 MB, free: 7.801 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02414/0.6686, allocations: 5.987 MB / 449.5 MB, free: 1.789 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003453/0.669, allocations: 144.2 kB / 449.6 MB, free: 1.629 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001593/0.6692, allocations: 24.06 kB / 449.6 MB, free: 1.605 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001368/0.6705, allocations: 172.4 kB / 449.8 MB, free: 1.438 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003189/0.6709, allocations: 92.88 kB / 449.9 MB, free: 1.348 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001368/0.671, allocations: 35.97 kB / 449.9 MB, free: 1.312 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005539/0.6716, allocations: 334.9 kB / 450.3 MB, free: 0.9883 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.6716, allocations: 4 kB / 450.3 MB, free: 0.9844 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007985/0.6724, allocations: 252 kB / 450.5 MB, free: 0.7383 MB / 366.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.0002994/0.6727, allocations: 138.4 kB / 450.6 MB, free: 0.5977 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.006898/0.6796, allocations: 2.178 MB / 452.8 MB, free: 14.4 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/0.6796, allocations: 1.125 kB / 452.8 MB, free: 14.4 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00341/0.683, allocations: 1.094 MB / 453.9 MB, free: 13.31 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008027/0.6839, allocations: 130.5 kB / 454 MB, free: 13.18 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003828/0.6877, allocations: 1.722 MB / 455.8 MB, free: 11.43 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004931/0.6882, allocations: 0.935 MB / 456.7 MB, free: 10.47 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002464/0.6885, allocations: 58.06 kB / 456.8 MB, free: 10.41 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001198/0.6886, allocations: 35.44 kB / 456.8 MB, free: 10.38 MB / 382.1 MB Notification: Performance of SimCode: time 6.71e-07/0.6886, allocations: 3.938 kB / 456.8 MB, free: 10.38 MB / 382.1 MB Notification: Performance of Templates: time 0.04054/0.7291, allocations: 23.51 MB / 480.3 MB, free: 2.836 MB / 398.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)