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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001078/0.001077, allocations: 98.62 kB / 16.5 MB, free: 6.688 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.00104/0.00104, allocations: 193.9 kB / 17.42 MB, free: 6.09 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.361/1.361, allocations: 205.1 MB / 223.3 MB, free: 12.48 MB / 190.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.002005/0.002005, allocations: 47.92 kB / 279.3 MB, free: 3.605 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.1147, allocations: 46.64 MB / 326 MB, free: 4.902 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01366/0.1284, allocations: 13.42 MB / 339.4 MB, free: 7.43 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0208/0.1492, allocations: 19.52 MB / 358.9 MB, free: 3.836 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001751/0.151, allocations: 67.44 kB / 359 MB, free: 3.77 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002524/0.1536, allocations: 0.9505 MB / 359.9 MB, free: 2.809 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005743/0.1593, allocations: 1.891 MB / 361.8 MB, free: 0.9062 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003675/0.163, allocations: 1.156 MB / 363 MB, free: 15.75 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.009018/0.172, allocations: 6.163 MB / 369.1 MB, free: 9.562 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006741/0.1727, allocations: 408.9 kB / 369.5 MB, free: 9.133 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001244/0.174, allocations: 0.9289 MB / 370.4 MB, free: 8.199 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009659/0.175, allocations: 1.04 MB / 371.5 MB, free: 7.152 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001873/0.1752, allocations: 55.94 kB / 371.5 MB, free: 7.098 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003867/0.179, allocations: 1.128 MB / 372.7 MB, free: 5.969 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003232/0.1794, allocations: 301.7 kB / 373 MB, free: 5.672 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001392/0.1808, allocations: 1.308 MB / 374.3 MB, free: 4.355 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004413/0.1852, allocations: 3.615 MB / 377.9 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.1852, allocations: 0 / 377.9 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1853, allocations: 0 / 377.9 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.34e-05/0.1853, allocations: 0 / 377.9 MB, free: 0.7266 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.1322/0.3175, allocations: 3.584 MB / 381.5 MB, free: 53.88 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.944e-05/0.3176, allocations: 9.406 kB / 381.5 MB, free: 53.88 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006786/0.3183, allocations: 379.5 kB / 381.8 MB, free: 53.68 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003616/0.3219, allocations: 2.564 MB / 384.4 MB, free: 52.55 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.069e-05/0.322, allocations: 38.94 kB / 384.5 MB, free: 52.53 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001238/0.3221, allocations: 53.16 kB / 384.5 MB, free: 52.51 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001491/0.3236, allocations: 0.7558 MB / 385.3 MB, free: 52.25 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.422e-05/0.3236, allocations: 0 / 385.3 MB, free: 52.25 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.25e-05/0.3237, allocations: 25.28 kB / 385.3 MB, free: 52.23 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.235e-05/0.3237, allocations: 20.41 kB / 385.3 MB, free: 52.22 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001788/0.3255, allocations: 0.8541 MB / 386.2 MB, free: 52 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004811/0.3304, allocations: 2.985 MB / 389.1 MB, free: 50.47 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001609/0.332, allocations: 0.7904 MB / 389.9 MB, free: 50.06 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001336/0.3333, allocations: 0.9554 MB / 390.9 MB, free: 49.64 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02215/0.3555, allocations: 30.14 MB / 421 MB, free: 19.73 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000973/0.3565, allocations: 0.5952 MB / 421.6 MB, free: 19.12 MB / 318.1 MB Notification: Performance of pre-optimization done (n=96): time 2.545e-06/0.3565, allocations: 0 / 421.6 MB, free: 19.12 MB / 318.1 MB Notification: Performance of matching and sorting (n=99): time 0.01041/0.3669, allocations: 5.234 MB / 426.9 MB, free: 13.71 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.72e-05/0.367, allocations: 60.41 kB / 426.9 MB, free: 13.64 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002392/0.3694, allocations: 2.713 MB / 429.6 MB, free: 10.91 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.53e-05/0.3695, allocations: 45.7 kB / 429.7 MB, free: 10.86 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007558/0.3702, allocations: 1.299 MB / 431 MB, free: 9.559 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001724/0.3704, allocations: 335.2 kB / 431.3 MB, free: 9.227 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002894/0.3707, allocations: 230.3 kB / 431.5 MB, free: 8.996 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.562e-05/0.3708, allocations: 345.9 kB / 431.9 MB, free: 8.652 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001099/0.3719, allocations: 485.9 kB / 432.3 MB, free: 8.18 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001113/0.373, allocations: 0.647 MB / 433 MB, free: 7.465 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002119/0.3751, allocations: 1.128 MB / 434.1 MB, free: 6.277 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.3751, allocations: 4 kB / 434.1 MB, free: 6.273 MB / 318.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003335/0.3785, allocations: 1.978 MB / 436.1 MB, free: 4.215 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.503e-05/0.3785, allocations: 12 kB / 436.1 MB, free: 4.203 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001349/0.3787, allocations: 120 kB / 436.2 MB, free: 4.086 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006359/0.3793, allocations: 270.3 kB / 436.5 MB, free: 3.797 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008117/0.3801, allocations: 191.7 kB / 436.7 MB, free: 3.609 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007757/0.3879, allocations: 13.25 MB / 449.9 MB, free: 5.055 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00147/0.3894, allocations: 91.95 kB / 450 MB, free: 4.965 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001255/0.3895, allocations: 56 kB / 450.1 MB, free: 4.91 MB / 334.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.0008111/0.3903, allocations: 438 kB / 450.5 MB, free: 4.473 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000405/0.3907, allocations: 367.6 kB / 450.9 MB, free: 4.109 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005018/0.3958, allocations: 2.223 MB / 453.1 MB, free: 1.828 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-05/0.3958, allocations: 8 kB / 453.1 MB, free: 1.82 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.466e-06/0.3958, allocations: 4 kB / 453.1 MB, free: 1.816 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.026e-05/0.3958, allocations: 3.984 kB / 453.1 MB, free: 1.812 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002145/0.398, allocations: 1.552 MB / 454.6 MB, free: 220 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001503/0.3981, allocations: 116.8 kB / 454.8 MB, free: 104 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007264/0.3989, allocations: 139.8 kB / 454.9 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006955/0.3996, allocations: 260.3 kB / 455.2 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001199/0.3997, allocations: 43.98 kB / 455.2 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00966/0.4094, allocations: 13.24 MB / 468.4 MB, free: 1.074 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.4094, allocations: 0 / 468.4 MB, free: 1.074 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006363/0.4158, allocations: 2.547 MB / 471 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001624/0.4175, allocations: 496.4 kB / 471.5 MB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007123/0.4182, allocations: 23.98 kB / 471.5 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00136/0.4196, allocations: 87.83 kB / 471.6 MB, free: 13.83 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004216/0.42, allocations: 136.8 kB / 471.7 MB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001246/0.4202, allocations: 47.97 kB / 471.8 MB, free: 13.65 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00311/0.4233, allocations: 1.786 MB / 473.5 MB, free: 11.86 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.4233, allocations: 0 / 473.5 MB, free: 11.86 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002163/0.4255, allocations: 0.6587 MB / 474.2 MB, free: 11.22 MB / 366.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.001383/0.4269, allocations: 0.827 MB / 475 MB, free: 10.41 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004167/0.431, allocations: 2.521 MB / 477.6 MB, free: 7.742 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.317e-06/0.4311, allocations: 0 / 477.6 MB, free: 7.742 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002625/0.4337, allocations: 1.948 MB / 479.5 MB, free: 5.641 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002556/0.4363, allocations: 496.4 kB / 480 MB, free: 5.152 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008299/0.4446, allocations: 5.531 MB / 485.5 MB, free: 15.59 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001466/0.4461, allocations: 1.662 MB / 487.2 MB, free: 13.91 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001551/0.4476, allocations: 395.3 kB / 487.6 MB, free: 13.52 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003855/0.448, allocations: 171.4 kB / 487.7 MB, free: 13.35 MB / 382.1 MB Notification: Performance of SimCode: time 9.82e-07/0.4481, allocations: 0 / 487.7 MB, free: 13.35 MB / 382.1 MB Notification: Performance of Templates: time 0.06239/0.5105, allocations: 35.66 MB / 0.5111 GB, free: 9.637 MB / 414.1 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)