Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Electrical.Spice3.Examples.Nor") translateModel(Modelica.Electrical.Spice3.Examples.Nor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.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.001246/0.001246, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001194/0.001194, allocations: 198.6 kB / 16.53 MB, free: 6.391 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.285/1.285, allocations: 205.1 MB / 222.4 MB, free: 4.602 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.00116/0.00116, allocations: 55.94 kB / 278.7 MB, free: 12.37 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1889/0.1901, allocations: 46.63 MB / 325.3 MB, free: 1.863 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01222/0.2024, allocations: 13.53 MB / 338.8 MB, free: 6.348 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.02148/0.2239, allocations: 19.36 MB / 358.2 MB, free: 2.906 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001481/0.2254, allocations: 67.44 kB / 358.3 MB, free: 2.84 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002336/0.2278, allocations: 1.098 MB / 359.4 MB, free: 1.734 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005138/0.2329, allocations: 2.258 MB / 361.6 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003139/0.2361, allocations: 1.381 MB / 363 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007979/0.2441, allocations: 6.258 MB / 369.3 MB, free: 7.797 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005733/0.2447, allocations: 432.5 kB / 369.7 MB, free: 7.344 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009544/0.2456, allocations: 0.9525 MB / 370.6 MB, free: 6.387 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001032/0.2467, allocations: 1.056 MB / 371.7 MB, free: 5.324 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001984/0.2469, allocations: 84 kB / 371.8 MB, free: 5.242 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00295/0.2498, allocations: 1.167 MB / 372.9 MB, free: 4.074 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002864/0.2501, allocations: 321.7 kB / 373.3 MB, free: 3.758 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001116/0.2512, allocations: 1.331 MB / 374.6 MB, free: 2.418 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003743/0.255, allocations: 3.685 MB / 378.3 MB, free: 14.71 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.329e-05/0.255, allocations: 3.938 kB / 378.3 MB, free: 14.71 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.255, allocations: 0 / 378.3 MB, free: 14.71 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.448e-05/0.2551, allocations: 0 / 378.3 MB, free: 14.71 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.004647/0.2597, allocations: 3.588 MB / 381.9 MB, free: 11.05 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.561e-05/0.2598, allocations: 8.031 kB / 381.9 MB, free: 11.04 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003658/0.2601, allocations: 379.4 kB / 382.2 MB, free: 10.67 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003203/0.2633, allocations: 2.56 MB / 384.8 MB, free: 8.027 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.218e-05/0.2634, allocations: 40.94 kB / 384.8 MB, free: 7.988 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001183/0.2635, allocations: 52 kB / 384.9 MB, free: 7.938 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001393/0.2649, allocations: 0.7537 MB / 385.6 MB, free: 7.176 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.322e-05/0.2649, allocations: 0 / 385.6 MB, free: 7.176 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.31e-05/0.265, allocations: 23.98 kB / 385.7 MB, free: 7.152 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.871e-05/0.265, allocations: 19.98 kB / 385.7 MB, free: 7.133 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001758/0.2668, allocations: 0.8553 MB / 386.5 MB, free: 6.273 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004477/0.2713, allocations: 2.984 MB / 389.5 MB, free: 3.223 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001727/0.273, allocations: 0.7949 MB / 390.3 MB, free: 2.414 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001451/0.2745, allocations: 0.9527 MB / 391.3 MB, free: 1.465 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02827/0.3028, allocations: 30.13 MB / 421.4 MB, free: 15.23 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001172/0.304, allocations: 0.5996 MB / 422 MB, free: 14.62 MB / 366.1 MB Notification: Performance of pre-optimization done (n=96): time 2.865e-06/0.304, allocations: 0 / 422 MB, free: 14.62 MB / 366.1 MB Notification: Performance of matching and sorting (n=99): time 0.01185/0.3159, allocations: 5.232 MB / 427.2 MB, free: 9.129 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.708e-05/0.316, allocations: 64.34 kB / 427.3 MB, free: 9.055 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003315/0.3193, allocations: 2.721 MB / 430 MB, free: 6.32 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.244e-05/0.3194, allocations: 45.7 kB / 430.1 MB, free: 6.27 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001044/0.3204, allocations: 1.296 MB / 431.4 MB, free: 4.969 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00025/0.3207, allocations: 335.2 kB / 431.7 MB, free: 4.637 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003293/0.321, allocations: 234.2 kB / 431.9 MB, free: 4.402 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001163/0.3212, allocations: 345.9 kB / 432.3 MB, free: 4.059 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001232/0.3224, allocations: 482 kB / 432.7 MB, free: 3.586 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001342/0.3237, allocations: 0.6431 MB / 433.4 MB, free: 2.879 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002559/0.3263, allocations: 1.13 MB / 434.5 MB, free: 1.688 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.3263, allocations: 4 kB / 434.5 MB, free: 1.684 MB / 366.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003853/0.3302, allocations: 1.98 MB / 436.5 MB, free: 15.62 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.923e-05/0.3302, allocations: 15.91 kB / 436.5 MB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001561/0.3304, allocations: 116 kB / 436.6 MB, free: 15.5 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006844/0.3311, allocations: 272.4 kB / 436.9 MB, free: 15.2 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000875/0.332, allocations: 191.7 kB / 437.1 MB, free: 15.01 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1554/0.4874, allocations: 14.23 MB / 451.3 MB, free: 114.8 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001564/0.489, allocations: 91.16 kB / 451.4 MB, free: 114.8 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001473/0.4891, allocations: 56.94 kB / 451.4 MB, free: 114.8 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.0008642/0.49, allocations: 431.8 kB / 451.9 MB, free: 114.6 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004596/0.4905, allocations: 371.3 kB / 452.2 MB, free: 114.6 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004978/0.4955, allocations: 2.225 MB / 454.4 MB, free: 114.3 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.064e-05/0.4955, allocations: 9.188 kB / 454.5 MB, free: 114.3 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.4955, allocations: 3.75 kB / 454.5 MB, free: 114.3 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.043e-06/0.4955, allocations: 8.984 kB / 454.5 MB, free: 114.3 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001492/0.497, allocations: 1.553 MB / 456 MB, free: 114.1 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001506/0.4972, allocations: 115.9 kB / 456.1 MB, free: 114.1 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007197/0.4979, allocations: 134.4 kB / 456.3 MB, free: 114.1 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005548/0.4985, allocations: 267.5 kB / 456.5 MB, free: 114 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.245e-05/0.4986, allocations: 43.95 kB / 456.6 MB, free: 114 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006212/0.5048, allocations: 14.25 MB / 470.8 MB, free: 99.96 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.5048, allocations: 3.938 kB / 470.8 MB, free: 99.96 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004615/0.5094, allocations: 2.545 MB / 473.4 MB, free: 98.86 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00062/0.5101, allocations: 493.3 kB / 473.9 MB, free: 98.52 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003033/0.5104, allocations: 26.95 kB / 473.9 MB, free: 98.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009448/0.5113, allocations: 85.17 kB / 474 MB, free: 98.46 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003139/0.5116, allocations: 141.4 kB / 474.1 MB, free: 98.39 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.59e-05/0.5117, allocations: 51.39 kB / 474.1 MB, free: 98.38 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001864/0.5136, allocations: 1.783 MB / 475.9 MB, free: 97.43 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5136, allocations: 3.938 kB / 475.9 MB, free: 97.43 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001188/0.5148, allocations: 0.6534 MB / 476.6 MB, free: 97.36 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.0009556/0.5158, allocations: 0.8164 MB / 477.4 MB, free: 96.7 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003607/0.5194, allocations: 2.555 MB / 480 MB, free: 94.02 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.5194, allocations: 0 / 480 MB, free: 94.02 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001975/0.5214, allocations: 1.957 MB / 481.9 MB, free: 91.91 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001401/0.5228, allocations: 0.5201 MB / 482.4 MB, free: 91.39 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005178/0.528, allocations: 4.747 MB / 487.2 MB, free: 86.66 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007206/0.5287, allocations: 1.665 MB / 488.8 MB, free: 84.96 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001168/0.5299, allocations: 391.4 kB / 489.2 MB, free: 84.58 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002505/0.5302, allocations: 167.4 kB / 489.4 MB, free: 84.41 MB / 382.1 MB Notification: Performance of SimCode: time 3.41e-07/0.5302, allocations: 0 / 489.4 MB, free: 84.41 MB / 382.1 MB Notification: Performance of Templates: time 0.04819/0.5784, allocations: 37.13 MB / 0.5142 GB, free: 47.22 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nor.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nor.sim & ./Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1)