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.0008981/0.0008981, allocations: 87.11 kB / 15.06 MB, free: 1.09 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.001052/0.001052, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.534/1.534, allocations: 205.4 MB / 222.1 MB, free: 5.387 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.0005994/0.0005996, allocations: 16 kB / 278.9 MB, free: 12.7 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2522/0.2528, allocations: 47.6 MB / 326.5 MB, free: 1.41 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01182/0.2647, allocations: 11.96 MB / 338.4 MB, free: 7.48 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.02036/0.2851, allocations: 17.62 MB / 356.1 MB, free: 5.812 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001829/0.287, allocations: 63.5 kB / 356.1 MB, free: 5.75 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0026/0.2896, allocations: 0.8398 MB / 357 MB, free: 4.906 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006795/0.2964, allocations: 1.797 MB / 358.8 MB, free: 3.098 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004148/0.3006, allocations: 1.069 MB / 359.8 MB, free: 2.023 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01034/0.3109, allocations: 5.888 MB / 365.7 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000875/0.3118, allocations: 395.3 kB / 366.1 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001793/0.3136, allocations: 0.8435 MB / 366.9 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001481/0.3151, allocations: 0.963 MB / 367.9 MB, free: 9.883 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001581/0.3153, allocations: 40 kB / 367.9 MB, free: 9.844 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004042/0.3194, allocations: 1.081 MB / 369 MB, free: 8.762 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003199/0.3197, allocations: 270 kB / 369.3 MB, free: 8.496 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001286/0.321, allocations: 0.6053 MB / 369.9 MB, free: 7.883 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002939/0.3239, allocations: 2.652 MB / 372.5 MB, free: 5.223 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.093e-06/0.324, allocations: 0 / 372.5 MB, free: 5.223 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.324, allocations: 0 / 372.5 MB, free: 5.223 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.736e-05/0.324, allocations: 0 / 372.5 MB, free: 5.223 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.004657/0.3287, allocations: 3.182 MB / 375.7 MB, free: 1.969 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.782e-05/0.3288, allocations: 20.02 kB / 375.8 MB, free: 1.949 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003685/0.3291, allocations: 375.4 kB / 376.1 MB, free: 1.578 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003344/0.3325, allocations: 2.4 MB / 378.5 MB, free: 15.11 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.692e-05/0.3325, allocations: 41 kB / 378.6 MB, free: 15.07 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001231/0.3327, allocations: 51.98 kB / 378.6 MB, free: 15.02 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001418/0.3341, allocations: 0.785 MB / 379.4 MB, free: 14.23 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.356e-05/0.3341, allocations: 0 / 379.4 MB, free: 14.23 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.755e-05/0.3342, allocations: 20 kB / 379.4 MB, free: 14.21 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.278e-05/0.3342, allocations: 19.98 kB / 379.4 MB, free: 14.19 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00169/0.3359, allocations: 0.9217 MB / 380.4 MB, free: 13.26 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00427/0.3402, allocations: 3.011 MB / 383.4 MB, free: 10.18 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001656/0.3419, allocations: 0.8457 MB / 384.2 MB, free: 9.332 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001572/0.3435, allocations: 0.9917 MB / 385.2 MB, free: 8.332 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0283/0.3718, allocations: 30.17 MB / 415.4 MB, free: 6.059 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00115/0.373, allocations: 0.623 MB / 416 MB, free: 5.43 MB / 350.1 MB Notification: Performance of pre-optimization done (n=96): time 2.745e-06/0.373, allocations: 8 kB / 416 MB, free: 5.422 MB / 350.1 MB Notification: Performance of matching and sorting (n=99): time 0.0115/0.3845, allocations: 5.721 MB / 421.7 MB, free: 15.44 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.216e-05/0.3846, allocations: 72.41 kB / 421.8 MB, free: 15.36 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003209/0.3878, allocations: 2.678 MB / 424.5 MB, free: 12.67 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.402e-05/0.3879, allocations: 45.7 kB / 424.5 MB, free: 12.62 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001086/0.389, allocations: 1.303 MB / 425.8 MB, free: 11.31 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002558/0.3893, allocations: 335.2 kB / 426.2 MB, free: 10.98 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.139e-05/0.3893, allocations: 20 kB / 426.2 MB, free: 10.96 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001294/0.3895, allocations: 345.9 kB / 426.5 MB, free: 10.61 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001214/0.3907, allocations: 0.5254 MB / 427 MB, free: 10.09 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00131/0.392, allocations: 0.7056 MB / 427.7 MB, free: 9.316 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001218/0.3932, allocations: 0.5691 MB / 428.3 MB, free: 8.746 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.14e-06/0.3933, allocations: 11.94 kB / 428.3 MB, free: 8.734 MB / 366.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003803/0.3971, allocations: 2.089 MB / 430.4 MB, free: 6.566 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.353e-05/0.3971, allocations: 11.95 kB / 430.4 MB, free: 6.555 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001763/0.3973, allocations: 124 kB / 430.5 MB, free: 6.434 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006362/0.3979, allocations: 272.8 kB / 430.8 MB, free: 6.137 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008379/0.3988, allocations: 223.7 kB / 431 MB, free: 5.918 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008439/0.4072, allocations: 13.23 MB / 444.3 MB, free: 7.355 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001342/0.4086, allocations: 120 kB / 444.4 MB, free: 7.238 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001225/0.4087, allocations: 64 kB / 444.4 MB, free: 7.176 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.0009149/0.4096, allocations: 425.5 kB / 444.9 MB, free: 6.75 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003531/0.41, allocations: 371.5 kB / 445.2 MB, free: 6.383 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005091/0.4151, allocations: 2.347 MB / 447.6 MB, free: 3.953 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.029e-05/0.4151, allocations: 8 kB / 447.6 MB, free: 3.945 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.425e-06/0.4151, allocations: 11.98 kB / 447.6 MB, free: 3.934 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.033e-05/0.4152, allocations: 7.984 kB / 447.6 MB, free: 3.926 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001953/0.4171, allocations: 1.551 MB / 449.1 MB, free: 2.324 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000161/0.4173, allocations: 116 kB / 449.3 MB, free: 2.211 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006955/0.418, allocations: 167.8 kB / 449.4 MB, free: 2.047 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005866/0.4186, allocations: 268.3 kB / 449.7 MB, free: 1.754 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.645e-05/0.4187, allocations: 43.98 kB / 449.7 MB, free: 1.711 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2086/0.6273, allocations: 13.23 MB / 463 MB, free: 105 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.6274, allocations: 2.219 kB / 463 MB, free: 105 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006219/0.6336, allocations: 2.735 MB / 465.7 MB, free: 104.4 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001166/0.6348, allocations: 498 kB / 466.2 MB, free: 104.1 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003639/0.6352, allocations: 18.12 kB / 466.2 MB, free: 104.1 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009471/0.6361, allocations: 115.2 kB / 466.3 MB, free: 104.1 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004294/0.6366, allocations: 145 kB / 466.5 MB, free: 104.1 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001258/0.6367, allocations: 50.58 kB / 466.5 MB, free: 104.1 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002596/0.6393, allocations: 1.747 MB / 468.2 MB, free: 103.4 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.3e-07/0.6393, allocations: 0 / 468.2 MB, free: 103.4 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001727/0.6411, allocations: 0.6539 MB / 468.9 MB, free: 103.4 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.001159/0.6422, allocations: 0.7948 MB / 469.7 MB, free: 103.3 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00351/0.6457, allocations: 2.641 MB / 472.3 MB, free: 101.6 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.15e-06/0.6458, allocations: 0 / 472.3 MB, free: 101.6 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002175/0.6479, allocations: 2.02 MB / 474.4 MB, free: 100.1 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001866/0.6498, allocations: 0.501 MB / 474.9 MB, free: 99.74 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005766/0.6556, allocations: 5.34 MB / 480.2 MB, free: 94.48 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007546/0.6564, allocations: 1.666 MB / 481.9 MB, free: 92.78 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001282/0.6577, allocations: 391.4 kB / 482.2 MB, free: 92.39 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002509/0.6579, allocations: 163.4 kB / 482.4 MB, free: 92.23 MB / 382.1 MB Notification: Performance of SimCode: time 1.422e-06/0.6579, allocations: 0 / 482.4 MB, free: 92.23 MB / 382.1 MB Notification: Performance of Templates: time 0.04812/0.7061, allocations: 34.41 MB / 0.5047 GB, free: 57.79 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)