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.001125/0.001125, allocations: 117.6 kB / 17.79 MB, free: 5.238 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00122/0.00122, allocations: 207.9 kB / 18.73 MB, free: 4.297 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.351/1.351, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001137/0.001137, allocations: 59.91 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2572/0.2584, allocations: 50.55 MB / 409.2 MB, free: 1.727 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01288/0.2713, allocations: 14.18 MB / 423.4 MB, free: 3.484 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02333/0.2947, allocations: 20.34 MB / 443.8 MB, free: 15.07 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00248/0.2972, allocations: 122.9 kB / 443.9 MB, free: 14.95 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003368/0.3006, allocations: 1.129 MB / 445 MB, free: 13.81 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00713/0.3078, allocations: 2.309 MB / 447.3 MB, free: 11.49 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004728/0.3125, allocations: 1.451 MB / 448.8 MB, free: 10.03 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009803/0.3223, allocations: 6.488 MB / 455.3 MB, free: 3.52 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008222/0.3232, allocations: 424.5 kB / 455.7 MB, free: 3.07 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00168/0.3249, allocations: 1.104 MB / 456.8 MB, free: 1.961 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001147/0.3261, allocations: 1.087 MB / 457.9 MB, free: 0.8672 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000179/0.3263, allocations: 72 kB / 457.9 MB, free: 0.7969 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003761/0.33, allocations: 1.483 MB / 459.4 MB, free: 15.31 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003614/0.3304, allocations: 321.8 kB / 459.7 MB, free: 15 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001338/0.3318, allocations: 1.324 MB / 461.1 MB, free: 13.66 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004891/0.3367, allocations: 3.681 MB / 464.7 MB, free: 9.969 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.3367, allocations: 4 kB / 464.7 MB, free: 9.965 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3367, allocations: 4 kB / 464.7 MB, free: 9.961 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.781e-05/0.3367, allocations: 0 / 464.7 MB, free: 9.961 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.004625/0.3414, allocations: 3.561 MB / 468.3 MB, free: 6.324 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.79e-05/0.3414, allocations: 8.031 kB / 468.3 MB, free: 6.316 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004033/0.3418, allocations: 379.4 kB / 468.7 MB, free: 5.941 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003323/0.3452, allocations: 2.517 MB / 471.2 MB, free: 3.348 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.73e-05/0.3452, allocations: 40.98 kB / 471.2 MB, free: 3.309 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001261/0.3453, allocations: 55.91 kB / 471.3 MB, free: 3.254 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001457/0.3468, allocations: 0.7537 MB / 472 MB, free: 2.492 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.671e-05/0.3468, allocations: 0 / 472 MB, free: 2.492 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.734e-05/0.3469, allocations: 24 kB / 472.1 MB, free: 2.469 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.339e-05/0.347, allocations: 19.98 kB / 472.1 MB, free: 2.449 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001757/0.3487, allocations: 0.8514 MB / 472.9 MB, free: 1.598 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005235/0.354, allocations: 2.974 MB / 475.9 MB, free: 14.55 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001723/0.3557, allocations: 0.7949 MB / 476.7 MB, free: 13.75 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001458/0.3572, allocations: 0.9487 MB / 477.7 MB, free: 12.8 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02951/0.3867, allocations: 30.69 MB / 0.4964 GB, free: 9.855 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001141/0.3879, allocations: 0.5956 MB / 0.497 GB, free: 9.25 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 3.376e-06/0.3879, allocations: 0 / 0.497 GB, free: 9.25 MB / 430.1 MB Notification: Performance of matching and sorting (n=99): time 0.01167/0.3996, allocations: 5.229 MB / 0.5021 GB, free: 3.766 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.115e-05/0.3997, allocations: 64.34 kB / 0.5022 GB, free: 3.691 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003329/0.403, allocations: 2.696 MB / 0.5048 GB, free: 0.9805 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001027/0.4031, allocations: 45.7 kB / 0.5049 GB, free: 0.9297 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001071/0.4042, allocations: 1.303 MB / 0.5061 GB, free: 15.62 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002937/0.4045, allocations: 343.1 kB / 0.5065 GB, free: 15.28 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003628/0.4049, allocations: 234.3 kB / 0.5067 GB, free: 15.04 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001375/0.405, allocations: 341.9 kB / 0.507 GB, free: 14.7 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001193/0.4062, allocations: 478 kB / 0.5075 GB, free: 14.23 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001254/0.4075, allocations: 0.6392 MB / 0.5081 GB, free: 13.53 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002389/0.4099, allocations: 1.141 MB / 0.5092 GB, free: 12.33 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.44e-06/0.4099, allocations: 4 kB / 0.5092 GB, free: 12.32 MB / 446.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003838/0.4138, allocations: 1.968 MB / 0.5111 GB, free: 10.28 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.138e-05/0.4138, allocations: 12.03 kB / 0.5111 GB, free: 10.27 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001633/0.414, allocations: 120 kB / 0.5113 GB, free: 10.15 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006717/0.4147, allocations: 260.4 kB / 0.5115 GB, free: 9.863 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008445/0.4155, allocations: 203.6 kB / 0.5117 GB, free: 9.664 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01017/0.4257, allocations: 14.25 MB / 0.5256 GB, free: 10.02 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001559/0.4273, allocations: 87.89 kB / 0.5257 GB, free: 9.934 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001591/0.4275, allocations: 60.06 kB / 0.5258 GB, free: 9.875 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.0009003/0.4284, allocations: 433.5 kB / 0.5262 GB, free: 9.441 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004388/0.4288, allocations: 367.6 kB / 0.5265 GB, free: 9.078 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004633/0.4335, allocations: 2.207 MB / 0.5287 GB, free: 6.789 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.288e-05/0.4335, allocations: 12 kB / 0.5287 GB, free: 6.777 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.908e-06/0.4335, allocations: 11.94 kB / 0.5287 GB, free: 6.766 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.055e-06/0.4335, allocations: 3.984 kB / 0.5287 GB, free: 6.762 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001947/0.4355, allocations: 1.543 MB / 0.5302 GB, free: 5.168 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001425/0.4356, allocations: 116 kB / 0.5303 GB, free: 5.055 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007005/0.4363, allocations: 139.8 kB / 0.5305 GB, free: 4.918 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006781/0.437, allocations: 260.3 kB / 0.5307 GB, free: 4.633 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.888e-05/0.4371, allocations: 43.98 kB / 0.5307 GB, free: 4.59 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2014/0.6386, allocations: 14.23 MB / 0.5446 GB, free: 120.6 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.6386, allocations: 0.625 kB / 0.5446 GB, free: 120.6 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004946/0.6436, allocations: 2.547 MB / 0.5471 GB, free: 120 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008324/0.6444, allocations: 0.4888 MB / 0.5476 GB, free: 119.8 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002846/0.6447, allocations: 21.19 kB / 0.5476 GB, free: 119.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009234/0.6456, allocations: 90.42 kB / 0.5477 GB, free: 119.8 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003756/0.646, allocations: 141.7 kB / 0.5478 GB, free: 119.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.72e-05/0.6461, allocations: 51.06 kB / 0.5479 GB, free: 119.8 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001999/0.6481, allocations: 1.773 MB / 0.5496 GB, free: 119.1 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.6481, allocations: 0 / 0.5496 GB, free: 119.1 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001437/0.6496, allocations: 0.6475 MB / 0.5503 GB, free: 119.1 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.00105/0.6506, allocations: 0.8004 MB / 0.551 GB, free: 118.9 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003348/0.654, allocations: 2.518 MB / 0.5535 GB, free: 117.3 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.654, allocations: 1.5 kB / 0.5535 GB, free: 117.3 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002069/0.6561, allocations: 1.959 MB / 0.5554 GB, free: 115.8 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002118/0.6582, allocations: 0.6235 MB / 0.556 GB, free: 115.6 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005792/0.664, allocations: 4.664 MB / 0.5606 GB, free: 112.5 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007187/0.6648, allocations: 1.656 MB / 0.5622 GB, free: 111 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001033/0.6658, allocations: 395.3 kB / 0.5626 GB, free: 110.6 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002613/0.6661, allocations: 167.4 kB / 0.5627 GB, free: 110.4 MB / 462.1 MB Notification: Performance of SimCode: time 7.12e-07/0.6661, allocations: 0 / 0.5627 GB, free: 110.4 MB / 462.1 MB Notification: Performance of Templates: time 0.05466/0.7208, allocations: 37.23 MB / 0.5991 GB, free: 73.3 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)