Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001286/0.001286, allocations: 113.6 kB / 17.83 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001412/0.001412, allocations: 208.6 kB / 18.79 MB, free: 4.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.494/1.494, allocations: 230.4 MB / 250 MB, free: 9.078 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001951/0.001951, allocations: 63.84 kB / 367.3 MB, free: 7.051 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.222/0.2239, allocations: 53.32 MB / 420.6 MB, free: 8.492 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01468/0.2386, allocations: 14.24 MB / 434.9 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02444/0.2631, allocations: 20.39 MB / 455.3 MB, free: 5.738 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002086/0.2651, allocations: 126.9 kB / 455.4 MB, free: 5.613 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003229/0.2684, allocations: 1.132 MB / 456.5 MB, free: 4.473 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007798/0.2762, allocations: 2.334 MB / 458.9 MB, free: 2.121 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00446/0.2806, allocations: 1.456 MB / 460.3 MB, free: 0.6602 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009886/0.2905, allocations: 6.511 MB / 466.8 MB, free: 10.13 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005771/0.2911, allocations: 252.5 kB / 467.1 MB, free: 9.848 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001637/0.2927, allocations: 1.097 MB / 468.2 MB, free: 8.746 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001276/0.294, allocations: 1.083 MB / 469.3 MB, free: 7.656 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000158/0.2942, allocations: 76 kB / 469.3 MB, free: 7.582 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003661/0.2978, allocations: 1.479 MB / 470.8 MB, free: 6.102 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003123/0.2981, allocations: 321.8 kB / 471.1 MB, free: 5.785 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001289/0.2994, allocations: 1.327 MB / 472.4 MB, free: 4.449 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005003/0.3044, allocations: 3.698 MB / 476.1 MB, free: 0.7344 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.097e-06/0.3044, allocations: 7.984 kB / 476.2 MB, free: 0.7266 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.3044, allocations: 0 / 476.2 MB, free: 0.7266 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.532e-05/0.3045, allocations: 0 / 476.2 MB, free: 0.7266 MB / 382.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.005449/0.3099, allocations: 3.689 MB / 479.8 MB, free: 12.96 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.406e-05/0.31, allocations: 8.031 kB / 479.9 MB, free: 12.95 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004451/0.3104, allocations: 401.5 kB / 480.2 MB, free: 12.55 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003721/0.3141, allocations: 2.551 MB / 482.8 MB, free: 9.93 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.67e-05/0.3142, allocations: 37 kB / 482.8 MB, free: 9.895 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001318/0.3143, allocations: 48 kB / 482.9 MB, free: 9.848 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001531/0.3158, allocations: 0.7537 MB / 483.6 MB, free: 9.086 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.588e-05/0.3158, allocations: 0 / 483.6 MB, free: 9.086 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.2e-05/0.3159, allocations: 31.98 kB / 483.7 MB, free: 9.055 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.374e-05/0.3159, allocations: 19.98 kB / 483.7 MB, free: 9.035 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001884/0.3178, allocations: 0.8514 MB / 484.5 MB, free: 8.184 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005275/0.3231, allocations: 2.982 MB / 487.5 MB, free: 5.129 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0018/0.3249, allocations: 0.7246 MB / 488.2 MB, free: 4.398 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001575/0.3265, allocations: 0.8589 MB / 489.1 MB, free: 3.539 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03348/0.36, allocations: 30.69 MB / 0.5076 GB, free: 0.5977 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001257/0.3612, allocations: 0.5996 MB / 0.5082 GB, free: 15.98 MB / 446.1 MB Notification: Performance of pre-optimization done (n=96): time 2.585e-06/0.3612, allocations: 3.938 kB / 0.5082 GB, free: 15.98 MB / 446.1 MB Notification: Performance of matching and sorting (n=99): time 0.01227/0.3735, allocations: 5.274 MB / 0.5133 GB, free: 10.46 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.571e-05/0.3735, allocations: 64.41 kB / 0.5134 GB, free: 10.39 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003622/0.3772, allocations: 2.7 MB / 0.516 GB, free: 7.672 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 9.352e-05/0.3773, allocations: 41.7 kB / 0.5161 GB, free: 7.625 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001253/0.3785, allocations: 1.308 MB / 0.5174 GB, free: 6.312 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003237/0.3788, allocations: 349 kB / 0.5177 GB, free: 5.969 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000392/0.3792, allocations: 238.4 kB / 0.5179 GB, free: 5.727 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001622/0.3794, allocations: 341.9 kB / 0.5182 GB, free: 5.387 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001306/0.3807, allocations: 482 kB / 0.5187 GB, free: 4.914 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001425/0.3821, allocations: 0.6392 MB / 0.5193 GB, free: 4.211 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002588/0.3847, allocations: 1.133 MB / 0.5204 GB, free: 3.016 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.51e-06/0.3847, allocations: 4 kB / 0.5204 GB, free: 3.012 MB / 446.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004181/0.3889, allocations: 1.981 MB / 0.5224 GB, free: 0.9531 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.366e-05/0.3889, allocations: 11.94 kB / 0.5224 GB, free: 0.9414 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001795/0.3891, allocations: 116 kB / 0.5225 GB, free: 0.8281 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007499/0.3899, allocations: 272.6 kB / 0.5228 GB, free: 0.5312 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009118/0.3908, allocations: 199.7 kB / 0.5229 GB, free: 344 kB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01154/0.4023, allocations: 14.24 MB / 0.5369 GB, free: 0.6953 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001373/0.4037, allocations: 87.97 kB / 0.5369 GB, free: 0.6094 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000128/0.4038, allocations: 56 kB / 0.537 GB, free: 0.5547 MB / 462.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.0008093/0.4046, allocations: 433.5 kB / 0.5374 GB, free: 124 kB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.1859/0.5905, allocations: 380.7 kB / 0.5378 GB, free: 121.8 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005142/0.5956, allocations: 2.205 MB / 0.5399 GB, free: 121.4 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.168e-05/0.5956, allocations: 12.48 kB / 0.5399 GB, free: 121.4 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.016e-05/0.5957, allocations: 4.844 kB / 0.5399 GB, free: 121.4 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.094e-05/0.5957, allocations: 4.219 kB / 0.5399 GB, free: 121.4 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001757/0.5974, allocations: 1.543 MB / 0.5415 GB, free: 120.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001225/0.5975, allocations: 116.1 kB / 0.5416 GB, free: 120.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006816/0.5982, allocations: 137.8 kB / 0.5417 GB, free: 120.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005518/0.5988, allocations: 262.3 kB / 0.5419 GB, free: 120.8 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.247e-05/0.5989, allocations: 43.75 kB / 0.542 GB, free: 120.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005817/0.6047, allocations: 14.25 MB / 0.5559 GB, free: 106.6 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.6047, allocations: 2.156 kB / 0.5559 GB, free: 106.6 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004483/0.6092, allocations: 2.565 MB / 0.5584 GB, free: 105.6 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006834/0.6098, allocations: 0.5094 MB / 0.5589 GB, free: 105.4 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002906/0.6101, allocations: 15.94 kB / 0.5589 GB, free: 105.4 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009057/0.611, allocations: 78.48 kB / 0.559 GB, free: 105.4 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003049/0.6114, allocations: 147.5 kB / 0.5591 GB, free: 105.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.791e-05/0.6114, allocations: 50.64 kB / 0.5592 GB, free: 105.3 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001924/0.6134, allocations: 1.771 MB / 0.5609 GB, free: 104.7 MB / 462.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.6134, allocations: 0 / 0.5609 GB, free: 104.7 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001282/0.6147, allocations: 0.6577 MB / 0.5616 GB, free: 104.6 MB / 462.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.0009473/0.6156, allocations: 0.8141 MB / 0.5623 GB, free: 104.5 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003071/0.6187, allocations: 2.445 MB / 0.5647 GB, free: 102.6 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.6187, allocations: 192 / 0.5647 GB, free: 102.6 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001857/0.6205, allocations: 1.913 MB / 0.5666 GB, free: 100.7 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002005/0.6225, allocations: 0.6351 MB / 0.5672 GB, free: 100 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004986/0.6275, allocations: 4.741 MB / 0.5719 GB, free: 95.27 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007152/0.6282, allocations: 1.654 MB / 0.5735 GB, free: 93.59 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0009165/0.6292, allocations: 399.3 kB / 0.5738 GB, free: 93.2 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002431/0.6294, allocations: 167.4 kB / 0.574 GB, free: 93.03 MB / 462.1 MB Notification: Performance of SimCode: time 8.41e-07/0.6294, allocations: 0 / 0.574 GB, free: 93.03 MB / 462.1 MB Notification: Performance of Templates: time 0.05005/0.6795, allocations: 37.57 MB / 0.6107 GB, free: 55.71 MB / 462.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nor.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nor.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1)