Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Nor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nor") translateModel(Modelica.Electrical.Spice3.Examples.Nor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.0009758/0.0009757, allocations: 170.4 kB / 12.72 MB, free: 2.594 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.177/1.177, allocations: 170.6 MB / 183.8 MB, free: 11.42 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001653/0.001653, allocations: 99.53 kB / 223.2 MB, free: 4.051 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.677e-05/2.679e-05, allocations: 4 kB / 268.9 MB, free: 20.93 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07649/0.07653, allocations: 38.77 MB / 307.6 MB, free: 14.14 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3151/0.3917, allocations: 94.04 MB / 401.7 MB, free: 14.47 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002662/0.392, allocations: 70.28 kB / 401.7 MB, free: 14.44 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4/0.7921, allocations: 126 MB / 0.5154 GB, free: 71.46 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.7921, allocations: 0 / 0.5154 GB, free: 71.46 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.3e-05/0.7922, allocations: 41.69 kB / 0.5154 GB, free: 71.46 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 149 * Number of variables: 149 Notification: Performance of Generate backend data structure: time 0.003515/0.7957, allocations: 2.648 MB / 0.518 GB, free: 69.58 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.726e-05/0.7957, allocations: 7.875 kB / 0.518 GB, free: 69.58 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003195/0.7961, allocations: 382.3 kB / 0.5184 GB, free: 69.29 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002838/0.7989, allocations: 2.252 MB / 0.5206 GB, free: 66.96 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.866e-05/0.7989, allocations: 33 kB / 0.5206 GB, free: 66.93 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001142/0.7991, allocations: 55.98 kB / 0.5207 GB, free: 66.88 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001/0.8001, allocations: 0.791 MB / 0.5215 GB, free: 66.05 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.262e-05/0.8001, allocations: 0 / 0.5215 GB, free: 66.05 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.924e-05/0.8002, allocations: 24 kB / 0.5215 GB, free: 66.03 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.742e-05/0.8002, allocations: 27.92 kB / 0.5215 GB, free: 66 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008574/0.8011, allocations: 0.7033 MB / 0.5222 GB, free: 65.3 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004558/0.8056, allocations: 3.046 MB / 0.5252 GB, free: 62.18 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008818/0.8065, allocations: 0.6548 MB / 0.5258 GB, free: 61.51 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008811/0.8074, allocations: 0.8881 MB / 0.5267 GB, free: 60.63 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02677/0.8342, allocations: 35.97 MB / 0.5618 GB, free: 19.53 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006952/0.835, allocations: 0.5175 MB / 0.5623 GB, free: 19 MB / 346.7 MB Notification: Performance of pre-optimization done (n=96): time 2.624e-06/0.835, allocations: 0 / 0.5623 GB, free: 19 MB / 346.7 MB Notification: Performance of matching and sorting (n=99): time 0.005421/0.8404, allocations: 3.478 MB / 0.5657 GB, free: 15.39 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.016e-05/0.8405, allocations: 273.8 kB / 0.566 GB, free: 15.06 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002405/0.8429, allocations: 2.226 MB / 0.5681 GB, free: 12.82 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.177e-05/0.843, allocations: 45.64 kB / 0.5682 GB, free: 12.77 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008254/0.8438, allocations: 1.307 MB / 0.5695 GB, free: 11.45 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000185/0.844, allocations: 331.2 kB / 0.5698 GB, free: 11.12 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.578e-05/0.8441, allocations: 16 kB / 0.5698 GB, free: 11.11 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.691e-05/0.8442, allocations: 349.9 kB / 0.5701 GB, free: 10.76 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004724/0.8447, allocations: 334.3 kB / 0.5704 GB, free: 10.43 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005494/0.8452, allocations: 0.5405 MB / 0.571 GB, free: 9.805 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005122/0.8457, allocations: 388.5 kB / 0.5713 GB, free: 9.426 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.846e-06/0.8457, allocations: 0 / 0.5713 GB, free: 9.426 MB / 346.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002039/0.8478, allocations: 1.686 MB / 0.573 GB, free: 7.664 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.771e-05/0.8478, allocations: 8 kB / 0.573 GB, free: 7.656 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001186/0.8479, allocations: 123.9 kB / 0.5731 GB, free: 7.535 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005641/0.8485, allocations: 260.9 kB / 0.5734 GB, free: 7.25 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008249/0.8493, allocations: 227.7 kB / 0.5736 GB, free: 7.027 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007656/0.857, allocations: 13.25 MB / 0.5865 GB, free: 8.445 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00163/0.8587, allocations: 128 kB / 0.5866 GB, free: 8.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000123/0.8588, allocations: 59.98 kB / 0.5867 GB, free: 8.262 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 21 ($PRE.v.counter,v.counter,$PRE.vin2.counter,vin2.counter,$PRE.vin1.counter,vin1.counter,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.vin1.T0,vin1.T0,$PRE.vin1.counter2,vin1.counter2,$PRE.vin2.T0,vin2.T0,$PRE.vin2.counter2,vin2.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (97): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002569/0.8591, allocations: 166 kB / 0.5868 GB, free: 8.094 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000359/0.8594, allocations: 375.5 kB / 0.5872 GB, free: 7.723 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004303/0.8637, allocations: 1.974 MB / 0.5891 GB, free: 5.664 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.146e-05/0.8638, allocations: 8 kB / 0.5891 GB, free: 5.656 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.266e-06/0.8638, allocations: 4 kB / 0.5891 GB, free: 5.652 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.908e-06/0.8638, allocations: 7.922 kB / 0.5892 GB, free: 5.645 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002497/0.8663, allocations: 1.547 MB / 0.5907 GB, free: 4.043 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001543/0.8665, allocations: 120 kB / 0.5908 GB, free: 3.926 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007698/0.8673, allocations: 167.8 kB / 0.5909 GB, free: 3.762 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006302/0.8679, allocations: 260.4 kB / 0.5912 GB, free: 3.477 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.233e-05/0.868, allocations: 39.98 kB / 0.5912 GB, free: 3.438 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1924/1.06, allocations: 13.23 MB / 0.6041 GB, free: 76.03 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/1.061, allocations: 1.406 kB / 0.6041 GB, free: 76.03 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003621/1.064, allocations: 2.111 MB / 0.6062 GB, free: 75.66 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00103/1.065, allocations: 0.4924 MB / 0.6067 GB, free: 75.48 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003018/1.065, allocations: 27.08 kB / 0.6067 GB, free: 75.47 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00104/1.067, allocations: 122.4 kB / 0.6068 GB, free: 75.47 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003806/1.067, allocations: 142.5 kB / 0.607 GB, free: 75.47 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001052/1.067, allocations: 47.58 kB / 0.607 GB, free: 75.47 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.00261/1.07, allocations: 1.721 MB / 0.6087 GB, free: 75.27 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.21e-07/1.07, allocations: 0 / 0.6087 GB, free: 75.27 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002074/1.072, allocations: 0.7102 MB / 0.6094 GB, free: 75.27 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (mp1.Dinternal,mp1.Sinternal,mp2.Dinternal,mp2.Sinternal,mn1.Dinternal,mn1.Sinternal,mn2.Dinternal,mn2.Sinternal) * Number of discrete variables: 12 ($whenCondition3,$whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 6 (vin1.counter,vin2.counter,v.counter,vin1.counter2,vin2.counter2,v.counter2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 9 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001575/1.073, allocations: 0.8973 MB / 0.6103 GB, free: 75.18 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002535/1.076, allocations: 2.221 MB / 0.6124 GB, free: 73.94 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/1.076, allocations: 1.375 kB / 0.6124 GB, free: 73.94 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001566/1.077, allocations: 1.792 MB / 0.6142 GB, free: 72.71 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001381/1.079, allocations: 481.4 kB / 0.6146 GB, free: 72.67 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004845/1.084, allocations: 3.556 MB / 0.6181 GB, free: 71.64 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008429/1.085, allocations: 1.72 MB / 0.6198 GB, free: 70.91 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001113/1.086, allocations: 338.7 kB / 0.6201 GB, free: 70.88 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002393/1.086, allocations: 145.3 kB / 0.6203 GB, free: 70.88 MB / 362.7 MB Notification: Performance of SimCode: time 5.62e-07/1.086, allocations: 2.594 kB / 0.6203 GB, free: 70.88 MB / 362.7 MB Notification: Performance of Templates: time 0.05421/1.14, allocations: 36.56 MB / 0.656 GB, free: 59.71 MB / 362.7 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nor.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nor.sim & ./Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1)