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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001596/0.001596, allocations: 185 kB / 8.354 MB, free: 0.7305 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.386/1.386, allocations: 194.3 MB / 203.1 MB, free: 13.03 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.001672/0.001673, allocations: 120 kB / 248.1 MB, free: 32 kB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.371e-05/1.373e-05, allocations: 0 / 298.1 MB, free: 35.51 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08119/0.08122, allocations: 44.51 MB / 342.6 MB, free: 6.996 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3452/0.4264, allocations: 97.2 MB / 439.8 MB, free: 5.156 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000161/0.4266, allocations: 68.84 kB / 439.8 MB, free: 5.148 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4613/0.888, allocations: 118.8 MB / 0.5455 GB, free: 78 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.888, allocations: 0 / 0.5455 GB, free: 78 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.361e-05/0.8881, allocations: 41.75 kB / 0.5455 GB, free: 78 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.00479/0.8929, allocations: 2.647 MB / 0.5481 GB, free: 76.83 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.532e-05/0.893, allocations: 9.312 kB / 0.5481 GB, free: 76.83 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005234/0.8935, allocations: 385.6 kB / 0.5485 GB, free: 76.64 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003567/0.8971, allocations: 2.257 MB / 0.5507 GB, free: 76.02 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.242e-05/0.8971, allocations: 18.7 kB / 0.5507 GB, free: 76.02 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001427/0.8973, allocations: 33.41 kB / 0.5508 GB, free: 76.02 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00114/0.8984, allocations: 0.68 MB / 0.5514 GB, free: 76.02 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001118/0.8995, allocations: 0.7298 MB / 0.5521 GB, free: 75.9 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.491e-05/0.8996, allocations: 0 / 0.5521 GB, free: 75.9 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.269e-05/0.8997, allocations: 7.844 kB / 0.5521 GB, free: 75.9 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.325e-05/0.8997, allocations: 22.88 kB / 0.5522 GB, free: 75.9 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004772/0.9045, allocations: 2.936 MB / 0.555 GB, free: 75.46 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007618/0.9052, allocations: 0.6197 MB / 0.5556 GB, free: 75.43 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000818/0.9061, allocations: 0.8609 MB / 0.5565 GB, free: 75.42 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02818/0.9343, allocations: 35.95 MB / 0.5916 GB, free: 49.02 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006567/0.935, allocations: 0.4958 MB / 0.5921 GB, free: 48.96 MB / 394.7 MB Notification: Performance of pre-optimization done (n=96): time 2.455e-06/0.935, allocations: 0 / 0.5921 GB, free: 48.96 MB / 394.7 MB Notification: Performance of matching and sorting (n=99): time 0.005503/0.9405, allocations: 3.367 MB / 0.5954 GB, free: 47.78 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.421e-05/0.9406, allocations: 276 kB / 0.5956 GB, free: 47.46 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002372/0.943, allocations: 2.04 MB / 0.5976 GB, free: 47.2 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.644e-05/0.9431, allocations: 31.64 kB / 0.5976 GB, free: 47.17 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009691/0.944, allocations: 1.301 MB / 0.5989 GB, free: 47.01 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000209/0.9443, allocations: 326.6 kB / 0.5992 GB, free: 46.8 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.781e-05/0.9443, allocations: 0 / 0.5992 GB, free: 46.8 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 6.825e-05/0.9444, allocations: 346.7 kB / 0.5996 GB, free: 46.49 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003918/0.9448, allocations: 310.1 kB / 0.5999 GB, free: 46.49 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004683/0.9453, allocations: 0.5257 MB / 0.6004 GB, free: 46.25 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004987/0.9458, allocations: 371.4 kB / 0.6007 GB, free: 46.24 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.9458, allocations: 0 / 0.6007 GB, free: 46.24 MB / 394.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002041/0.9478, allocations: 1.594 MB / 0.6023 GB, free: 45.72 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.679e-05/0.9479, allocations: 16.48 kB / 0.6023 GB, free: 45.71 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001354/0.948, allocations: 122.1 kB / 0.6024 GB, free: 45.71 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005253/0.9485, allocations: 255.6 kB / 0.6027 GB, free: 45.64 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008216/0.9494, allocations: 226.6 kB / 0.6029 GB, free: 45.64 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005595/0.955, allocations: 12.79 MB / 0.6154 GB, free: 33.68 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001607/0.9566, allocations: 115.4 kB / 0.6155 GB, free: 33.68 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001094/0.9567, allocations: 58.06 kB / 0.6155 GB, free: 33.68 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.0002414/0.957, allocations: 140.4 kB / 0.6157 GB, free: 33.57 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003285/0.9573, allocations: 377.1 kB / 0.616 GB, free: 33.38 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003788/0.9611, allocations: 1.886 MB / 0.6179 GB, free: 32.98 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.049e-05/0.9611, allocations: 11.95 kB / 0.6179 GB, free: 32.98 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.523e-06/0.9611, allocations: 3.875 kB / 0.6179 GB, free: 32.98 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.384e-06/0.9612, allocations: 3.844 kB / 0.6179 GB, free: 32.98 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002242/0.9634, allocations: 1.447 MB / 0.6193 GB, free: 32.77 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001486/0.9636, allocations: 115.8 kB / 0.6194 GB, free: 32.77 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006878/0.9643, allocations: 171.6 kB / 0.6196 GB, free: 32.77 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005116/0.9648, allocations: 248.7 kB / 0.6198 GB, free: 32.7 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.33e-05/0.9649, allocations: 34.17 kB / 0.6198 GB, free: 32.7 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005742/0.9706, allocations: 12.78 MB / 0.6323 GB, free: 20.73 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.688e-06/0.9707, allocations: 3.094 kB / 0.6323 GB, free: 20.73 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003084/0.9738, allocations: 2.05 MB / 0.6343 GB, free: 20.14 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001344/0.9751, allocations: 0.4972 MB / 0.6348 GB, free: 19.86 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000908/0.976, allocations: 10.97 kB / 0.6348 GB, free: 19.85 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001549/0.9776, allocations: 105.1 kB / 0.6349 GB, free: 19.85 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003134/0.9779, allocations: 144.6 kB / 0.6351 GB, free: 19.85 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.733e-05/0.978, allocations: 53.38 kB / 0.6351 GB, free: 19.85 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002756/0.9808, allocations: 1.527 MB / 0.6366 GB, free: 19.67 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.01e-07/0.9808, allocations: 0 / 0.6366 GB, free: 19.67 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002603/0.9834, allocations: 0.6729 MB / 0.6373 GB, free: 19.61 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.002106/0.9855, allocations: 1.003 MB / 0.6382 GB, free: 19.45 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002368/0.9879, allocations: 2.11 MB / 0.6403 GB, free: 18.28 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.979e-06/0.9879, allocations: 0 / 0.6403 GB, free: 18.28 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001346/0.9893, allocations: 1.712 MB / 0.642 GB, free: 17.12 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001972/0.9913, allocations: 466.9 kB / 0.6424 GB, free: 17.07 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005604/0.9969, allocations: 3.502 MB / 0.6458 GB, free: 15.76 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001014/0.9979, allocations: 1.723 MB / 0.6475 GB, free: 14.99 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001248/0.9992, allocations: 341 kB / 0.6478 GB, free: 14.91 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002684/0.9995, allocations: 147.3 kB / 0.648 GB, free: 14.9 MB / 394.7 MB Notification: Performance of SimCode: time 8.02e-07/0.9995, allocations: 0 / 0.648 GB, free: 14.9 MB / 394.7 MB Notification: Performance of Templates: time 0.05211/1.052, allocations: 31.99 MB / 0.6792 GB, free: 6.047 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)