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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.004063/0.004063, allocations: 177.9 kB / 7.451 MB, free: 2.504 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.228/1.228, allocations: 170.6 MB / 178.4 MB, free: 15.39 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.001898/0.001898, allocations: 112.5 kB / 217.7 MB, free: 8.148 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 7.253e-06/7.263e-06, allocations: 0 / 261.7 MB, free: 26.65 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0668/0.06683, allocations: 38.76 MB / 300.5 MB, free: 3.887 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2474/0.3142, allocations: 93.3 MB / 393.8 MB, free: 7.395 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001833/0.3145, allocations: 76.33 kB / 393.9 MB, free: 7.355 MB / 282.7 MB Notification: Performance of FrontEnd: time 0.4601/0.7746, allocations: 121.5 MB / 0.5033 GB, free: 75.01 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.068e-05/0.7747, allocations: 47.09 kB / 0.5033 GB, free: 75 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.004831/0.7796, allocations: 2.685 MB / 0.506 GB, free: 73.39 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.859e-05/0.7796, allocations: 11.88 kB / 0.506 GB, free: 73.38 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004494/0.7801, allocations: 380.9 kB / 0.5063 GB, free: 73.19 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003195/0.7833, allocations: 2.259 MB / 0.5085 GB, free: 72.14 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.702e-05/0.7833, allocations: 19.52 kB / 0.5086 GB, free: 72.14 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001166/0.7835, allocations: 35.41 kB / 0.5086 GB, free: 72.14 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009881/0.7845, allocations: 0.6819 MB / 0.5093 GB, free: 71.93 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00102/0.7855, allocations: 0.7271 MB / 0.51 GB, free: 71.61 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.435e-05/0.7855, allocations: 0 / 0.51 GB, free: 71.61 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.065e-05/0.7856, allocations: 0 / 0.51 GB, free: 71.61 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.966e-05/0.7856, allocations: 23.27 kB / 0.51 GB, free: 71.6 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004993/0.7906, allocations: 2.973 MB / 0.5129 GB, free: 70.21 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007249/0.7914, allocations: 435.4 kB / 0.5133 GB, free: 70 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001216/0.7926, allocations: 0.8246 MB / 0.5141 GB, free: 69.7 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03697/0.8296, allocations: 35.84 MB / 0.5491 GB, free: 35.22 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001067/0.8307, allocations: 487.6 kB / 0.5496 GB, free: 34.73 MB / 346.7 MB Notification: Performance of pre-optimization done (n=96): time 4.859e-06/0.8308, allocations: 0 / 0.5496 GB, free: 34.73 MB / 346.7 MB Notification: Performance of matching and sorting (n=99): time 0.01117/0.8419, allocations: 3.375 MB / 0.5529 GB, free: 31.24 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000102/0.8421, allocations: 277.8 kB / 0.5531 GB, free: 30.91 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004669/0.8468, allocations: 2.045 MB / 0.5551 GB, free: 28.85 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002861/0.8471, allocations: 29.7 kB / 0.5552 GB, free: 28.82 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004778/0.8476, allocations: 0.4948 MB / 0.5557 GB, free: 28.32 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004728/0.8481, allocations: 323.2 kB / 0.556 GB, free: 28 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001052/0.8482, allocations: 0 / 0.556 GB, free: 28 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001025/0.8483, allocations: 341.9 kB / 0.5563 GB, free: 27.66 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008496/0.8492, allocations: 314.3 kB / 0.5566 GB, free: 27.35 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009307/0.8501, allocations: 0.523 MB / 0.5571 GB, free: 26.74 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001015/0.8511, allocations: 362.5 kB / 0.5574 GB, free: 26.39 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/0.8512, allocations: 8 kB / 0.5574 GB, free: 26.38 MB / 346.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004222/0.8554, allocations: 1.611 MB / 0.559 GB, free: 24.7 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.384e-05/0.8555, allocations: 4.531 kB / 0.559 GB, free: 24.69 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002824/0.8557, allocations: 128 kB / 0.5591 GB, free: 24.57 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009827/0.8567, allocations: 252.7 kB / 0.5594 GB, free: 24.29 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001453/0.8582, allocations: 243.6 kB / 0.5596 GB, free: 24.05 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008317/0.8665, allocations: 12.7 MB / 0.572 GB, free: 10.22 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003033/0.8696, allocations: 124 kB / 0.5721 GB, free: 10.1 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003927/0.8701, allocations: 55.98 kB / 0.5722 GB, free: 10.05 MB / 346.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.0005244/0.8706, allocations: 148.4 kB / 0.5723 GB, free: 9.895 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009163/0.8715, allocations: 371.5 kB / 0.5727 GB, free: 9.527 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007969/0.8795, allocations: 2.142 MB / 0.5748 GB, free: 7.328 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.764e-05/0.8796, allocations: 12 kB / 0.5748 GB, free: 7.316 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.59e-05/0.8796, allocations: 4 kB / 0.5748 GB, free: 7.312 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.412e-05/0.8796, allocations: 3.984 kB / 0.5748 GB, free: 7.309 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004192/0.8838, allocations: 1.446 MB / 0.5762 GB, free: 5.844 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002318/0.8841, allocations: 119.9 kB / 0.5763 GB, free: 5.727 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001085/0.8852, allocations: 183.8 kB / 0.5765 GB, free: 5.547 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008305/0.8861, allocations: 252.4 kB / 0.5767 GB, free: 5.27 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001862/0.8863, allocations: 31.98 kB / 0.5768 GB, free: 5.238 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01072/0.897, allocations: 12.69 MB / 0.5892 GB, free: 7.395 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.141e-05/0.8971, allocations: 8.109 kB / 0.5892 GB, free: 7.387 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005673/0.9028, allocations: 2.037 MB / 0.5912 GB, free: 5.266 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001797/0.9046, allocations: 0.4965 MB / 0.5917 GB, free: 4.746 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00117/0.9058, allocations: 15.98 kB / 0.5917 GB, free: 4.73 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002176/0.908, allocations: 115.9 kB / 0.5918 GB, free: 4.617 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004227/0.9084, allocations: 112.6 kB / 0.5919 GB, free: 4.508 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001987/0.9087, allocations: 55.97 kB / 0.5919 GB, free: 4.453 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.004594/0.9133, allocations: 1.533 MB / 0.5934 GB, free: 2.914 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003678/0.917, allocations: 0.6716 MB / 0.5941 GB, free: 2.242 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.002734/0.9197, allocations: 0.9906 MB / 0.5951 GB, free: 1.324 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.1454/1.065, allocations: 2.045 MB / 0.5971 GB, free: 121.2 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.7e-06/1.065, allocations: 0 / 0.5971 GB, free: 121.2 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001621/1.067, allocations: 1.657 MB / 0.5987 GB, free: 120.1 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002106/1.069, allocations: 448.5 kB / 0.5991 GB, free: 120.1 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006276/1.075, allocations: 3.498 MB / 0.6025 GB, free: 119.1 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001282/1.077, allocations: 1.861 MB / 0.6043 GB, free: 118.4 MB / 362.7 MB Notification: Performance of SimCode: time 1.202e-06/1.077, allocations: 0 / 0.6043 GB, free: 118.4 MB / 362.7 MB Notification: Performance of Templates: time 0.05559/1.132, allocations: 34.36 MB / 0.6379 GB, free: 114.5 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)