Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Spice3.Examples.Nand.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.Nand,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Spice3.Examples.Nand") translateModel(Modelica.Electrical.Spice3.Examples.Nand,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Spice3.Examples.Nand") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009806/0.0009805, allocations: 91.77 kB / 15.06 MB, free: 1.098 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.001147/0.001147, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.555/1.555, allocations: 205.4 MB / 222.1 MB, free: 5.637 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.0004986/0.0004988, allocations: 16 kB / 278.9 MB, free: 12.81 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.282/0.2825, allocations: 47.58 MB / 326.5 MB, free: 1.402 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01151/0.2941, allocations: 11.81 MB / 338.3 MB, free: 7.672 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.02287/0.317, allocations: 17.57 MB / 355.9 MB, free: 6.047 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003225/0.3203, allocations: 63.5 kB / 355.9 MB, free: 5.984 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003054/0.3233, allocations: 0.8321 MB / 356.7 MB, free: 5.148 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007784/0.3311, allocations: 1.793 MB / 358.5 MB, free: 3.344 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004338/0.3355, allocations: 1.057 MB / 359.6 MB, free: 2.281 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0106/0.3461, allocations: 5.829 MB / 365.4 MB, free: 12.43 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001087/0.3473, allocations: 399.2 kB / 365.8 MB, free: 12.01 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00145/0.3487, allocations: 0.8124 MB / 366.6 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001591/0.3503, allocations: 0.9435 MB / 367.6 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003297/0.3507, allocations: 40 kB / 367.6 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004351/0.355, allocations: 1.066 MB / 368.7 MB, free: 9.141 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004181/0.3555, allocations: 262 kB / 368.9 MB, free: 8.883 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009983/0.3565, allocations: 0.5975 MB / 369.5 MB, free: 8.277 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003182/0.3597, allocations: 2.621 MB / 372.2 MB, free: 5.648 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.3597, allocations: 0 / 372.2 MB, free: 5.648 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3597, allocations: 4 kB / 372.2 MB, free: 5.645 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001239/0.3598, allocations: 0 / 372.2 MB, free: 5.645 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.005147/0.365, allocations: 3.123 MB / 375.3 MB, free: 2.449 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.243e-05/0.365, allocations: 8.031 kB / 375.3 MB, free: 2.441 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004845/0.3655, allocations: 375.5 kB / 375.7 MB, free: 2.07 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003565/0.3691, allocations: 2.384 MB / 378 MB, free: 15.61 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.864e-05/0.3692, allocations: 41 kB / 378.1 MB, free: 15.57 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001102/0.3693, allocations: 47.91 kB / 378.1 MB, free: 15.53 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001233/0.3705, allocations: 0.7148 MB / 378.8 MB, free: 14.81 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.58e-05/0.3705, allocations: 4 kB / 378.8 MB, free: 14.8 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.475e-05/0.3706, allocations: 23.98 kB / 378.9 MB, free: 14.78 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.012e-05/0.3706, allocations: 19.98 kB / 378.9 MB, free: 14.76 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001404/0.372, allocations: 0.8242 MB / 379.7 MB, free: 13.93 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004497/0.3766, allocations: 2.92 MB / 382.6 MB, free: 10.95 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001216/0.3778, allocations: 0.7367 MB / 383.4 MB, free: 10.19 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001011/0.3788, allocations: 0.6743 MB / 384 MB, free: 9.508 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02992/0.4087, allocations: 30.18 MB / 414.2 MB, free: 7.219 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007603/0.4095, allocations: 377.7 kB / 414.6 MB, free: 6.84 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 2.845e-06/0.4096, allocations: 0 / 414.6 MB, free: 6.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.003406/0.413, allocations: 1.497 MB / 416.1 MB, free: 5.309 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.804e-05/0.4131, allocations: 63.34 kB / 416.1 MB, free: 5.234 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00408/0.4171, allocations: 2.785 MB / 418.9 MB, free: 2.43 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.268e-05/0.4172, allocations: 37.64 kB / 419 MB, free: 2.387 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001203/0.4184, allocations: 1.391 MB / 420.4 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001662/0.4186, allocations: 165.7 kB / 420.5 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.426e-05/0.4187, allocations: 20 kB / 420.5 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001198/0.4188, allocations: 333.9 kB / 420.9 MB, free: 484 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005395/0.4193, allocations: 257.9 kB / 421.1 MB, free: 228 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008354/0.4202, allocations: 0.6047 MB / 421.7 MB, free: 15.45 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006619/0.4208, allocations: 340.1 kB / 422.1 MB, free: 15.12 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.625e-06/0.4209, allocations: 4 kB / 422.1 MB, free: 15.12 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.00233/0.4232, allocations: 1.315 MB / 423.4 MB, free: 13.79 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.526e-05/0.4232, allocations: 12.03 kB / 423.4 MB, free: 13.78 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001215/0.4234, allocations: 83.98 kB / 423.5 MB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005862/0.424, allocations: 272.7 kB / 423.7 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005687/0.4245, allocations: 183.7 kB / 423.9 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009651/0.4255, allocations: 0.8841 MB / 424.8 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001108/0.4266, allocations: 119 kB / 424.9 MB, free: 12.22 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001255/0.4268, allocations: 67.94 kB / 425 MB, free: 12.15 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.vin1.counter,vin1.counter,$PRE.vin2.counter,vin2.counter,$whenCondition2,$whenCondition1,$PRE.vin1.T0,vin1.T0,$PRE.vin1.counter2,vin1.counter2,$PRE.vin2.T0,vin2.T0,$PRE.vin2.counter2,vin2.counter2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of prepare postOptimizeDAE: time 0.0008167/0.4276, allocations: 429.6 kB / 425.4 MB, free: 11.72 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004884/0.4281, allocations: 367.5 kB / 425.8 MB, free: 11.36 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003135/0.4312, allocations: 1.314 MB / 427.1 MB, free: 10.03 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.935e-06/0.4313, allocations: 4 kB / 427.1 MB, free: 10.03 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.4313, allocations: 0 / 427.1 MB, free: 10.03 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.4313, allocations: 3.938 kB / 427.1 MB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003613/0.4349, allocations: 2.24 MB / 429.3 MB, free: 7.699 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001/0.435, allocations: 76.12 kB / 429.4 MB, free: 7.625 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003025/0.4353, allocations: 75.86 kB / 429.5 MB, free: 7.551 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004962/0.4358, allocations: 264.7 kB / 429.7 MB, free: 7.289 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.019e-05/0.4359, allocations: 32 kB / 429.8 MB, free: 7.258 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008923/0.4368, allocations: 0.8647 MB / 430.6 MB, free: 6.367 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.4368, allocations: 0 / 430.6 MB, free: 6.367 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001954/0.4388, allocations: 1.176 MB / 431.8 MB, free: 5.152 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009273/0.4397, allocations: 460.4 kB / 432.3 MB, free: 4.68 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004634/0.4402, allocations: 12 kB / 432.3 MB, free: 4.668 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007592/0.441, allocations: 39.95 kB / 432.3 MB, free: 4.629 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001662/0.4411, allocations: 67.94 kB / 432.4 MB, free: 4.562 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.815e-05/0.4412, allocations: 39.98 kB / 432.4 MB, free: 4.523 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002782/0.444, allocations: 1.793 MB / 434.2 MB, free: 2.727 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.444, allocations: 0 / 434.2 MB, free: 2.727 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00148/0.4455, allocations: 0.5739 MB / 434.8 MB, free: 2.152 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2) * Number of discrete states: 4 (vin1.counter2,vin2.counter2,vin1.counter,vin2.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.001275/0.4468, allocations: 0.7495 MB / 435.5 MB, free: 1.395 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001862/0.4487, allocations: 0.8813 MB / 436.4 MB, free: 500 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.4487, allocations: 0 / 436.4 MB, free: 500 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009506/0.4497, allocations: 0.5086 MB / 436.9 MB, free: 15.96 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002038/0.4517, allocations: 0.4899 MB / 437.4 MB, free: 15.46 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007096/0.4588, allocations: 4.45 MB / 441.9 MB, free: 10.96 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001337/0.4602, allocations: 1.612 MB / 443.5 MB, free: 9.32 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001357/0.4615, allocations: 391.1 kB / 443.8 MB, free: 8.934 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000275/0.4618, allocations: 167.4 kB / 444 MB, free: 8.77 MB / 382.1 MB Notification: Performance of SimCode: time 1.403e-06/0.4618, allocations: 4 kB / 444 MB, free: 8.766 MB / 382.1 MB Notification: Performance of Templates: time 0.2274/0.6893, allocations: 31.24 MB / 475.3 MB, free: 102.2 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.Nand.makefile (rm -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Spice3.Examples.Nand.sim & ./Modelica_3.1_Modelica.Electrical.Spice3.Examples.Nand -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1)