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.001073/0.001073, allocations: 99.36 kB / 15.33 MB, free: 0.5078 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.00134/0.00134, allocations: 193.1 kB / 16.25 MB, free: 6.629 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.375/1.375, allocations: 205.1 MB / 222.1 MB, free: 4.75 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.001121/0.001121, allocations: 51.94 kB / 278.2 MB, free: 12.68 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2199/0.221, allocations: 46.62 MB / 324.8 MB, free: 1.941 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01194/0.233, allocations: 13.25 MB / 338.1 MB, free: 6.809 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.02039/0.2534, allocations: 19.08 MB / 357.2 MB, free: 3.652 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003606/0.2571, allocations: 67.44 kB / 357.2 MB, free: 3.586 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003372/0.2605, allocations: 0.9555 MB / 358.2 MB, free: 2.625 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009246/0.2698, allocations: 1.93 MB / 360.1 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006503/0.2763, allocations: 1.192 MB / 361.3 MB, free: 15.48 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01003/0.2864, allocations: 6.285 MB / 367.6 MB, free: 9.184 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008268/0.2872, allocations: 432.4 kB / 368 MB, free: 8.73 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001311/0.2886, allocations: 0.9407 MB / 369 MB, free: 7.785 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001347/0.2899, allocations: 1.025 MB / 370 MB, free: 6.754 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003065/0.2902, allocations: 72 kB / 370.1 MB, free: 6.684 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005085/0.2953, allocations: 1.156 MB / 371.2 MB, free: 5.527 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004833/0.2958, allocations: 313.7 kB / 371.5 MB, free: 5.219 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001663/0.2975, allocations: 1.316 MB / 372.8 MB, free: 3.895 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005355/0.3029, allocations: 3.615 MB / 376.4 MB, free: 272 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.289e-06/0.3029, allocations: 0 / 376.4 MB, free: 272 kB / 302.1 MB Notification: Performance of FrontEnd: time 3.236e-06/0.3029, allocations: 0 / 376.4 MB, free: 272 kB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001345/0.303, allocations: 3.938 kB / 376.4 MB, free: 268 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.005601/0.3087, allocations: 3.525 MB / 380 MB, free: 12.66 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.81e-05/0.3087, allocations: 12.03 kB / 380 MB, free: 12.65 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003712/0.3091, allocations: 379.4 kB / 380.4 MB, free: 12.27 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00341/0.3125, allocations: 2.532 MB / 382.9 MB, free: 9.66 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.434e-05/0.3126, allocations: 36.94 kB / 382.9 MB, free: 9.625 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001249/0.3127, allocations: 55.97 kB / 383 MB, free: 9.57 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001273/0.314, allocations: 0.7069 MB / 383.7 MB, free: 8.859 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.537e-05/0.314, allocations: 0 / 383.7 MB, free: 8.859 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.589e-05/0.3141, allocations: 16 kB / 383.7 MB, free: 8.844 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.069e-05/0.3141, allocations: 19.98 kB / 383.7 MB, free: 8.824 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001458/0.3156, allocations: 0.789 MB / 384.5 MB, free: 8.031 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004688/0.3203, allocations: 2.908 MB / 387.4 MB, free: 5.059 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001181/0.3215, allocations: 0.6976 MB / 388.1 MB, free: 4.332 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009211/0.3224, allocations: 0.647 MB / 388.8 MB, free: 3.676 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0279/0.3503, allocations: 30.16 MB / 418.9 MB, free: 1.418 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007251/0.3511, allocations: 357.7 kB / 419.3 MB, free: 1.059 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 2.625e-06/0.3511, allocations: 3.938 kB / 419.3 MB, free: 1.055 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.003123/0.3542, allocations: 1.407 MB / 420.7 MB, free: 15.61 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.77e-05/0.3543, allocations: 63.34 kB / 420.7 MB, free: 15.54 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003108/0.3574, allocations: 2.812 MB / 423.6 MB, free: 12.71 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.072e-05/0.3574, allocations: 33.7 kB / 423.6 MB, free: 12.67 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00112/0.3586, allocations: 1.395 MB / 425 MB, free: 11.27 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001503/0.3587, allocations: 165.7 kB / 425.1 MB, free: 11.1 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002818/0.359, allocations: 222.1 kB / 425.4 MB, free: 10.88 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001219/0.3591, allocations: 345.9 kB / 425.7 MB, free: 10.54 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005526/0.3597, allocations: 233.9 kB / 425.9 MB, free: 10.31 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007786/0.3605, allocations: 0.5852 MB / 426.5 MB, free: 9.559 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001312/0.3618, allocations: 0.888 MB / 427.4 MB, free: 8.5 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.863e-06/0.3618, allocations: 4 kB / 427.4 MB, free: 8.496 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002177/0.364, allocations: 1.284 MB / 428.7 MB, free: 7.199 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.682e-05/0.3641, allocations: 15.97 kB / 428.7 MB, free: 7.184 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001069/0.3642, allocations: 84 kB / 428.8 MB, free: 7.102 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005657/0.3647, allocations: 276.6 kB / 429.1 MB, free: 6.828 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005444/0.3653, allocations: 171.7 kB / 429.2 MB, free: 6.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000949/0.3663, allocations: 0.8763 MB / 430.1 MB, free: 5.758 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001105/0.3674, allocations: 111.2 kB / 430.2 MB, free: 5.648 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001022/0.3675, allocations: 64 kB / 430.3 MB, free: 5.586 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.0007224/0.3682, allocations: 421.5 kB / 430.7 MB, free: 5.164 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003402/0.3686, allocations: 371.5 kB / 431 MB, free: 4.797 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002905/0.3715, allocations: 1.267 MB / 432.3 MB, free: 3.516 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.661e-05/0.3715, allocations: 4 kB / 432.3 MB, free: 3.512 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/0.3715, allocations: 0 / 432.3 MB, free: 3.512 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.714e-06/0.3715, allocations: 11.98 kB / 432.3 MB, free: 3.5 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00319/0.3747, allocations: 2.193 MB / 434.5 MB, free: 1.223 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.412e-05/0.3748, allocations: 84 kB / 434.6 MB, free: 1.141 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003066/0.3752, allocations: 63.88 kB / 434.7 MB, free: 1.078 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004751/0.3756, allocations: 264.8 kB / 434.9 MB, free: 0.8164 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.062e-05/0.3757, allocations: 39.98 kB / 435 MB, free: 0.7773 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008503/0.3766, allocations: 0.8645 MB / 435.8 MB, free: 15.89 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.486e-06/0.3766, allocations: 4.031 kB / 435.8 MB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001759/0.3783, allocations: 1.129 MB / 437 MB, free: 14.71 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006102/0.379, allocations: 468.4 kB / 437.4 MB, free: 14.23 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002709/0.3792, allocations: 15.94 kB / 437.4 MB, free: 14.21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006399/0.3799, allocations: 31.95 kB / 437.5 MB, free: 14.18 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000158/0.3801, allocations: 63.95 kB / 437.5 MB, free: 14.12 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.625e-05/0.3801, allocations: 39.98 kB / 437.6 MB, free: 14.08 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002206/0.3824, allocations: 1.836 MB / 439.4 MB, free: 12.24 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.3824, allocations: 0 / 439.4 MB, free: 12.24 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001325/0.3837, allocations: 0.5662 MB / 440 MB, free: 11.68 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.001071/0.3848, allocations: 0.7812 MB / 440.7 MB, free: 10.89 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001789/0.3866, allocations: 0.861 MB / 441.6 MB, free: 10 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.816e-06/0.3866, allocations: 0.875 kB / 441.6 MB, free: 10 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000903/0.3875, allocations: 0.4966 MB / 442.1 MB, free: 9.48 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001704/0.3892, allocations: 0.5055 MB / 442.6 MB, free: 8.969 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006084/0.3953, allocations: 4.745 MB / 447.4 MB, free: 4.176 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001196/0.3965, allocations: 1.604 MB / 449 MB, free: 2.539 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001368/0.3979, allocations: 387.1 kB / 449.3 MB, free: 2.156 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002321/0.3982, allocations: 167.4 kB / 449.5 MB, free: 1.992 MB / 382.1 MB Notification: Performance of SimCode: time 9.22e-07/0.3982, allocations: 0 / 449.5 MB, free: 1.992 MB / 382.1 MB Notification: Performance of Templates: time 0.1936/0.5918, allocations: 33.18 MB / 482.7 MB, free: 94.21 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)