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.001044/0.001044, allocations: 117.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001196/0.001196, allocations: 199.9 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.329/1.329, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00103/0.00103, allocations: 59.89 kB / 358.7 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2414/0.2425, allocations: 50.55 MB / 409.2 MB, free: 1.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01196/0.2545, allocations: 14.19 MB / 423.4 MB, free: 3.344 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02229/0.2768, allocations: 20.34 MB / 443.8 MB, free: 14.93 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003197/0.28, allocations: 126.9 kB / 443.9 MB, free: 14.8 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003309/0.2834, allocations: 1.116 MB / 445 MB, free: 13.68 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006664/0.2901, allocations: 2.289 MB / 447.3 MB, free: 11.38 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0039/0.294, allocations: 1.443 MB / 448.7 MB, free: 9.922 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.008916/0.303, allocations: 6.484 MB / 455.2 MB, free: 3.418 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006978/0.3037, allocations: 428.5 kB / 455.6 MB, free: 2.965 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00137/0.3051, allocations: 1.069 MB / 456.7 MB, free: 1.891 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001031/0.3061, allocations: 1.083 MB / 457.8 MB, free: 0.8008 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001784/0.3063, allocations: 76 kB / 457.9 MB, free: 0.7266 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003505/0.3098, allocations: 1.483 MB / 459.4 MB, free: 15.24 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002654/0.3101, allocations: 317.7 kB / 459.7 MB, free: 14.93 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001028/0.3111, allocations: 1.327 MB / 461 MB, free: 13.59 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004246/0.3154, allocations: 3.706 MB / 464.7 MB, free: 9.871 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.3154, allocations: 0 / 464.7 MB, free: 9.871 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.3154, allocations: 0 / 464.7 MB, free: 9.871 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.953e-05/0.3155, allocations: 0 / 464.7 MB, free: 9.871 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.004739/0.3202, allocations: 3.689 MB / 468.4 MB, free: 6.105 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.655e-05/0.3203, allocations: 11.97 kB / 468.4 MB, free: 6.094 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000352/0.3206, allocations: 397.5 kB / 468.8 MB, free: 5.703 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003143/0.3238, allocations: 2.555 MB / 471.3 MB, free: 3.074 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.786e-05/0.3238, allocations: 36.98 kB / 471.4 MB, free: 3.039 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001129/0.3239, allocations: 51.98 kB / 471.4 MB, free: 2.988 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001433/0.3254, allocations: 0.7576 MB / 472.2 MB, free: 2.223 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.415e-05/0.3254, allocations: 0 / 472.2 MB, free: 2.223 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.922e-05/0.3255, allocations: 27.94 kB / 472.2 MB, free: 2.195 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.39e-05/0.3255, allocations: 19.98 kB / 472.2 MB, free: 2.176 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001715/0.3272, allocations: 0.8514 MB / 473.1 MB, free: 1.324 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004666/0.3319, allocations: 2.978 MB / 476.1 MB, free: 14.27 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001689/0.3336, allocations: 0.7949 MB / 476.9 MB, free: 13.47 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001362/0.335, allocations: 0.9527 MB / 477.8 MB, free: 12.52 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0281/0.3631, allocations: 30.69 MB / 0.4966 GB, free: 9.582 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001366/0.3645, allocations: 0.6035 MB / 0.4972 GB, free: 8.969 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 2.826e-06/0.3645, allocations: 0 / 0.4972 GB, free: 8.969 MB / 430.1 MB Notification: Performance of matching and sorting (n=99): time 0.0116/0.3761, allocations: 5.285 MB / 0.5023 GB, free: 3.434 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.202e-05/0.3762, allocations: 68.41 kB / 0.5024 GB, free: 3.355 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002966/0.3792, allocations: 2.692 MB / 0.505 GB, free: 0.6484 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.996e-05/0.3792, allocations: 45.7 kB / 0.5051 GB, free: 0.5977 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001024/0.3803, allocations: 1.304 MB / 0.5063 GB, free: 15.29 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002771/0.3806, allocations: 352.9 kB / 0.5067 GB, free: 14.94 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003948/0.381, allocations: 238.4 kB / 0.5069 GB, free: 14.7 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000112/0.3811, allocations: 345.9 kB / 0.5072 GB, free: 14.36 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001186/0.3823, allocations: 478 kB / 0.5077 GB, free: 13.89 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001289/0.3836, allocations: 0.6403 MB / 0.5083 GB, free: 13.18 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002427/0.386, allocations: 1.137 MB / 0.5094 GB, free: 11.98 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.386, allocations: 0 / 0.5094 GB, free: 11.98 MB / 446.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003879/0.3899, allocations: 1.989 MB / 0.5114 GB, free: 9.918 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.111e-05/0.3899, allocations: 11.94 kB / 0.5114 GB, free: 9.906 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001474/0.3901, allocations: 116 kB / 0.5115 GB, free: 9.793 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006546/0.3908, allocations: 260.6 kB / 0.5117 GB, free: 9.508 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008521/0.3916, allocations: 207.6 kB / 0.5119 GB, free: 9.305 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008918/0.4005, allocations: 14.25 MB / 0.5258 GB, free: 9.66 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001359/0.4019, allocations: 91.95 kB / 0.5259 GB, free: 9.57 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000112/0.4021, allocations: 56 kB / 0.526 GB, free: 9.516 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.0007453/0.4028, allocations: 433.5 kB / 0.5264 GB, free: 9.082 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003604/0.4032, allocations: 381.6 kB / 0.5268 GB, free: 8.707 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004588/0.4078, allocations: 2.222 MB / 0.5289 GB, free: 6.402 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.367e-06/0.4078, allocations: 8 kB / 0.5289 GB, free: 6.395 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/0.4078, allocations: 4 kB / 0.5289 GB, free: 6.391 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.945e-06/0.4078, allocations: 3.984 kB / 0.529 GB, free: 6.387 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001671/0.4095, allocations: 1.539 MB / 0.5305 GB, free: 4.797 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001399/0.4096, allocations: 120 kB / 0.5306 GB, free: 4.68 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000684/0.4103, allocations: 139.8 kB / 0.5307 GB, free: 4.543 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005963/0.4109, allocations: 260.3 kB / 0.531 GB, free: 4.258 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.131e-05/0.411, allocations: 47.98 kB / 0.531 GB, free: 4.211 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2154/0.6264, allocations: 14.24 MB / 0.5449 GB, free: 119.3 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.6265, allocations: 0.5 kB / 0.5449 GB, free: 119.3 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005732/0.6322, allocations: 2.573 MB / 0.5474 GB, free: 118.7 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009367/0.6332, allocations: 0.5028 MB / 0.5479 GB, free: 118.5 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002797/0.6335, allocations: 25.39 kB / 0.5479 GB, free: 118.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000931/0.6344, allocations: 79.34 kB / 0.548 GB, free: 118.5 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003413/0.6348, allocations: 141 kB / 0.5481 GB, free: 118.5 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.392e-05/0.6349, allocations: 51.33 kB / 0.5482 GB, free: 118.4 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002103/0.637, allocations: 1.769 MB / 0.5499 GB, free: 117.8 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.637, allocations: 0 / 0.5499 GB, free: 117.8 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00177/0.6388, allocations: 0.6546 MB / 0.5506 GB, free: 117.8 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.001083/0.6398, allocations: 0.8133 MB / 0.5514 GB, free: 117.6 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003429/0.6433, allocations: 2.524 MB / 0.5538 GB, free: 116 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.6433, allocations: 0 / 0.5538 GB, free: 116 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00213/0.6454, allocations: 1.967 MB / 0.5557 GB, free: 114.5 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002257/0.6477, allocations: 0.6212 MB / 0.5563 GB, free: 114.2 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005094/0.6528, allocations: 4.754 MB / 0.561 GB, free: 110.9 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007073/0.6535, allocations: 1.66 MB / 0.5626 GB, free: 109.3 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0009446/0.6545, allocations: 391.3 kB / 0.563 GB, free: 108.9 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002478/0.6547, allocations: 171.4 kB / 0.5631 GB, free: 108.8 MB / 462.1 MB Notification: Performance of SimCode: time 1.182e-06/0.6548, allocations: 0 / 0.5631 GB, free: 108.8 MB / 462.1 MB Notification: Performance of Templates: time 0.04891/0.7037, allocations: 37.23 MB / 0.5995 GB, free: 71.65 MB / 462.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 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1)