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.001541/0.001541, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001702/0.001702, allocations: 195.5 kB / 16.53 MB, free: 6.391 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.487/1.487, allocations: 205.1 MB / 222.4 MB, free: 4.617 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.00113/0.00113, allocations: 51.92 kB / 278.7 MB, free: 12.38 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1893/0.1905, allocations: 46.63 MB / 325.3 MB, free: 1.848 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01158/0.2021, allocations: 13.36 MB / 338.7 MB, free: 6.531 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0207/0.2228, allocations: 19.32 MB / 358 MB, free: 3.129 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001547/0.2244, allocations: 63.44 kB / 358.1 MB, free: 3.066 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00319/0.2276, allocations: 1.09 MB / 359.1 MB, free: 1.969 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006067/0.2337, allocations: 2.235 MB / 361.4 MB, free: 15.72 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00357/0.2373, allocations: 1.381 MB / 362.8 MB, free: 14.33 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008936/0.2462, allocations: 6.192 MB / 368.9 MB, free: 8.121 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006701/0.2469, allocations: 436.4 kB / 369.4 MB, free: 7.664 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001027/0.248, allocations: 0.9252 MB / 370.3 MB, free: 6.734 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001002/0.249, allocations: 1.029 MB / 371.3 MB, free: 5.699 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001932/0.2492, allocations: 72 kB / 371.4 MB, free: 5.629 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003349/0.2525, allocations: 1.156 MB / 372.6 MB, free: 4.465 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002801/0.2528, allocations: 313.7 kB / 372.9 MB, free: 4.156 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001111/0.2539, allocations: 1.316 MB / 374.2 MB, free: 2.832 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004076/0.258, allocations: 3.635 MB / 377.8 MB, free: 15.18 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.2581, allocations: 0 / 377.8 MB, free: 15.18 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.2581, allocations: 0 / 377.8 MB, free: 15.18 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.86e-05/0.2581, allocations: 0 / 377.8 MB, free: 15.18 MB / 318.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.004651/0.2628, allocations: 3.525 MB / 381.3 MB, free: 11.58 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.2628, allocations: 11.97 kB / 381.3 MB, free: 11.57 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003696/0.2632, allocations: 379.4 kB / 381.7 MB, free: 11.2 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003269/0.2665, allocations: 2.54 MB / 384.3 MB, free: 8.574 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.583e-05/0.2665, allocations: 32.94 kB / 384.3 MB, free: 8.543 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001203/0.2666, allocations: 55.89 kB / 384.3 MB, free: 8.488 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001283/0.2679, allocations: 0.7031 MB / 385 MB, free: 7.777 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.462e-05/0.2679, allocations: 0 / 385 MB, free: 7.777 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.055e-05/0.268, allocations: 16 kB / 385.1 MB, free: 7.762 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.807e-05/0.2681, allocations: 19.98 kB / 385.1 MB, free: 7.742 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001507/0.2696, allocations: 0.7968 MB / 385.9 MB, free: 6.941 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00454/0.2742, allocations: 2.889 MB / 388.8 MB, free: 3.988 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001316/0.2755, allocations: 0.7054 MB / 389.5 MB, free: 3.25 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00106/0.2766, allocations: 0.651 MB / 390.1 MB, free: 2.598 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0282/0.3048, allocations: 30.15 MB / 420.3 MB, free: 356 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007791/0.3056, allocations: 365.7 kB / 420.6 MB, free: 15.98 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.745e-06/0.3056, allocations: 0 / 420.6 MB, free: 15.98 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.003189/0.3088, allocations: 1.403 MB / 422 MB, free: 14.54 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.26e-05/0.3089, allocations: 63.34 kB / 422.1 MB, free: 14.47 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003481/0.3124, allocations: 2.809 MB / 424.9 MB, free: 11.64 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.77e-05/0.3124, allocations: 41.64 kB / 424.9 MB, free: 11.59 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001134/0.3136, allocations: 1.395 MB / 426.3 MB, free: 10.19 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001359/0.3137, allocations: 165.7 kB / 426.5 MB, free: 10.03 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002882/0.314, allocations: 226.1 kB / 426.7 MB, free: 9.801 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001256/0.3141, allocations: 341.9 kB / 427.1 MB, free: 9.461 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005883/0.3147, allocations: 233.9 kB / 427.3 MB, free: 9.234 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007797/0.3155, allocations: 0.5969 MB / 427.9 MB, free: 8.469 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001409/0.3169, allocations: 0.8763 MB / 428.8 MB, free: 7.422 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.392e-06/0.317, allocations: 8 kB / 428.8 MB, free: 7.414 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002174/0.3191, allocations: 1.276 MB / 430 MB, free: 6.125 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.19e-05/0.3192, allocations: 12.06 kB / 430.1 MB, free: 6.113 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001088/0.3193, allocations: 83.98 kB / 430.1 MB, free: 6.031 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000536/0.3198, allocations: 276.7 kB / 430.4 MB, free: 5.758 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005845/0.3204, allocations: 171.7 kB / 430.6 MB, free: 5.59 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009238/0.3214, allocations: 0.8802 MB / 431.5 MB, free: 4.684 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008665/0.3222, allocations: 107.2 kB / 431.6 MB, free: 4.578 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.55e-05/0.3224, allocations: 64 kB / 431.6 MB, free: 4.516 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 (vin1.counter,$PRE.vin1.counter,vin2.counter,$PRE.vin2.counter,vin2.counter2,$PRE.vin2.counter2,vin2.T0,$PRE.vin2.T0,vin1.counter2,$PRE.vin1.counter2,vin1.T0,$PRE.vin1.T0,$whenCondition1,$whenCondition2) * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0006116/0.323, allocations: 425.5 kB / 432 MB, free: 4.09 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003367/0.3233, allocations: 371.4 kB / 432.4 MB, free: 3.723 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003059/0.3264, allocations: 1.275 MB / 433.7 MB, free: 2.434 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.504e-06/0.3264, allocations: 4 kB / 433.7 MB, free: 2.43 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.3264, allocations: 4 kB / 433.7 MB, free: 2.426 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.222e-06/0.3264, allocations: 11.94 kB / 433.7 MB, free: 2.414 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003395/0.3298, allocations: 2.197 MB / 435.9 MB, free: 136 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.815e-05/0.3299, allocations: 80.06 kB / 436 MB, free: 56 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000313/0.3303, allocations: 55.94 kB / 436 MB, free: 0 / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004637/0.3307, allocations: 268.7 kB / 436.3 MB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.495e-05/0.3308, allocations: 35.98 kB / 436.3 MB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008559/0.3317, allocations: 0.8645 MB / 437.2 MB, free: 14.81 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/0.3317, allocations: 4.031 kB / 437.2 MB, free: 14.8 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001795/0.3335, allocations: 1.125 MB / 438.3 MB, free: 13.64 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006196/0.3341, allocations: 472.4 kB / 438.8 MB, free: 13.15 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002776/0.3344, allocations: 11.98 kB / 438.8 MB, free: 13.14 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006454/0.3351, allocations: 31.97 kB / 438.8 MB, free: 13.11 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001543/0.3352, allocations: 71.88 kB / 438.9 MB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.054e-05/0.3353, allocations: 36 kB / 438.9 MB, free: 13 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00212/0.3374, allocations: 1.832 MB / 440.8 MB, free: 11.17 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3374, allocations: 0 / 440.8 MB, free: 11.17 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001221/0.3386, allocations: 0.5662 MB / 441.3 MB, free: 10.6 MB / 382.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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001043/0.3397, allocations: 0.7845 MB / 442.1 MB, free: 9.812 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001778/0.3415, allocations: 0.8533 MB / 443 MB, free: 8.934 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.3415, allocations: 0 / 443 MB, free: 8.934 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009417/0.3425, allocations: 0.4974 MB / 443.5 MB, free: 8.414 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001631/0.3441, allocations: 0.5055 MB / 444 MB, free: 7.902 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004997/0.3491, allocations: 3.995 MB / 448 MB, free: 3.859 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001066/0.3502, allocations: 1.608 MB / 449.6 MB, free: 2.219 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001198/0.3514, allocations: 399 kB / 450 MB, free: 1.824 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000225/0.3516, allocations: 159.4 kB / 450.1 MB, free: 1.668 MB / 382.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3516, allocations: 3.938 kB / 450.1 MB, free: 1.664 MB / 382.1 MB Notification: Performance of Templates: time 0.1804/0.532, allocations: 33.37 MB / 483.5 MB, free: 92.72 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)