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.001614/0.001615, allocations: 122.8 kB / 17.79 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.001908/0.001908, allocations: 197.2 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.326/1.326, allocations: 227.4 MB / 246.9 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001106/0.001106, allocations: 63.89 kB / 358.7 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2542/0.2553, allocations: 50.54 MB / 409.2 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.013/0.2684, allocations: 14.19 MB / 423.4 MB, free: 3.336 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02241/0.2908, allocations: 20.34 MB / 443.8 MB, free: 14.92 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002891/0.2938, allocations: 122.9 kB / 443.9 MB, free: 14.8 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003296/0.2971, allocations: 1.113 MB / 445 MB, free: 13.68 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009436/0.3066, allocations: 2.293 MB / 447.3 MB, free: 11.38 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004898/0.3115, allocations: 1.443 MB / 448.7 MB, free: 9.922 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009588/0.3211, allocations: 6.488 MB / 455.2 MB, free: 3.414 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007909/0.3219, allocations: 436.5 kB / 455.6 MB, free: 2.953 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001488/0.3234, allocations: 1.097 MB / 456.7 MB, free: 1.852 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001265/0.3247, allocations: 1.083 MB / 457.8 MB, free: 0.7617 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001815/0.3249, allocations: 75.98 kB / 457.9 MB, free: 0.6875 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003612/0.3285, allocations: 1.487 MB / 459.4 MB, free: 15.2 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003281/0.3289, allocations: 317.8 kB / 459.7 MB, free: 14.89 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001413/0.3303, allocations: 1.324 MB / 461 MB, free: 13.55 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005214/0.3355, allocations: 3.685 MB / 464.7 MB, free: 9.855 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.3356, allocations: 0 / 464.7 MB, free: 9.855 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.3356, allocations: 4 kB / 464.7 MB, free: 9.852 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.756e-05/0.3356, allocations: 0 / 464.7 MB, free: 9.852 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.005577/0.3412, allocations: 3.561 MB / 468.3 MB, free: 6.215 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.231e-05/0.3413, allocations: 12.03 kB / 468.3 MB, free: 6.203 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004792/0.3418, allocations: 379.4 kB / 468.7 MB, free: 5.828 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00379/0.3456, allocations: 2.517 MB / 471.2 MB, free: 3.234 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.378e-05/0.3456, allocations: 36.98 kB / 471.2 MB, free: 3.199 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001244/0.3458, allocations: 51.91 kB / 471.3 MB, free: 3.148 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00152/0.3473, allocations: 0.7577 MB / 472 MB, free: 2.383 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.493e-05/0.3473, allocations: 0 / 472 MB, free: 2.383 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.136e-05/0.3474, allocations: 20 kB / 472 MB, free: 2.363 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.472e-05/0.3474, allocations: 23.98 kB / 472.1 MB, free: 2.34 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001806/0.3492, allocations: 0.8514 MB / 472.9 MB, free: 1.488 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005102/0.3544, allocations: 2.97 MB / 475.9 MB, free: 14.45 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001754/0.3561, allocations: 0.7948 MB / 476.7 MB, free: 13.64 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001481/0.3576, allocations: 0.9565 MB / 477.6 MB, free: 12.69 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03233/0.39, allocations: 30.69 MB / 0.4964 GB, free: 9.746 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00121/0.3912, allocations: 0.5879 MB / 0.497 GB, free: 9.148 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 2.946e-06/0.3912, allocations: 4 kB / 0.497 GB, free: 9.145 MB / 430.1 MB Notification: Performance of matching and sorting (n=99): time 0.01227/0.4035, allocations: 5.225 MB / 0.5021 GB, free: 3.664 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.544e-05/0.4036, allocations: 68.39 kB / 0.5022 GB, free: 3.586 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003063/0.4067, allocations: 2.692 MB / 0.5048 GB, free: 0.8789 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 7.163e-05/0.4067, allocations: 41.7 kB / 0.5048 GB, free: 0.832 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001018/0.4078, allocations: 1.299 MB / 0.5061 GB, free: 15.52 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002535/0.408, allocations: 343 kB / 0.5064 GB, free: 15.19 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003407/0.4084, allocations: 230.3 kB / 0.5066 GB, free: 14.95 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001146/0.4085, allocations: 349.9 kB / 0.507 GB, free: 14.61 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001281/0.4098, allocations: 474 kB / 0.5074 GB, free: 14.14 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001364/0.4112, allocations: 0.6508 MB / 0.5081 GB, free: 13.43 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002617/0.4138, allocations: 1.13 MB / 0.5092 GB, free: 12.23 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.661e-06/0.4138, allocations: 4 kB / 0.5092 GB, free: 12.23 MB / 446.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003911/0.4177, allocations: 1.975 MB / 0.5111 GB, free: 10.18 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.139e-05/0.4178, allocations: 10.75 kB / 0.5111 GB, free: 10.17 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001499/0.4179, allocations: 120 kB / 0.5112 GB, free: 10.05 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006791/0.4186, allocations: 272.9 kB / 0.5115 GB, free: 9.754 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008748/0.4195, allocations: 195.7 kB / 0.5117 GB, free: 9.562 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009007/0.4285, allocations: 14.25 MB / 0.5256 GB, free: 9.914 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001527/0.4301, allocations: 91.95 kB / 0.5257 GB, free: 9.824 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001376/0.4302, allocations: 56 kB / 0.5257 GB, free: 9.77 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.0008568/0.4311, allocations: 433.5 kB / 0.5261 GB, free: 9.336 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004155/0.4315, allocations: 367.6 kB / 0.5265 GB, free: 8.973 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005115/0.4366, allocations: 2.207 MB / 0.5286 GB, free: 6.684 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-05/0.4367, allocations: 12 kB / 0.5287 GB, free: 6.672 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.609e-05/0.4368, allocations: 4 kB / 0.5287 GB, free: 6.668 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.617e-05/0.4368, allocations: 3.984 kB / 0.5287 GB, free: 6.664 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003215/0.44, allocations: 1.543 MB / 0.5302 GB, free: 5.07 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001565/0.4402, allocations: 116 kB / 0.5303 GB, free: 4.957 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007257/0.4409, allocations: 135.8 kB / 0.5304 GB, free: 4.824 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007353/0.4417, allocations: 264.3 kB / 0.5307 GB, free: 4.535 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000101/0.4418, allocations: 43.98 kB / 0.5307 GB, free: 4.492 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2222/0.664, allocations: 14.24 MB / 0.5446 GB, free: 120.2 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.6641, allocations: 3.344 kB / 0.5446 GB, free: 120.2 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006121/0.6702, allocations: 2.545 MB / 0.5471 GB, free: 119.6 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009646/0.6712, allocations: 499.9 kB / 0.5476 GB, free: 119.5 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002606/0.6714, allocations: 25.64 kB / 0.5476 GB, free: 119.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009466/0.6724, allocations: 75.34 kB / 0.5477 GB, free: 119.4 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000328/0.6727, allocations: 141.4 kB / 0.5478 GB, free: 119.4 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.949e-05/0.6728, allocations: 50.78 kB / 0.5479 GB, free: 119.4 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001799/0.6746, allocations: 1.767 MB / 0.5496 GB, free: 118.8 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.6746, allocations: 0 / 0.5496 GB, free: 118.8 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001323/0.676, allocations: 0.6534 MB / 0.5502 GB, free: 118.7 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.001024/0.677, allocations: 0.8211 MB / 0.551 GB, free: 118.5 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003564/0.6806, allocations: 2.512 MB / 0.5535 GB, free: 116.9 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.6806, allocations: 0 / 0.5535 GB, free: 116.9 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00218/0.6828, allocations: 1.952 MB / 0.5554 GB, free: 115.4 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002283/0.6851, allocations: 0.6328 MB / 0.556 GB, free: 115.2 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005417/0.6905, allocations: 4.666 MB / 0.5606 GB, free: 112.1 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007417/0.6913, allocations: 1.657 MB / 0.5622 GB, free: 110.6 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001066/0.6924, allocations: 391.3 kB / 0.5625 GB, free: 110.2 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002628/0.6926, allocations: 167.4 kB / 0.5627 GB, free: 110 MB / 462.1 MB Notification: Performance of SimCode: time 5.71e-07/0.6926, allocations: 0 / 0.5627 GB, free: 110 MB / 462.1 MB Notification: Performance of Templates: time 0.05029/0.7429, allocations: 38.08 MB / 0.5999 GB, free: 72.06 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)