Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.1_Modelica.Electrical.Spice3.Examples.Nor") translateModel(Modelica.Electrical.Spice3.Examples.Nor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.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.0008016/0.0008017, allocations: 90.36 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.004993/0.004993, allocations: 170.7 kB / 16.26 MB, free: 6.676 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.362/1.362, allocations: 205.4 MB / 222.5 MB, free: 5.559 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.0006485/0.0006487, allocations: 16.33 kB / 279.4 MB, free: 12.51 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2781/0.2788, allocations: 47.58 MB / 327 MB, free: 1.652 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01106/0.2899, allocations: 12.88 MB / 339.9 MB, free: 6.609 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.02006/0.31, allocations: 19.24 MB / 359.1 MB, free: 3.293 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001759/0.3117, allocations: 67.44 kB / 359.2 MB, free: 3.227 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003183/0.3149, allocations: 0.9683 MB / 360.2 MB, free: 2.254 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008534/0.3235, allocations: 1.895 MB / 362.1 MB, free: 356 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004287/0.3278, allocations: 1.152 MB / 363.2 MB, free: 15.19 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00905/0.3369, allocations: 6.171 MB / 369.4 MB, free: 8.996 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000629/0.3375, allocations: 409 kB / 369.8 MB, free: 8.566 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001144/0.3387, allocations: 0.9211 MB / 370.7 MB, free: 7.641 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001016/0.3397, allocations: 1.021 MB / 371.7 MB, free: 6.613 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001564/0.3399, allocations: 40 kB / 371.8 MB, free: 6.574 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004336/0.3442, allocations: 1.136 MB / 372.9 MB, free: 5.438 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003408/0.3446, allocations: 289.7 kB / 373.2 MB, free: 5.152 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001349/0.3459, allocations: 1.321 MB / 374.5 MB, free: 3.816 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00436/0.3503, allocations: 3.552 MB / 378.1 MB, free: 256 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.113e-06/0.3503, allocations: 4 kB / 378.1 MB, free: 252 kB / 302.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.3503, allocations: 3.938 kB / 378.1 MB, free: 248 kB / 302.1 MB Notification: Performance of Transformations before backend: time 4.263e-05/0.3504, allocations: 0 / 378.1 MB, free: 248 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.004499/0.3549, allocations: 3.151 MB / 381.2 MB, free: 13.02 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.7e-05/0.355, allocations: 8.031 kB / 381.2 MB, free: 13.01 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003395/0.3553, allocations: 379.4 kB / 381.6 MB, free: 12.64 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00325/0.3586, allocations: 2.564 MB / 384.2 MB, free: 9.996 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.84e-05/0.3586, allocations: 40.94 kB / 384.2 MB, free: 9.957 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001236/0.3587, allocations: 48 kB / 384.3 MB, free: 9.91 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001445/0.3602, allocations: 0.789 MB / 385 MB, free: 9.117 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.331e-05/0.3602, allocations: 0 / 385 MB, free: 9.117 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.478e-05/0.3603, allocations: 23.98 kB / 385.1 MB, free: 9.094 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.518e-05/0.3603, allocations: 19.94 kB / 385.1 MB, free: 9.074 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001835/0.3622, allocations: 0.9217 MB / 386 MB, free: 8.148 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004416/0.3666, allocations: 3.023 MB / 389 MB, free: 5.059 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001763/0.3684, allocations: 0.8458 MB / 389.9 MB, free: 4.207 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001498/0.3699, allocations: 0.9801 MB / 390.9 MB, free: 3.223 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02842/0.3983, allocations: 30.19 MB / 421 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001203/0.3996, allocations: 0.6269 MB / 421.7 MB, free: 304 kB / 350.1 MB Notification: Performance of pre-optimization done (n=96): time 2.535e-06/0.3996, allocations: 0 / 421.7 MB, free: 304 kB / 350.1 MB Notification: Performance of matching and sorting (n=99): time 0.01278/0.4124, allocations: 5.709 MB / 427.4 MB, free: 10.33 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.611e-05/0.4124, allocations: 68.41 kB / 427.4 MB, free: 10.25 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003114/0.4156, allocations: 2.717 MB / 430.2 MB, free: 7.52 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.304e-05/0.4157, allocations: 45.7 kB / 430.2 MB, free: 7.469 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001052/0.4167, allocations: 1.299 MB / 431.5 MB, free: 6.164 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002563/0.417, allocations: 335.2 kB / 431.8 MB, free: 5.832 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001275/0.4171, allocations: 81.67 kB / 431.9 MB, free: 5.746 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001062/0.4172, allocations: 345.9 kB / 432.3 MB, free: 5.402 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00136/0.4186, allocations: 0.5293 MB / 432.8 MB, free: 4.871 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001445/0.4201, allocations: 0.7095 MB / 433.5 MB, free: 4.098 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002803/0.4229, allocations: 1.262 MB / 434.8 MB, free: 2.773 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.347e-06/0.4229, allocations: 0 / 434.8 MB, free: 2.773 MB / 366.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004239/0.4271, allocations: 2.108 MB / 436.9 MB, free: 0.582 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.527e-05/0.4272, allocations: 11.94 kB / 436.9 MB, free: 0.5703 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001541/0.4273, allocations: 128 kB / 437 MB, free: 456 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006916/0.428, allocations: 268.7 kB / 437.3 MB, free: 156 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009588/0.429, allocations: 227.7 kB / 437.5 MB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00909/0.4381, allocations: 13.25 MB / 450.7 MB, free: 1.348 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001577/0.4397, allocations: 124 kB / 450.9 MB, free: 1.227 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001259/0.4398, allocations: 56 kB / 450.9 MB, free: 1.172 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.0008974/0.4408, allocations: 430.1 kB / 451.3 MB, free: 0.7422 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004007/0.4412, allocations: 371.6 kB / 451.7 MB, free: 384 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1707/0.6119, allocations: 2.348 MB / 454 MB, free: 117.2 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.43e-05/0.6119, allocations: 8.594 kB / 454.1 MB, free: 117.2 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.774e-05/0.612, allocations: 3.844 kB / 454.1 MB, free: 117.2 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.828e-06/0.612, allocations: 3.609 kB / 454.1 MB, free: 117.2 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002215/0.6142, allocations: 1.555 MB / 455.6 MB, free: 117 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.00016/0.6144, allocations: 114.2 kB / 455.7 MB, free: 117 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00077/0.6152, allocations: 166.1 kB / 455.9 MB, free: 117 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005999/0.6158, allocations: 269.9 kB / 456.2 MB, free: 116.9 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001022/0.6159, allocations: 42.69 kB / 456.2 MB, free: 116.9 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00615/0.622, allocations: 13.26 MB / 469.4 MB, free: 103.7 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.6221, allocations: 1.125 kB / 469.5 MB, free: 103.7 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005101/0.6272, allocations: 2.74 MB / 472.2 MB, free: 102.6 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007985/0.628, allocations: 495.9 kB / 472.7 MB, free: 102.4 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004093/0.6284, allocations: 22.95 kB / 472.7 MB, free: 102.3 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001132/0.6295, allocations: 115.4 kB / 472.8 MB, free: 102.3 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003185/0.6299, allocations: 134.6 kB / 472.9 MB, free: 102.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.913e-05/0.63, allocations: 52.58 kB / 473 MB, free: 102.2 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001872/0.6318, allocations: 1.782 MB / 474.8 MB, free: 101.3 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6318, allocations: 7.344 kB / 474.8 MB, free: 101.3 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001259/0.6331, allocations: 0.652 MB / 475.4 MB, free: 101.2 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.001057/0.6342, allocations: 0.8217 MB / 476.3 MB, free: 100.6 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003499/0.6377, allocations: 2.65 MB / 478.9 MB, free: 97.79 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.357e-06/0.6377, allocations: 0 / 478.9 MB, free: 97.79 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002057/0.6398, allocations: 2.019 MB / 480.9 MB, free: 95.63 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001548/0.6413, allocations: 497.2 kB / 481.4 MB, free: 95.14 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00515/0.6465, allocations: 5.684 MB / 487.1 MB, free: 89.48 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000721/0.6472, allocations: 1.67 MB / 488.8 MB, free: 87.77 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001197/0.6484, allocations: 395.4 kB / 489.1 MB, free: 87.38 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002418/0.6487, allocations: 163.4 kB / 489.3 MB, free: 87.22 MB / 382.1 MB Notification: Performance of SimCode: time 5.21e-07/0.6487, allocations: 0 / 489.3 MB, free: 87.22 MB / 382.1 MB Notification: Performance of Templates: time 0.07102/0.7197, allocations: 35.45 MB / 0.5125 GB, free: 51.74 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.Nor.makefile (rm -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Spice3.Examples.Nor.sim & ./Modelica_3.1_Modelica.Electrical.Spice3.Examples.Nor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1)