Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Nor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Nor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Nor") translateModel(Modelica.Electrical.Spice3.Examples.Nor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Nor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001424/0.001424, allocations: 115 kB / 16.63 MB, free: 6.812 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00119/0.00119, allocations: 186 kB / 17.55 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.334/1.334, allocations: 205.1 MB / 223.4 MB, free: 12.43 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 43.92 kB / 279.5 MB, free: 3.496 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09146/0.09272, allocations: 46.63 MB / 326.1 MB, free: 4.797 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01283/0.1056, allocations: 13.41 MB / 339.5 MB, free: 7.324 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02171/0.1274, allocations: 19.13 MB / 358.7 MB, free: 4.125 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002729/0.1301, allocations: 67.44 kB / 358.7 MB, free: 4.059 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003275/0.1335, allocations: 0.9466 MB / 359.7 MB, free: 3.102 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007365/0.1409, allocations: 1.946 MB / 361.6 MB, free: 1.145 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005153/0.146, allocations: 1.203 MB / 362.8 MB, free: 15.93 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.009697/0.1558, allocations: 6.335 MB / 369.2 MB, free: 9.582 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007289/0.1565, allocations: 448.5 kB / 369.6 MB, free: 9.113 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0014/0.158, allocations: 0.9679 MB / 370.6 MB, free: 8.141 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001001/0.159, allocations: 1.056 MB / 371.6 MB, free: 7.078 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001542/0.1591, allocations: 76 kB / 371.7 MB, free: 7.004 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0032/0.1623, allocations: 1.156 MB / 372.9 MB, free: 5.848 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002763/0.1626, allocations: 329.6 kB / 373.2 MB, free: 5.523 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001182/0.1638, allocations: 1.339 MB / 374.5 MB, free: 4.176 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004256/0.1681, allocations: 3.67 MB / 378.2 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.1681, allocations: 4 kB / 378.2 MB, free: 500 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1681, allocations: 0 / 378.2 MB, free: 500 kB / 318.1 MB Notification: Performance of Transformations before backend: time 5.164e-05/0.1682, allocations: 0 / 378.2 MB, free: 500 kB / 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.1572/0.3254, allocations: 3.586 MB / 381.8 MB, free: 53.97 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.57e-05/0.3255, allocations: 9.469 kB / 381.8 MB, free: 53.97 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005052/0.326, allocations: 379.9 kB / 382.2 MB, free: 53.78 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003516/0.3295, allocations: 2.554 MB / 384.7 MB, free: 52.65 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.362e-05/0.3295, allocations: 41.97 kB / 384.8 MB, free: 52.64 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001183/0.3297, allocations: 52.02 kB / 384.8 MB, free: 52.62 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001445/0.3311, allocations: 0.757 MB / 385.6 MB, free: 52.35 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.557e-05/0.3311, allocations: 0 / 385.6 MB, free: 52.35 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7e-05/0.3312, allocations: 21.06 kB / 385.6 MB, free: 52.34 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.337e-05/0.3313, allocations: 20.94 kB / 385.6 MB, free: 52.33 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001684/0.3329, allocations: 0.8574 MB / 386.5 MB, free: 52.11 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004816/0.3378, allocations: 2.979 MB / 389.4 MB, free: 50.55 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001555/0.3394, allocations: 0.7965 MB / 390.2 MB, free: 50.13 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001288/0.3407, allocations: 0.9515 MB / 391.2 MB, free: 49.72 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02152/0.3622, allocations: 30.14 MB / 421.3 MB, free: 19.76 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001011/0.3632, allocations: 0.5917 MB / 421.9 MB, free: 19.16 MB / 318.1 MB Notification: Performance of pre-optimization done (n=96): time 4.508e-06/0.3633, allocations: 3.938 kB / 421.9 MB, free: 19.16 MB / 318.1 MB Notification: Performance of matching and sorting (n=99): time 0.01039/0.3736, allocations: 5.233 MB / 427.2 MB, free: 13.7 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.205e-05/0.3737, allocations: 68.39 kB / 427.2 MB, free: 13.62 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002536/0.3763, allocations: 2.709 MB / 429.9 MB, free: 10.89 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.297e-05/0.3764, allocations: 45.7 kB / 430 MB, free: 10.84 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006964/0.3771, allocations: 1.303 MB / 431.3 MB, free: 9.535 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001939/0.3773, allocations: 331.2 kB / 431.6 MB, free: 9.207 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002941/0.3776, allocations: 238.2 kB / 431.8 MB, free: 8.969 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.262e-05/0.3776, allocations: 353.8 kB / 432.2 MB, free: 8.617 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001008/0.3787, allocations: 474 kB / 432.6 MB, free: 8.156 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001065/0.3797, allocations: 0.6431 MB / 433.3 MB, free: 7.445 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002022/0.3818, allocations: 1.141 MB / 434.4 MB, free: 6.242 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.3818, allocations: 0 / 434.4 MB, free: 6.242 MB / 318.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.003306/0.3851, allocations: 1.972 MB / 436.4 MB, free: 4.188 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.065e-05/0.3851, allocations: 16.05 kB / 436.4 MB, free: 4.172 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001302/0.3853, allocations: 120 kB / 436.5 MB, free: 4.055 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005718/0.3858, allocations: 260.4 kB / 436.8 MB, free: 3.77 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007729/0.3866, allocations: 199.7 kB / 437 MB, free: 3.574 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00858/0.3952, allocations: 14.25 MB / 451.2 MB, free: 3.957 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001584/0.3968, allocations: 91.95 kB / 451.3 MB, free: 3.867 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001553/0.397, allocations: 60 kB / 451.4 MB, free: 3.809 MB / 334.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.0008162/0.3978, allocations: 433.9 kB / 451.8 MB, free: 3.379 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005277/0.3984, allocations: 371.5 kB / 452.2 MB, free: 3.012 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004929/0.4033, allocations: 2.213 MB / 454.4 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.149e-05/0.4033, allocations: 15.94 kB / 454.4 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.297e-06/0.4033, allocations: 7.984 kB / 454.4 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.656e-06/0.4033, allocations: 3.984 kB / 454.4 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002167/0.4055, allocations: 1.547 MB / 456 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001443/0.4057, allocations: 112 kB / 456.1 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006837/0.4064, allocations: 135.8 kB / 456.2 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006333/0.407, allocations: 264.3 kB / 456.5 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.01e-05/0.4071, allocations: 43.98 kB / 456.5 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009356/0.4165, allocations: 14.25 MB / 470.7 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.4165, allocations: 0 / 470.7 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005387/0.4219, allocations: 2.547 MB / 473.3 MB, free: 12.24 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00113/0.423, allocations: 496.4 kB / 473.8 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003552/0.4234, allocations: 19.98 kB / 473.8 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009595/0.4244, allocations: 87.89 kB / 473.9 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003818/0.4248, allocations: 136.8 kB / 474 MB, free: 11.49 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001122/0.4249, allocations: 47.98 kB / 474.1 MB, free: 11.45 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00246/0.4274, allocations: 1.794 MB / 475.9 MB, free: 9.645 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4274, allocations: 0 / 475.9 MB, free: 9.645 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001637/0.429, allocations: 0.6561 MB / 476.5 MB, free: 8.988 MB / 366.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.001254/0.4303, allocations: 0.8214 MB / 477.3 MB, free: 8.156 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004638/0.4349, allocations: 2.549 MB / 479.9 MB, free: 5.453 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.999e-06/0.435, allocations: 0 / 479.9 MB, free: 5.453 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002521/0.4375, allocations: 1.948 MB / 481.8 MB, free: 3.352 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002437/0.4399, allocations: 0.5246 MB / 482.4 MB, free: 2.82 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007516/0.4475, allocations: 5.535 MB / 487.9 MB, free: 13.25 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001111/0.4486, allocations: 1.658 MB / 489.6 MB, free: 11.57 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00151/0.4501, allocations: 399.3 kB / 489.9 MB, free: 11.18 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003016/0.4505, allocations: 167.4 kB / 490.1 MB, free: 11.01 MB / 382.1 MB Notification: Performance of SimCode: time 9.92e-07/0.4505, allocations: 4 kB / 490.1 MB, free: 11.01 MB / 382.1 MB Notification: Performance of Templates: time 0.05947/0.5099, allocations: 36.77 MB / 0.5145 GB, free: 6.18 MB / 414.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Nor.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Nor.sim & ./Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Nor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1)