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.001114/0.001115, allocations: 87.88 kB / 16.31 MB, free: 6.453 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.001386/0.001386, allocations: 178.3 kB / 17.21 MB, free: 6.328 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.544/1.544, allocations: 205.4 MB / 223.4 MB, free: 5.562 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.000444/0.0004442, allocations: 10.66 kB / 280.1 MB, free: 12.83 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2698/0.2702, allocations: 47.59 MB / 327.7 MB, free: 1.418 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01167/0.2819, allocations: 11.97 MB / 339.7 MB, free: 7.523 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.02898/0.311, allocations: 17.6 MB / 357.3 MB, free: 5.867 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003934/0.315, allocations: 67.44 kB / 357.4 MB, free: 5.801 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00372/0.3187, allocations: 0.8399 MB / 358.2 MB, free: 4.957 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01012/0.3289, allocations: 1.801 MB / 360 MB, free: 3.145 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004992/0.3339, allocations: 1.065 MB / 361.1 MB, free: 2.074 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01139/0.3453, allocations: 5.888 MB / 367 MB, free: 12.17 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001315/0.3467, allocations: 407.3 kB / 367.4 MB, free: 11.74 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001779/0.3485, allocations: 0.8357 MB / 368.2 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001778/0.3503, allocations: 0.9746 MB / 369.2 MB, free: 9.918 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004338/0.3507, allocations: 47.94 kB / 369.2 MB, free: 9.871 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005404/0.3562, allocations: 1.07 MB / 370.3 MB, free: 8.801 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006876/0.3569, allocations: 277.9 kB / 370.5 MB, free: 8.527 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001244/0.3582, allocations: 0.6015 MB / 371.2 MB, free: 7.918 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004004/0.3622, allocations: 2.648 MB / 373.8 MB, free: 5.262 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.3622, allocations: 0 / 373.8 MB, free: 5.262 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.3622, allocations: 0 / 373.8 MB, free: 5.262 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001419/0.3624, allocations: 0 / 373.8 MB, free: 5.262 MB / 302.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.005839/0.3682, allocations: 3.194 MB / 377 MB, free: 1.996 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.3e-05/0.3683, allocations: 8.031 kB / 377 MB, free: 1.988 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007746/0.3691, allocations: 379.4 kB / 377.4 MB, free: 1.613 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005548/0.3746, allocations: 2.4 MB / 379.8 MB, free: 15.14 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.772e-05/0.3747, allocations: 32.94 kB / 379.8 MB, free: 15.11 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003307/0.3751, allocations: 52 kB / 379.9 MB, free: 15.06 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001883/0.377, allocations: 0.785 MB / 380.6 MB, free: 14.27 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.625e-05/0.377, allocations: 3.984 kB / 380.6 MB, free: 14.27 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.729e-05/0.3771, allocations: 16 kB / 380.7 MB, free: 14.25 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.734e-05/0.3771, allocations: 23.92 kB / 380.7 MB, free: 14.23 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001967/0.3791, allocations: 0.9178 MB / 381.6 MB, free: 13.3 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006188/0.3853, allocations: 3.015 MB / 384.6 MB, free: 10.22 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00182/0.3872, allocations: 0.8497 MB / 385.5 MB, free: 9.367 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00159/0.3888, allocations: 0.9917 MB / 386.5 MB, free: 8.367 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0354/0.4242, allocations: 30.17 MB / 416.6 MB, free: 6.094 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00131/0.4256, allocations: 0.627 MB / 417.3 MB, free: 5.461 MB / 350.1 MB Notification: Performance of pre-optimization done (n=96): time 3.076e-06/0.4256, allocations: 0 / 417.3 MB, free: 5.461 MB / 350.1 MB Notification: Performance of matching and sorting (n=99): time 0.01282/0.4384, allocations: 5.717 MB / 423 MB, free: 15.48 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.905e-05/0.4386, allocations: 68.39 kB / 423 MB, free: 15.41 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004629/0.4432, allocations: 2.682 MB / 425.7 MB, free: 12.71 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001122/0.4433, allocations: 49.62 kB / 425.8 MB, free: 12.66 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00125/0.4446, allocations: 1.299 MB / 427.1 MB, free: 11.35 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004159/0.445, allocations: 335.2 kB / 427.4 MB, free: 11.02 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.376e-05/0.4451, allocations: 16 kB / 427.4 MB, free: 11 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001821/0.4453, allocations: 349.9 kB / 427.8 MB, free: 10.66 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001323/0.4466, allocations: 0.5254 MB / 428.3 MB, free: 10.13 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001417/0.4481, allocations: 0.7095 MB / 429 MB, free: 9.355 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001351/0.4494, allocations: 0.573 MB / 429.6 MB, free: 8.781 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.781e-06/0.4494, allocations: 0 / 429.6 MB, free: 8.781 MB / 366.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004302/0.4538, allocations: 2.097 MB / 431.7 MB, free: 6.605 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.922e-05/0.4538, allocations: 11.89 kB / 431.7 MB, free: 6.594 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000172/0.454, allocations: 120 kB / 431.8 MB, free: 6.477 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007268/0.4547, allocations: 272.9 kB / 432.1 MB, free: 6.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009119/0.4557, allocations: 227.7 kB / 432.3 MB, free: 5.957 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01081/0.4665, allocations: 13.23 MB / 445.5 MB, free: 7.395 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001942/0.4685, allocations: 128 kB / 445.6 MB, free: 7.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003728/0.4689, allocations: 56 kB / 445.7 MB, free: 7.215 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 ($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 () * 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 (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.001788/0.4707, allocations: 425.5 kB / 446.1 MB, free: 6.789 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001283/0.472, allocations: 379.5 kB / 446.5 MB, free: 6.414 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006471/0.4785, allocations: 2.34 MB / 448.8 MB, free: 3.992 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.668e-05/0.4785, allocations: 16 kB / 448.8 MB, free: 3.977 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.433e-05/0.4785, allocations: 4 kB / 448.8 MB, free: 3.973 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.294e-05/0.4786, allocations: 7.922 kB / 448.8 MB, free: 3.965 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003434/0.482, allocations: 1.547 MB / 450.4 MB, free: 2.367 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001873/0.4822, allocations: 108 kB / 450.5 MB, free: 2.262 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006988/0.4829, allocations: 171.8 kB / 450.7 MB, free: 2.094 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006547/0.4836, allocations: 264.3 kB / 450.9 MB, free: 1.805 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001198/0.4837, allocations: 47.97 kB / 451 MB, free: 1.758 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1954/0.6791, allocations: 13.23 MB / 464.2 MB, free: 105.2 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.6792, allocations: 0 / 464.2 MB, free: 105.2 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005215/0.6844, allocations: 2.738 MB / 466.9 MB, free: 104.5 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000852/0.6853, allocations: 495.7 kB / 467.4 MB, free: 104.3 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003038/0.6856, allocations: 17.88 kB / 467.4 MB, free: 104.3 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008851/0.6865, allocations: 115.9 kB / 467.6 MB, free: 104.3 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003692/0.6869, allocations: 145.3 kB / 467.7 MB, free: 104.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001019/0.687, allocations: 54.52 kB / 467.7 MB, free: 104.2 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002167/0.6891, allocations: 1.748 MB / 469.5 MB, free: 103.6 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6891, allocations: 3.719 kB / 469.5 MB, free: 103.6 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0015/0.6906, allocations: 0.6594 MB / 470.2 MB, free: 103.5 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 (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.001041/0.6917, allocations: 0.7873 MB / 470.9 MB, free: 103.4 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003248/0.695, allocations: 2.64 MB / 473.6 MB, free: 101.8 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.695, allocations: 0 / 473.6 MB, free: 101.8 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002127/0.6971, allocations: 2.018 MB / 475.6 MB, free: 100.2 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001987/0.6991, allocations: 0.4959 MB / 476.1 MB, free: 99.89 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005722/0.7048, allocations: 5.349 MB / 481.5 MB, free: 94.62 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007213/0.7056, allocations: 1.662 MB / 483.1 MB, free: 92.93 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001254/0.7069, allocations: 399.3 kB / 483.5 MB, free: 92.54 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002543/0.7071, allocations: 167.4 kB / 483.7 MB, free: 92.38 MB / 382.1 MB Notification: Performance of SimCode: time 9.62e-07/0.7071, allocations: 0 / 483.7 MB, free: 92.38 MB / 382.1 MB Notification: Performance of Templates: time 0.04751/0.7546, allocations: 34.4 MB / 0.5059 GB, free: 57.93 MB / 382.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)