Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_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.1_Modelica.Electrical.Spice3.Examples.Nor") translateModel(Modelica.Electrical.Spice3.Examples.Nor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_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.0007703/0.0007702, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.005356/0.005356, allocations: 171.1 kB / 16.26 MB, free: 6.613 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.379/1.379, allocations: 205.4 MB / 222.4 MB, free: 5.566 MB / 174.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.0004685/0.0004686, allocations: 14.81 kB / 279.4 MB, free: 12.52 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2143/0.2148, allocations: 47.58 MB / 327 MB, free: 1.426 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01114/0.226, allocations: 12.88 MB / 339.9 MB, free: 6.461 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.02111/0.2471, allocations: 19.25 MB / 359.2 MB, free: 3.137 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001831/0.249, allocations: 63.5 kB / 359.2 MB, free: 3.074 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002752/0.2518, allocations: 0.9642 MB / 360.2 MB, free: 2.105 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006806/0.2586, allocations: 1.891 MB / 362.1 MB, free: 208 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004203/0.2628, allocations: 1.156 MB / 363.2 MB, free: 15.04 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009785/0.2726, allocations: 6.171 MB / 369.4 MB, free: 8.848 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006781/0.2734, allocations: 413 kB / 369.8 MB, free: 8.414 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001408/0.2748, allocations: 0.9171 MB / 370.7 MB, free: 7.492 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009851/0.2758, allocations: 1.025 MB / 371.7 MB, free: 6.461 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001287/0.2759, allocations: 43.94 kB / 371.8 MB, free: 6.418 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003377/0.2793, allocations: 1.128 MB / 372.9 MB, free: 5.289 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002642/0.2796, allocations: 289.7 kB / 373.2 MB, free: 5.004 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001148/0.2807, allocations: 1.321 MB / 374.5 MB, free: 3.668 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004023/0.2848, allocations: 3.552 MB / 378.1 MB, free: 104 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.2848, allocations: 3.938 kB / 378.1 MB, free: 100 kB / 302.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.2848, allocations: 0 / 378.1 MB, free: 100 kB / 302.1 MB Notification: Performance of Transformations before backend: time 4.042e-05/0.2848, allocations: 0 / 378.1 MB, free: 100 kB / 302.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.004531/0.2894, allocations: 3.151 MB / 381.2 MB, free: 12.88 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.021e-05/0.2894, allocations: 8.031 kB / 381.2 MB, free: 12.87 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003631/0.2898, allocations: 379.4 kB / 381.6 MB, free: 12.49 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003363/0.2932, allocations: 2.568 MB / 384.2 MB, free: 9.848 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.638e-05/0.2932, allocations: 36.94 kB / 384.2 MB, free: 9.812 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001275/0.2933, allocations: 51.98 kB / 384.3 MB, free: 9.762 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001525/0.2949, allocations: 0.7968 MB / 385.1 MB, free: 8.961 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.778e-05/0.2949, allocations: 0 / 385.1 MB, free: 8.961 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.68e-05/0.295, allocations: 16 kB / 385.1 MB, free: 8.945 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.532e-05/0.295, allocations: 19.98 kB / 385.1 MB, free: 8.926 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001868/0.2969, allocations: 0.9217 MB / 386 MB, free: 8 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004869/0.3018, allocations: 3.019 MB / 389 MB, free: 4.914 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001828/0.3036, allocations: 0.8535 MB / 389.9 MB, free: 4.055 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00149/0.3051, allocations: 0.9839 MB / 390.9 MB, free: 3.066 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02822/0.3334, allocations: 30.18 MB / 421 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001226/0.3346, allocations: 0.6269 MB / 421.7 MB, free: 156 kB / 350.1 MB Notification: Performance of pre-optimization done (n=96): time 3.206e-06/0.3347, allocations: 0 / 421.7 MB, free: 156 kB / 350.1 MB Notification: Performance of matching and sorting (n=99): time 0.01339/0.3481, allocations: 5.705 MB / 427.4 MB, free: 10.19 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.529e-05/0.3482, allocations: 72.33 kB / 427.4 MB, free: 10.11 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0035/0.3517, allocations: 2.717 MB / 430.2 MB, free: 7.375 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000126/0.3518, allocations: 45.7 kB / 430.2 MB, free: 7.324 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001155/0.353, allocations: 1.303 MB / 431.5 MB, free: 6.016 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003153/0.3533, allocations: 335.2 kB / 431.8 MB, free: 5.684 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001368/0.3534, allocations: 81.67 kB / 431.9 MB, free: 5.598 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001294/0.3536, allocations: 341.9 kB / 432.3 MB, free: 5.258 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001366/0.355, allocations: 0.5293 MB / 432.8 MB, free: 4.727 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001466/0.3564, allocations: 0.7134 MB / 433.5 MB, free: 3.949 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002856/0.3593, allocations: 1.258 MB / 434.8 MB, free: 2.629 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.608e-06/0.3593, allocations: 0 / 434.8 MB, free: 2.629 MB / 366.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.00456/0.3639, allocations: 2.116 MB / 436.9 MB, free: 440 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.736e-05/0.3639, allocations: 11.94 kB / 436.9 MB, free: 428 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000157/0.3641, allocations: 120 kB / 437 MB, free: 308 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007052/0.3648, allocations: 264.7 kB / 437.3 MB, free: 12 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000972/0.3658, allocations: 231.6 kB / 437.5 MB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008969/0.3748, allocations: 13.25 MB / 450.7 MB, free: 1.203 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001504/0.3763, allocations: 120 kB / 450.9 MB, free: 1.086 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000121/0.3765, allocations: 63.98 kB / 450.9 MB, free: 1.023 MB / 382.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.0008868/0.3773, allocations: 430.1 kB / 451.3 MB, free: 0.5938 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003817/0.3777, allocations: 367.6 kB / 451.7 MB, free: 236 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1791/0.5568, allocations: 2.353 MB / 454 MB, free: 117.2 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.674e-05/0.5569, allocations: 16.62 kB / 454.1 MB, free: 117.2 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.628e-06/0.5569, allocations: 4.219 kB / 454.1 MB, free: 117.2 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.217e-06/0.5569, allocations: 3.984 kB / 454.1 MB, free: 117.2 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002027/0.559, allocations: 1.549 MB / 455.6 MB, free: 116.9 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001464/0.5591, allocations: 114.6 kB / 455.7 MB, free: 116.9 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007894/0.5599, allocations: 168.9 kB / 455.9 MB, free: 116.9 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006071/0.5605, allocations: 266 kB / 456.2 MB, free: 116.8 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.386e-05/0.5606, allocations: 42.42 kB / 456.2 MB, free: 116.8 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006596/0.5672, allocations: 13.25 MB / 469.5 MB, free: 103.6 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.5673, allocations: 0 / 469.5 MB, free: 103.6 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005258/0.5726, allocations: 2.747 MB / 472.2 MB, free: 102.4 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007629/0.5733, allocations: 493.2 kB / 472.7 MB, free: 102.2 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000279/0.5736, allocations: 18.94 kB / 472.7 MB, free: 102.2 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009855/0.5746, allocations: 114.8 kB / 472.8 MB, free: 102.2 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003594/0.575, allocations: 134.7 kB / 472.9 MB, free: 102.1 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.709e-05/0.5751, allocations: 52.58 kB / 473 MB, free: 102.1 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002451/0.5776, allocations: 1.785 MB / 474.8 MB, free: 101.2 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.5776, allocations: 2.875 kB / 474.8 MB, free: 101.2 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001598/0.5792, allocations: 0.6514 MB / 475.4 MB, free: 101 MB / 382.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.001155/0.5803, allocations: 0.8236 MB / 476.3 MB, free: 100.3 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00358/0.5839, allocations: 2.651 MB / 478.9 MB, free: 97.55 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.584, allocations: 0 / 478.9 MB, free: 97.55 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002058/0.586, allocations: 2.015 MB / 480.9 MB, free: 95.39 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001801/0.5878, allocations: 497.2 kB / 481.4 MB, free: 94.9 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005503/0.5933, allocations: 5.693 MB / 487.1 MB, free: 89.22 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007337/0.5941, allocations: 1.67 MB / 488.8 MB, free: 87.52 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001339/0.5955, allocations: 395.4 kB / 489.2 MB, free: 87.13 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002515/0.5957, allocations: 163.4 kB / 489.3 MB, free: 86.97 MB / 382.1 MB Notification: Performance of SimCode: time 7.91e-07/0.5957, allocations: 0 / 489.3 MB, free: 86.97 MB / 382.1 MB Notification: Performance of Templates: time 0.05216/0.6479, allocations: 35.45 MB / 0.5125 GB, free: 51.49 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nor.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nor.sim & ./Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1)