Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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="mat",numberOfIntervals=5000,variableFilter="time|mn1.Dinternal|mn1.Sinternal|mn2.Dinternal|mn2.Sinternal|mp1.Dinternal|mp1.Sinternal|mp2.Dinternal|mp2.Sinternal",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor") translateModel(Modelica.Electrical.Spice3.Examples.Nor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mn1.Dinternal|mn1.Sinternal|mn2.Dinternal|mn2.Sinternal|mp1.Dinternal|mp1.Sinternal|mp2.Dinternal|mp2.Sinternal",fileNamePrefix="Modelica_3.2.3_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.001051/0.001051, allocations: 109.3 kB / 18.37 MB, free: 4.766 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.00103/0.00103, allocations: 187 kB / 19.3 MB, free: 3.844 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.256/1.256, allocations: 205.1 MB / 225.2 MB, free: 12.27 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.001173/0.001173, allocations: 47.94 kB / 282.1 MB, free: 2.473 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06932/0.0705, allocations: 46.62 MB / 328.7 MB, free: 3.785 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01211/0.08265, allocations: 13.54 MB / 342.3 MB, free: 6.18 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02332/0.106, allocations: 19.37 MB / 361.6 MB, free: 2.738 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002143/0.1082, allocations: 122.9 kB / 361.8 MB, free: 2.617 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003659/0.1119, allocations: 1.096 MB / 362.8 MB, free: 1.508 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008924/0.1208, allocations: 2.254 MB / 365.1 MB, free: 15.23 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005507/0.1264, allocations: 1.385 MB / 366.5 MB, free: 13.85 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01317/0.1396, allocations: 6.281 MB / 372.8 MB, free: 7.547 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009469/0.1405, allocations: 432.5 kB / 373.2 MB, free: 7.094 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001607/0.1422, allocations: 0.9758 MB / 374.2 MB, free: 6.113 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001558/0.1437, allocations: 1.056 MB / 375.2 MB, free: 5.051 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002721/0.144, allocations: 76 kB / 375.3 MB, free: 4.977 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003853/0.1479, allocations: 1.159 MB / 376.5 MB, free: 3.816 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003733/0.1483, allocations: 321.7 kB / 376.8 MB, free: 3.5 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001509/0.1498, allocations: 1.339 MB / 378.1 MB, free: 2.152 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1499/0.2997, allocations: 3.704 MB / 381.8 MB, free: 25.3 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.2997, allocations: 3.188 kB / 381.8 MB, free: 25.3 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.2998, allocations: 1.375 kB / 381.8 MB, free: 25.3 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.469e-05/0.2998, allocations: 0 / 381.8 MB, free: 25.3 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.004677/0.3045, allocations: 3.576 MB / 385.4 MB, free: 23.29 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.713e-05/0.3046, allocations: 9.734 kB / 385.4 MB, free: 23.29 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003576/0.3049, allocations: 388.2 kB / 385.8 MB, free: 23.09 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00315/0.3081, allocations: 2.533 MB / 388.3 MB, free: 22.31 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.276e-05/0.3081, allocations: 40.97 kB / 388.4 MB, free: 22.31 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001199/0.3082, allocations: 50.2 kB / 388.4 MB, free: 22.31 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00144/0.3097, allocations: 0.7548 MB / 389.2 MB, free: 22.27 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.524e-05/0.3097, allocations: 0 / 389.2 MB, free: 22.27 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.177e-05/0.3098, allocations: 19.38 kB / 389.2 MB, free: 22.27 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.063e-05/0.3098, allocations: 23.33 kB / 389.2 MB, free: 22.27 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001739/0.3116, allocations: 0.8573 MB / 390.1 MB, free: 22.26 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004438/0.316, allocations: 2.976 MB / 393 MB, free: 21.79 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001665/0.3177, allocations: 0.7957 MB / 393.8 MB, free: 21.75 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001313/0.319, allocations: 0.9521 MB / 394.8 MB, free: 21.74 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02299/0.342, allocations: 30.13 MB / 424.9 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001172/0.3432, allocations: 0.5957 MB / 425.5 MB, free: 10.68 MB / 334.1 MB Notification: Performance of pre-optimization done (n=96): time 3.447e-06/0.3432, allocations: 2.406 kB / 425.5 MB, free: 10.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=99): time 0.0123/0.3555, allocations: 5.233 MB / 430.7 MB, free: 5.219 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.377e-05/0.3556, allocations: 60.41 kB / 430.8 MB, free: 5.148 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003098/0.3587, allocations: 2.713 MB / 433.5 MB, free: 2.422 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.577e-05/0.3588, allocations: 46.55 kB / 433.6 MB, free: 2.371 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001016/0.3598, allocations: 1.299 MB / 434.9 MB, free: 1.07 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002569/0.3601, allocations: 339.8 kB / 435.2 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003526/0.3605, allocations: 234.2 kB / 435.4 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001116/0.3606, allocations: 349.9 kB / 435.8 MB, free: 164 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001246/0.3618, allocations: 478 kB / 436.2 MB, free: 15.69 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001335/0.3632, allocations: 0.6462 MB / 436.9 MB, free: 14.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002536/0.3657, allocations: 1.128 MB / 438 MB, free: 13.81 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.971e-06/0.3657, allocations: 8 kB / 438 MB, free: 13.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.00386/0.3696, allocations: 1.986 MB / 440 MB, free: 11.79 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.907e-05/0.3696, allocations: 8 kB / 440 MB, free: 11.78 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001522/0.3698, allocations: 117.2 kB / 440.1 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006641/0.3705, allocations: 271.6 kB / 440.4 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008822/0.3714, allocations: 197.4 kB / 440.6 MB, free: 11.19 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008828/0.3802, allocations: 14.25 MB / 454.8 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001581/0.3818, allocations: 87.89 kB / 454.9 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001224/0.3819, allocations: 56 kB / 455 MB, free: 11.5 MB / 366.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.0007836/0.3827, allocations: 427.6 kB / 455.4 MB, free: 11.08 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003629/0.3831, allocations: 375.5 kB / 455.8 MB, free: 10.71 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00467/0.3878, allocations: 2.21 MB / 458 MB, free: 8.43 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.035e-05/0.3878, allocations: 7.922 kB / 458 MB, free: 8.422 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001463/0.388, allocations: 116 kB / 458.1 MB, free: 8.309 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007739/0.3887, allocations: 0.4887 MB / 458.6 MB, free: 7.797 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000316/0.3891, allocations: 16.98 kB / 458.6 MB, free: 7.781 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009666/0.39, allocations: 87.88 kB / 458.7 MB, free: 7.695 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002771/0.3903, allocations: 140.8 kB / 458.8 MB, free: 7.559 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004278/0.3946, allocations: 1.583 MB / 460.4 MB, free: 5.961 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004541/0.3992, allocations: 2.259 MB / 462.7 MB, free: 3.691 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001295/0.4005, allocations: 0.5231 MB / 463.2 MB, free: 3.168 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002179/0.4027, allocations: 1.78 MB / 465 MB, free: 1.383 MB / 366.1 MB Notification: Performance of Backend: time 4.31e-07/0.4027, allocations: 0 / 465 MB, free: 1.383 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004624/0.4073, allocations: 2.963 MB / 467.9 MB, free: 14.46 MB / 382.1 MB Notification: Performance of SimCode: time 0.006907/0.4142, allocations: 5.78 MB / 473.7 MB, free: 8.633 MB / 382.1 MB Notification: Performance of Templates: time 0.0601/0.4743, allocations: 39.88 MB / 0.5015 GB, free: 0.8789 MB / 414.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1)