Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.00122/0.00122, allocations: 110.2 kB / 17.07 MB, free: 6.016 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.001139/0.001139, allocations: 191 kB / 18 MB, free: 5.098 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.562/1.562, allocations: 205.1 MB / 223.9 MB, free: 12.25 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.001235/0.001235, allocations: 51.94 kB / 327.9 MB, free: 3.289 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1179/0.1191, allocations: 46.61 MB / 374.5 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate): time 0.2864/0.4056, allocations: 4.704 MB / 379.2 MB, free: 9.746 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003671/0.4093, allocations: 1.274 MB / 380.5 MB, free: 9.715 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004868/0.4098, allocations: 12.84 kB / 380.5 MB, free: 9.715 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003188/0.4102, allocations: 112.4 kB / 380.6 MB, free: 9.664 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004947/0.4107, allocations: 248.7 kB / 380.8 MB, free: 9.539 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008216/0.4115, allocations: 298 kB / 381.1 MB, free: 9.523 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001173/0.4127, allocations: 1.055 MB / 382.2 MB, free: 9.309 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004673/0.4132, allocations: 259.6 kB / 382.4 MB, free: 9.254 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007131/0.4139, allocations: 404 kB / 382.8 MB, free: 9.121 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006295/0.4145, allocations: 458.4 kB / 383.3 MB, free: 8.906 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001479/0.4147, allocations: 84.75 kB / 383.4 MB, free: 8.906 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002733/0.415, allocations: 108.1 kB / 383.5 MB, free: 8.902 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001797/0.4151, allocations: 193.7 kB / 383.7 MB, free: 8.773 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004226/0.4156, allocations: 428.9 kB / 384.1 MB, free: 8.52 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001323/0.4169, allocations: 0.9765 MB / 385.1 MB, free: 8.152 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.4169, allocations: 0 / 385.1 MB, free: 8.152 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.4169, allocations: 0 / 385.1 MB, free: 8.152 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.832e-05/0.417, allocations: 3.031 kB / 385.1 MB, free: 8.152 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.002496/0.4195, allocations: 1.233 MB / 386.3 MB, free: 7.305 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.563e-05/0.4195, allocations: 10.56 kB / 386.3 MB, free: 7.305 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001864/0.4197, allocations: 92.66 kB / 386.4 MB, free: 7.258 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007387/0.4205, allocations: 478.8 kB / 386.9 MB, free: 6.891 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.711e-05/0.4205, allocations: 46.16 kB / 386.9 MB, free: 6.867 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001237/0.4207, allocations: 62.12 kB / 387 MB, free: 6.848 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001528/0.4222, allocations: 0.6342 MB / 387.6 MB, free: 6.609 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.482e-05/0.4222, allocations: 1.5 kB / 387.6 MB, free: 6.609 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.942e-05/0.4223, allocations: 30.02 kB / 387.6 MB, free: 6.59 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.348e-05/0.4223, allocations: 17.84 kB / 387.6 MB, free: 6.586 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001775/0.4241, allocations: 0.6706 MB / 388.3 MB, free: 6.387 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.004368/0.4285, allocations: 2.319 MB / 390.6 MB, free: 4.949 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001706/0.4302, allocations: 0.5798 MB / 391.2 MB, free: 4.727 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008452/0.4311, allocations: 331.4 kB / 391.5 MB, free: 4.609 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.227e-05/0.4311, allocations: 14.7 kB / 391.6 MB, free: 4.602 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001129/0.4323, allocations: 427.7 kB / 392 MB, free: 4.414 MB / 318.1 MB Notification: Performance of pre-optimization done (n=54): time 3.346e-06/0.4323, allocations: 0 / 392 MB, free: 4.414 MB / 318.1 MB Notification: Performance of matching and sorting (n=94): time 0.0693/0.5016, allocations: 15.43 MB / 407.4 MB, free: 13.63 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001196/0.5018, allocations: 145.5 kB / 407.6 MB, free: 13.46 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007641/0.5025, allocations: 498.9 kB / 408 MB, free: 12.96 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002672/0.5028, allocations: 41.7 kB / 408.1 MB, free: 12.91 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003358/0.5032, allocations: 375.6 kB / 408.4 MB, free: 12.54 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000331/0.5035, allocations: 322.9 kB / 408.8 MB, free: 12.23 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003708/0.5039, allocations: 182.5 kB / 408.9 MB, free: 12.04 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001935/0.5041, allocations: 386.8 kB / 409.3 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002081/0.5062, allocations: 0.7241 MB / 410 MB, free: 10.93 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002211/0.5084, allocations: 0.9186 MB / 411 MB, free: 9.934 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004126/0.5125, allocations: 1.662 MB / 412.6 MB, free: 8.188 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.112e-06/0.5126, allocations: 4 kB / 412.6 MB, free: 8.184 MB / 334.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02228/0.5349, allocations: 5.355 MB / 418 MB, free: 2.809 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.904e-05/0.535, allocations: 63.41 kB / 418 MB, free: 2.734 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.084e-05/0.535, allocations: 4 kB / 418 MB, free: 2.73 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03229/0.5673, allocations: 6.839 MB / 424.9 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007334/0.5681, allocations: 143.7 kB / 425 MB, free: 11.74 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006606/0.5747, allocations: 3.17 MB / 428.2 MB, free: 8.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001864/0.5766, allocations: 178.5 kB / 428.4 MB, free: 8.348 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001407/0.5768, allocations: 51.91 kB / 428.4 MB, free: 8.297 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.0006025/0.5774, allocations: 217.6 kB / 428.6 MB, free: 8.074 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001998/0.5776, allocations: 79.53 kB / 428.7 MB, free: 7.996 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02121/0.5988, allocations: 5.104 MB / 433.8 MB, free: 2.879 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.554e-05/0.5989, allocations: 11.89 kB / 433.8 MB, free: 2.871 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.329e-05/0.5989, allocations: 4 kB / 433.8 MB, free: 2.867 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.569e-05/0.599, allocations: 3.984 kB / 433.8 MB, free: 2.863 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002055/0.601, allocations: 1.093 MB / 434.9 MB, free: 1.734 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.326e-06/0.6011, allocations: 3.938 kB / 434.9 MB, free: 1.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00051/0.6016, allocations: 92.77 kB / 435 MB, free: 1.641 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03139/0.633, allocations: 6.801 MB / 441.8 MB, free: 10.83 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002547/0.6333, allocations: 23.98 kB / 441.8 MB, free: 10.81 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005726/0.639, allocations: 3.044 MB / 444.9 MB, free: 7.711 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.987e-06/0.639, allocations: 2.25 kB / 444.9 MB, free: 7.711 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02346/0.6625, allocations: 5.995 MB / 450.9 MB, free: 1.691 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003549/0.6629, allocations: 148.6 kB / 451 MB, free: 1.527 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001638/0.6631, allocations: 16 kB / 451 MB, free: 1.512 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001313/0.6644, allocations: 171.8 kB / 451.2 MB, free: 1.344 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002776/0.6647, allocations: 96.88 kB / 451.3 MB, free: 1.25 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.886e-05/0.6648, allocations: 31.97 kB / 451.3 MB, free: 1.219 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004048/0.6652, allocations: 334.9 kB / 451.7 MB, free: 0.8945 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.6652, allocations: 0 / 451.7 MB, free: 0.8945 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000804/0.666, allocations: 255.9 kB / 451.9 MB, free: 0.6445 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.0003052/0.6663, allocations: 142.1 kB / 452.1 MB, free: 0.5 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.006559/0.6729, allocations: 2.162 MB / 454.2 MB, free: 14.31 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/0.6729, allocations: 256 / 454.2 MB, free: 14.31 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003329/0.6763, allocations: 1.1 MB / 455.3 MB, free: 13.22 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008885/0.6772, allocations: 138 kB / 455.5 MB, free: 13.09 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003945/0.6811, allocations: 1.751 MB / 457.2 MB, free: 11.31 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004636/0.6816, allocations: 0.9389 MB / 458.1 MB, free: 10.35 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003252/0.682, allocations: 54.08 kB / 458.2 MB, free: 10.29 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001207/0.6821, allocations: 35.44 kB / 458.2 MB, free: 10.26 MB / 382.1 MB Notification: Performance of SimCode: time 1.042e-06/0.6821, allocations: 0 / 458.2 MB, free: 10.26 MB / 382.1 MB Notification: Performance of Templates: time 0.0377/0.7198, allocations: 22.49 MB / 480.7 MB, free: 3.746 MB / 398.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe 2>&1)