Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.Nor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001663/0.001663, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001672/0.001673, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.366/1.366, allocations: 227.4 MB / 247.5 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001126/0.001126, allocations: 58.97 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09218/0.09332, allocations: 50.53 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.1782/0.2715, allocations: 14.18 MB / 373.1 MB, free: 9.711 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02113/0.2927, allocations: 20.34 MB / 393.4 MB, free: 0.6133 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002654/0.2954, allocations: 125.3 kB / 393.5 MB, free: 0.543 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00316/0.2986, allocations: 1.128 MB / 394.7 MB, free: 15.95 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009596/0.3082, allocations: 2.28 MB / 396.9 MB, free: 14.55 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005594/0.3139, allocations: 1.451 MB / 398.4 MB, free: 13.79 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01194/0.3258, allocations: 6.487 MB / 404.9 MB, free: 10.75 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001036/0.3269, allocations: 440.4 kB / 405.3 MB, free: 10.52 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002559/0.3295, allocations: 1.069 MB / 406.4 MB, free: 10 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001831/0.3313, allocations: 1.081 MB / 407.5 MB, free: 9.367 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002511/0.3316, allocations: 74.94 kB / 407.5 MB, free: 9.367 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005308/0.3369, allocations: 1.486 MB / 409 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000463/0.3374, allocations: 321.7 kB / 409.3 MB, free: 8.445 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001833/0.3392, allocations: 1.331 MB / 410.7 MB, free: 7.105 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00506/0.3443, allocations: 3.681 MB / 414.4 MB, free: 3.41 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.3443, allocations: 4 kB / 414.4 MB, free: 3.406 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.3443, allocations: 0 / 414.4 MB, free: 3.406 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.461e-05/0.3444, allocations: 0 / 414.4 MB, free: 3.406 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.005411/0.3498, allocations: 3.557 MB / 417.9 MB, free: 15.77 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.464e-05/0.3499, allocations: 8.031 kB / 417.9 MB, free: 15.77 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004767/0.3503, allocations: 379.4 kB / 418.3 MB, free: 15.39 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003878/0.3542, allocations: 2.517 MB / 420.8 MB, free: 12.79 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.338e-05/0.3543, allocations: 37 kB / 420.8 MB, free: 12.75 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001263/0.3544, allocations: 59.83 kB / 420.9 MB, free: 12.7 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001411/0.3558, allocations: 0.7537 MB / 421.7 MB, free: 11.93 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.439e-05/0.3559, allocations: 4 kB / 421.7 MB, free: 11.93 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.873e-05/0.3559, allocations: 24 kB / 421.7 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.148e-05/0.356, allocations: 19.98 kB / 421.7 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001722/0.3577, allocations: 0.8514 MB / 422.6 MB, free: 11.03 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005177/0.3629, allocations: 2.963 MB / 425.5 MB, free: 8 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001707/0.3646, allocations: 0.7881 MB / 426.3 MB, free: 7.199 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001521/0.3661, allocations: 0.9642 MB / 427.3 MB, free: 6.238 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03163/0.3978, allocations: 30.7 MB / 458 MB, free: 3.293 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001134/0.399, allocations: 0.588 MB / 458.6 MB, free: 2.695 MB / 366.1 MB Notification: Performance of pre-optimization done (n=96): time 3.146e-06/0.399, allocations: 0 / 458.6 MB, free: 2.695 MB / 366.1 MB Notification: Performance of matching and sorting (n=99): time 0.01145/0.4104, allocations: 5.221 MB / 463.8 MB, free: 13.21 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.527e-05/0.4105, allocations: 72.39 kB / 463.8 MB, free: 13.13 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00297/0.4135, allocations: 2.692 MB / 466.5 MB, free: 10.43 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.23e-05/0.4136, allocations: 41.7 kB / 466.6 MB, free: 10.38 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001009/0.4146, allocations: 1.299 MB / 467.9 MB, free: 9.074 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002444/0.4149, allocations: 347 kB / 468.2 MB, free: 8.73 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003324/0.4152, allocations: 234.3 kB / 468.4 MB, free: 8.496 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001871/0.4154, allocations: 341.9 kB / 468.8 MB, free: 8.156 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001138/0.4166, allocations: 474 kB / 469.2 MB, free: 7.691 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00127/0.4178, allocations: 0.647 MB / 469.9 MB, free: 6.984 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002356/0.4202, allocations: 1.137 MB / 471 MB, free: 5.785 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.24e-06/0.4202, allocations: 4 kB / 471 MB, free: 5.781 MB / 382.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004199/0.4244, allocations: 1.976 MB / 473 MB, free: 3.723 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.304e-05/0.4245, allocations: 7.938 kB / 473 MB, free: 3.715 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001603/0.4246, allocations: 124 kB / 473.1 MB, free: 3.594 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006768/0.4253, allocations: 264.6 kB / 473.4 MB, free: 3.305 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009144/0.4263, allocations: 203.6 kB / 473.6 MB, free: 3.105 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01046/0.4367, allocations: 14.24 MB / 487.8 MB, free: 3.473 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001558/0.4383, allocations: 92.14 kB / 487.9 MB, free: 3.383 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001502/0.4385, allocations: 56 kB / 488 MB, free: 3.328 MB / 398.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.0008367/0.4393, allocations: 425.2 kB / 488.4 MB, free: 2.906 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005037/0.4399, allocations: 371.6 kB / 488.8 MB, free: 2.539 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004566/0.4444, allocations: 2.214 MB / 491 MB, free: 248 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.09e-05/0.4445, allocations: 12 kB / 491 MB, free: 236 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-06/0.4445, allocations: 4 kB / 491 MB, free: 232 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.085e-06/0.4445, allocations: 3.984 kB / 491 MB, free: 228 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001776/0.4463, allocations: 1.543 MB / 492.5 MB, free: 14.63 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001396/0.4464, allocations: 116 kB / 492.6 MB, free: 14.52 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007046/0.4471, allocations: 139.8 kB / 492.8 MB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006335/0.4478, allocations: 264.3 kB / 493 MB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.326e-05/0.4479, allocations: 47.98 kB / 493.1 MB, free: 14.04 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01027/0.4581, allocations: 14.23 MB / 0.4954 GB, free: 14.41 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.4582, allocations: 0 / 0.4954 GB, free: 14.41 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005197/0.4634, allocations: 2.547 MB / 0.4979 GB, free: 11.77 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001046/0.4644, allocations: 496.5 kB / 0.4984 GB, free: 11.26 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002941/0.4648, allocations: 16 kB / 0.4984 GB, free: 11.25 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000937/0.4657, allocations: 87.89 kB / 0.4985 GB, free: 11.16 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003343/0.466, allocations: 140.8 kB / 0.4986 GB, free: 11.02 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001016/0.4662, allocations: 55.92 kB / 0.4987 GB, free: 10.97 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002254/0.4684, allocations: 1.77 MB / 0.5004 GB, free: 9.191 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4684, allocations: 0 / 0.5004 GB, free: 9.191 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001422/0.4699, allocations: 0.6523 MB / 0.501 GB, free: 8.539 MB / 430.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.001117/0.471, allocations: 0.8101 MB / 0.5018 GB, free: 7.723 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003795/0.4748, allocations: 2.522 MB / 0.5043 GB, free: 5.043 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.4748, allocations: 0 / 0.5043 GB, free: 5.043 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002373/0.4772, allocations: 1.948 MB / 0.5062 GB, free: 2.941 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002196/0.4794, allocations: 0.6321 MB / 0.5068 GB, free: 2.305 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006218/0.4856, allocations: 4.664 MB / 0.5114 GB, free: 13.61 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001047/0.4867, allocations: 1.662 MB / 0.513 GB, free: 11.91 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001077/0.4878, allocations: 391.3 kB / 0.5134 GB, free: 11.53 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002822/0.4881, allocations: 163.4 kB / 0.5135 GB, free: 11.37 MB / 446.1 MB Notification: Performance of SimCode: time 6.81e-07/0.4881, allocations: 0 / 0.5135 GB, free: 11.37 MB / 446.1 MB Notification: Performance of Templates: time 0.2146/0.7027, allocations: 37.06 MB / 0.5497 GB, free: 137.3 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.makefile (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1)