Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Nor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Nor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Nor") translateModel(Modelica.Electrical.Spice3.Examples.Nor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.2+maint.om/package.mo): time 0.001969/0.001969, allocations: 197.4 kB / 8.142 MB, free: 2.191 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.119/1.119, allocations: 194.2 MB / 202.8 MB, free: 8.672 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001802/0.001802, allocations: 117.7 kB / 247.7 MB, free: 6.387 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 9.297e-06/9.317e-06, allocations: 8 kB / 297.6 MB, free: 7.988 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07846/0.07848, allocations: 44.49 MB / 342 MB, free: 11.38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2137/0.2922, allocations: 97.13 MB / 439.2 MB, free: 14.18 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001957/0.2925, allocations: 70.33 kB / 439.2 MB, free: 14.14 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.3854/0.6779, allocations: 119.4 MB / 0.5456 GB, free: 77.2 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.904e-05/0.678, allocations: 40.12 kB / 0.5456 GB, free: 77.2 MB / 394.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.004392/0.6824, allocations: 2.697 MB / 0.5483 GB, free: 75.74 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.514e-05/0.6824, allocations: 7.25 kB / 0.5483 GB, free: 75.74 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004988/0.683, allocations: 384 kB / 0.5486 GB, free: 75.55 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003464/0.6864, allocations: 2.253 MB / 0.5508 GB, free: 74.92 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.551e-05/0.6865, allocations: 23.36 kB / 0.5509 GB, free: 74.91 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001506/0.6866, allocations: 31.25 kB / 0.5509 GB, free: 74.91 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001038/0.6877, allocations: 0.6873 MB / 0.5516 GB, free: 74.91 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001072/0.6888, allocations: 0.7257 MB / 0.5523 GB, free: 74.79 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.548e-05/0.6888, allocations: 4 kB / 0.5523 GB, free: 74.78 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.898e-05/0.6889, allocations: 3.406 kB / 0.5523 GB, free: 74.78 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.129e-05/0.6889, allocations: 22.89 kB / 0.5523 GB, free: 74.78 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004749/0.6937, allocations: 2.954 MB / 0.5552 GB, free: 74.3 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005556/0.6942, allocations: 437.8 kB / 0.5556 GB, free: 74.29 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008696/0.6951, allocations: 0.8158 MB / 0.5564 GB, free: 74.27 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03131/0.7264, allocations: 35.84 MB / 0.5914 GB, free: 47.02 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007571/0.7272, allocations: 485.7 kB / 0.5919 GB, free: 46.82 MB / 394.7 MB Notification: Performance of pre-optimization done (n=96): time 3.035e-06/0.7272, allocations: 0.9375 kB / 0.5919 GB, free: 46.82 MB / 394.7 MB Notification: Performance of matching and sorting (n=99): time 0.006481/0.7337, allocations: 3.368 MB / 0.5952 GB, free: 45.05 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.224e-05/0.7338, allocations: 273.3 kB / 0.5954 GB, free: 44.73 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002652/0.7365, allocations: 2.043 MB / 0.5974 GB, free: 43.93 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.885e-05/0.7366, allocations: 29.58 kB / 0.5974 GB, free: 43.89 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003068/0.7369, allocations: 0.496 MB / 0.5979 GB, free: 43.6 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001857/0.7371, allocations: 328.2 kB / 0.5982 GB, free: 43.34 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.252e-05/0.7371, allocations: 3.969 kB / 0.5982 GB, free: 43.34 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 5.832e-05/0.7372, allocations: 349 kB / 0.5986 GB, free: 43.02 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004669/0.7377, allocations: 312.1 kB / 0.5989 GB, free: 42.89 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005831/0.7383, allocations: 0.5231 MB / 0.5994 GB, free: 42.48 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000607/0.7389, allocations: 373.5 kB / 0.5997 GB, free: 42.32 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.7389, allocations: 0 / 0.5997 GB, free: 42.32 MB / 394.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.00232/0.7412, allocations: 1.604 MB / 0.6013 GB, free: 41.5 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.317e-05/0.7412, allocations: 7.844 kB / 0.6013 GB, free: 41.5 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001836/0.7414, allocations: 112.8 kB / 0.6014 GB, free: 41.5 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006676/0.7421, allocations: 261.3 kB / 0.6017 GB, free: 41.36 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009546/0.7431, allocations: 249.7 kB / 0.6019 GB, free: 41.33 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005825/0.7489, allocations: 12.7 MB / 0.6143 GB, free: 28.72 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001638/0.7506, allocations: 125.8 kB / 0.6144 GB, free: 28.71 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001277/0.7507, allocations: 59 kB / 0.6145 GB, free: 28.7 MB / 394.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.0002315/0.751, allocations: 142.5 kB / 0.6146 GB, free: 28.57 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003371/0.7513, allocations: 379.9 kB / 0.615 GB, free: 28.38 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005023/0.7563, allocations: 2.138 MB / 0.6171 GB, free: 27.35 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.618e-06/0.7564, allocations: 9.625 kB / 0.6171 GB, free: 27.35 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.7564, allocations: 3.312 kB / 0.6171 GB, free: 27.35 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.834e-06/0.7564, allocations: 3.891 kB / 0.6171 GB, free: 27.35 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001791/0.7582, allocations: 1.441 MB / 0.6185 GB, free: 26.71 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001752/0.7584, allocations: 116.5 kB / 0.6186 GB, free: 26.71 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007992/0.7592, allocations: 183.4 kB / 0.6188 GB, free: 26.69 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000574/0.7598, allocations: 258.9 kB / 0.619 GB, free: 26.55 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.67e-05/0.7599, allocations: 33.05 kB / 0.6191 GB, free: 26.55 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005727/0.7656, allocations: 12.69 MB / 0.6315 GB, free: 13.94 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.7656, allocations: 3.156 kB / 0.6315 GB, free: 13.94 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00276/0.7684, allocations: 2.037 MB / 0.6334 GB, free: 12.84 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007921/0.7692, allocations: 0.5023 MB / 0.6339 GB, free: 12.5 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004402/0.7696, allocations: 7.188 kB / 0.6339 GB, free: 12.5 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001194/0.7708, allocations: 115.7 kB / 0.6341 GB, free: 12.49 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002714/0.7711, allocations: 122.1 kB / 0.6342 GB, free: 12.47 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001019/0.7712, allocations: 48.52 kB / 0.6342 GB, free: 12.46 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.001874/0.7731, allocations: 1.53 MB / 0.6357 GB, free: 11.82 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001657/0.7748, allocations: 0.6722 MB / 0.6364 GB, free: 11.75 MB / 394.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.001205/0.776, allocations: 0.9987 MB / 0.6373 GB, free: 11.45 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002158/0.7782, allocations: 2.044 MB / 0.6393 GB, free: 25.97 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.7782, allocations: 1.25 kB / 0.6393 GB, free: 25.97 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00153/0.7797, allocations: 1.657 MB / 0.641 GB, free: 24.32 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001334/0.7811, allocations: 453.5 kB / 0.6414 GB, free: 23.91 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005512/0.7866, allocations: 3.503 MB / 0.6448 GB, free: 20.66 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001454/0.7881, allocations: 1.866 MB / 0.6466 GB, free: 19.18 MB / 410.7 MB Notification: Performance of SimCode: time 6.01e-07/0.7881, allocations: 0 / 0.6466 GB, free: 19.18 MB / 410.7 MB Notification: Performance of Templates: time 0.1571/0.9451, allocations: 34.34 MB / 0.6802 GB, free: 130.7 MB / 410.7 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Nor.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Nor.sim & ./Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Nor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1)