Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Spice3.Examples.Nor.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.Spice3.Examples.Nor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Spice3.Examples.Nor") translateModel(Modelica.Electrical.Spice3.Examples.Nor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Spice3.Examples.Nor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001309/0.001308, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001419/0.001419, allocations: 192.7 kB / 16.13 MB, free: 6.707 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.336/1.336, allocations: 205.1 MB / 222 MB, free: 4.785 MB / 174.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.001082/0.001082, allocations: 51.92 kB / 278 MB, free: 12.79 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1909/0.192, allocations: 46.63 MB / 324.7 MB, free: 1.934 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01156/0.2036, allocations: 13.41 MB / 338.1 MB, free: 6.711 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.02142/0.2251, allocations: 19.53 MB / 357.6 MB, free: 3.105 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003276/0.2284, allocations: 67.44 kB / 357.7 MB, free: 3.039 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003425/0.2319, allocations: 0.9517 MB / 358.6 MB, free: 2.082 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009044/0.2409, allocations: 1.883 MB / 360.5 MB, free: 192 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004183/0.2451, allocations: 1.164 MB / 361.7 MB, free: 15.02 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008993/0.2541, allocations: 6.167 MB / 367.8 MB, free: 8.832 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005699/0.2547, allocations: 405 kB / 368.2 MB, free: 8.406 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001065/0.2558, allocations: 0.9405 MB / 369.2 MB, free: 7.461 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000851/0.2567, allocations: 1.036 MB / 370.2 MB, free: 6.418 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001733/0.2569, allocations: 52 kB / 370.3 MB, free: 6.367 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003102/0.26, allocations: 1.12 MB / 371.4 MB, free: 5.246 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002749/0.2603, allocations: 305.7 kB / 371.7 MB, free: 4.945 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001066/0.2613, allocations: 1.304 MB / 373 MB, free: 3.633 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003477/0.2648, allocations: 3.615 MB / 376.6 MB, free: 16 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.726e-06/0.2648, allocations: 8 kB / 376.6 MB, free: 15.99 MB / 318.1 MB Notification: Performance of FrontEnd: time 7.32e-07/0.2648, allocations: 0 / 376.6 MB, free: 15.99 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.493e-05/0.2649, allocations: 0 / 376.6 MB, free: 15.99 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: 149 * Number of variables: 149 Notification: Performance of Generate backend data structure: time 0.004774/0.2696, allocations: 3.588 MB / 380.2 MB, free: 12.33 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.157e-05/0.2697, allocations: 8.031 kB / 380.2 MB, free: 12.32 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003678/0.2701, allocations: 383.4 kB / 380.6 MB, free: 11.94 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003364/0.2734, allocations: 2.556 MB / 383.1 MB, free: 9.309 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.033e-05/0.2735, allocations: 36.94 kB / 383.2 MB, free: 9.273 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001188/0.2736, allocations: 51.98 kB / 383.2 MB, free: 9.223 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001433/0.275, allocations: 0.7655 MB / 384 MB, free: 8.453 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.286e-05/0.2751, allocations: 0 / 384 MB, free: 8.453 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.856e-05/0.2751, allocations: 16 kB / 384 MB, free: 8.438 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.824e-05/0.2752, allocations: 19.98 kB / 384 MB, free: 8.418 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001703/0.2769, allocations: 0.8514 MB / 384.9 MB, free: 7.562 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004455/0.2813, allocations: 2.987 MB / 387.9 MB, free: 4.504 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001632/0.283, allocations: 0.7872 MB / 388.7 MB, free: 3.711 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001427/0.2844, allocations: 0.9566 MB / 389.6 MB, free: 2.75 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02805/0.3125, allocations: 30.13 MB / 419.7 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00115/0.3137, allocations: 0.5995 MB / 420.3 MB, free: 15.91 MB / 366.1 MB Notification: Performance of pre-optimization done (n=96): time 2.685e-06/0.3137, allocations: 0 / 420.3 MB, free: 15.91 MB / 366.1 MB Notification: Performance of matching and sorting (n=99): time 0.01137/0.3251, allocations: 5.236 MB / 425.6 MB, free: 10.41 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.23e-05/0.3251, allocations: 64.39 kB / 425.6 MB, free: 10.34 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002924/0.328, allocations: 2.717 MB / 428.4 MB, free: 7.605 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.34e-05/0.3281, allocations: 45.69 kB / 428.4 MB, free: 7.555 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009995/0.3291, allocations: 1.299 MB / 429.7 MB, free: 6.25 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002676/0.3294, allocations: 331.2 kB / 430 MB, free: 5.922 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003467/0.3298, allocations: 238.2 kB / 430.3 MB, free: 5.68 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000146/0.3299, allocations: 341.9 kB / 430.6 MB, free: 5.34 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001198/0.3311, allocations: 478 kB / 431.1 MB, free: 4.875 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001323/0.3325, allocations: 0.6475 MB / 431.7 MB, free: 4.16 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002511/0.335, allocations: 1.13 MB / 432.8 MB, free: 2.969 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.651e-06/0.335, allocations: 4 kB / 432.8 MB, free: 2.965 MB / 366.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003925/0.3389, allocations: 1.975 MB / 434.8 MB, free: 0.9102 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.28e-05/0.339, allocations: 11.94 kB / 434.8 MB, free: 0.8984 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001501/0.3391, allocations: 124 kB / 434.9 MB, free: 0.7773 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006729/0.3398, allocations: 268.8 kB / 435.2 MB, free: 496 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008509/0.3407, allocations: 195.7 kB / 435.4 MB, free: 300 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009033/0.3497, allocations: 13.24 MB / 448.6 MB, free: 1.727 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001246/0.351, allocations: 92.02 kB / 448.7 MB, free: 1.637 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001193/0.3511, allocations: 59.98 kB / 448.8 MB, free: 1.578 MB / 382.1 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 (v.counter,$PRE.v.counter,vin2.counter,$PRE.vin2.counter,vin1.counter,$PRE.vin1.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin2.counter2,$PRE.vin2.counter2,vin2.T0,$PRE.vin2.T0,vin1.counter2,$PRE.vin1.counter2,vin1.T0,$PRE.vin1.T0,$whenCondition1,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,3,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007874/0.3519, allocations: 430.1 kB / 449.2 MB, free: 1.148 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003836/0.3523, allocations: 371.5 kB / 449.6 MB, free: 0.7812 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1385/0.4908, allocations: 2.223 MB / 451.8 MB, free: 117 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.993e-05/0.4908, allocations: 12.5 kB / 451.8 MB, free: 117 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.148e-05/0.4909, allocations: 4.219 kB / 451.8 MB, free: 117 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/0.4909, allocations: 4.25 kB / 451.8 MB, free: 117 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001833/0.4927, allocations: 1.554 MB / 453.4 MB, free: 116.7 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001443/0.4929, allocations: 113.5 kB / 453.5 MB, free: 116.7 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007114/0.4936, allocations: 132.6 kB / 453.6 MB, free: 116.7 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005936/0.4942, allocations: 272.4 kB / 453.9 MB, free: 116.6 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.657e-05/0.4943, allocations: 43.09 kB / 453.9 MB, free: 116.6 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005757/0.5001, allocations: 13.24 MB / 467.2 MB, free: 103.4 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.5001, allocations: 0 / 467.2 MB, free: 103.4 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004766/0.5049, allocations: 2.555 MB / 469.7 MB, free: 102.4 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007426/0.5056, allocations: 491.9 kB / 470.2 MB, free: 102.2 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003209/0.506, allocations: 22.58 kB / 470.2 MB, free: 102.2 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009191/0.5069, allocations: 82.36 kB / 470.3 MB, free: 102.1 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003313/0.5072, allocations: 136.4 kB / 470.4 MB, free: 102.1 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.557e-05/0.5073, allocations: 51.67 kB / 470.5 MB, free: 102 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001949/0.5093, allocations: 1.78 MB / 472.3 MB, free: 101.1 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5093, allocations: 0 / 472.3 MB, free: 101.1 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001395/0.5107, allocations: 0.6578 MB / 472.9 MB, free: 101 MB / 382.1 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) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,3,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009951/0.5117, allocations: 0.8293 MB / 473.7 MB, free: 100.8 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003225/0.5149, allocations: 2.518 MB / 476.3 MB, free: 98.27 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.5149, allocations: 0 / 476.3 MB, free: 98.27 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001901/0.5169, allocations: 1.955 MB / 478.2 MB, free: 96.18 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001697/0.5186, allocations: 496.3 kB / 478.7 MB, free: 95.71 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005318/0.5239, allocations: 5.537 MB / 484.2 MB, free: 90.32 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006664/0.5246, allocations: 1.662 MB / 485.9 MB, free: 88.62 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001269/0.5259, allocations: 396.5 kB / 486.3 MB, free: 88.24 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002556/0.5261, allocations: 167.4 kB / 486.4 MB, free: 88.07 MB / 382.1 MB Notification: Performance of SimCode: time 8.51e-07/0.5261, allocations: 0 / 486.4 MB, free: 88.07 MB / 382.1 MB Notification: Performance of Templates: time 0.04626/0.5724, allocations: 35.64 MB / 0.5099 GB, free: 52.39 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.Nor.makefile (rm -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Spice3.Examples.Nor.sim & ./Modelica_3.1_Modelica.Electrical.Spice3.Examples.Nor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1)