Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Electrical.Spice3.Examples.Nand") translateModel(Modelica.Electrical.Spice3.Examples.Nand,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.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.001111/0.001111, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001281/0.001281, allocations: 168.7 kB / 15.95 MB, free: 204 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.466/1.466, allocations: 205.4 MB / 222.1 MB, free: 5.887 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.0004679/0.000468, allocations: 14.66 kB / 278.9 MB, free: 13.07 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2535/0.254, allocations: 47.6 MB / 326.5 MB, free: 1.391 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.0117/0.2658, allocations: 11.81 MB / 338.3 MB, free: 7.699 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.02364/0.2895, allocations: 17.57 MB / 355.9 MB, free: 6.082 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002979/0.2925, allocations: 63.5 kB / 355.9 MB, free: 6.02 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003222/0.2957, allocations: 0.836 MB / 356.8 MB, free: 5.18 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006848/0.3026, allocations: 1.785 MB / 358.5 MB, free: 3.383 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003944/0.3066, allocations: 1.061 MB / 359.6 MB, free: 2.316 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01033/0.3169, allocations: 5.822 MB / 365.4 MB, free: 12.48 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001091/0.3181, allocations: 403.2 kB / 365.8 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001622/0.3197, allocations: 0.8085 MB / 366.6 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001682/0.3214, allocations: 0.9436 MB / 367.6 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003992/0.3218, allocations: 40 kB / 367.6 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00508/0.3269, allocations: 1.07 MB / 368.7 MB, free: 9.18 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004652/0.3274, allocations: 266 kB / 368.9 MB, free: 8.918 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00114/0.3285, allocations: 0.5936 MB / 369.5 MB, free: 8.316 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003016/0.3316, allocations: 2.629 MB / 372.2 MB, free: 5.68 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.3316, allocations: 0 / 372.2 MB, free: 5.68 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3316, allocations: 0 / 372.2 MB, free: 5.68 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.229e-05/0.3316, allocations: 0 / 372.2 MB, free: 5.68 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.003991/0.3356, allocations: 3.119 MB / 375.3 MB, free: 2.488 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.576e-05/0.3357, allocations: 8.031 kB / 375.3 MB, free: 2.48 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003417/0.336, allocations: 375.5 kB / 375.7 MB, free: 2.109 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00338/0.3394, allocations: 2.38 MB / 378 MB, free: 15.66 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.141e-05/0.3395, allocations: 33 kB / 378.1 MB, free: 15.62 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001187/0.3396, allocations: 55.84 kB / 378.1 MB, free: 15.57 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001247/0.3408, allocations: 0.7187 MB / 378.8 MB, free: 14.85 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.197e-05/0.3409, allocations: 0 / 378.8 MB, free: 14.85 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.21e-05/0.3409, allocations: 19.98 kB / 378.9 MB, free: 14.83 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.939e-05/0.341, allocations: 16 kB / 378.9 MB, free: 14.81 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001425/0.3424, allocations: 0.8359 MB / 379.7 MB, free: 13.97 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004264/0.3467, allocations: 2.909 MB / 382.6 MB, free: 11 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001209/0.3479, allocations: 0.7522 MB / 383.4 MB, free: 10.22 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009672/0.3489, allocations: 0.6821 MB / 384 MB, free: 9.535 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0265/0.3754, allocations: 30.16 MB / 414.2 MB, free: 7.262 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007224/0.3761, allocations: 385.6 kB / 414.6 MB, free: 6.875 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 2.705e-06/0.3761, allocations: 3.938 kB / 414.6 MB, free: 6.871 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.003215/0.3794, allocations: 1.493 MB / 416.1 MB, free: 5.344 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.497e-05/0.3794, allocations: 59.41 kB / 416.1 MB, free: 5.273 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003448/0.3829, allocations: 2.781 MB / 418.9 MB, free: 2.473 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.72e-05/0.3829, allocations: 37.69 kB / 419 MB, free: 2.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001142/0.3841, allocations: 1.391 MB / 420.4 MB, free: 1.031 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001578/0.3843, allocations: 169.7 kB / 420.5 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.623e-05/0.3843, allocations: 20 kB / 420.5 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001279/0.3845, allocations: 337.9 kB / 420.9 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005352/0.385, allocations: 253.9 kB / 421.1 MB, free: 268 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007827/0.3858, allocations: 0.6164 MB / 421.7 MB, free: 15.48 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000641/0.3864, allocations: 332.1 kB / 422.1 MB, free: 15.16 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.784e-06/0.3865, allocations: 4 kB / 422.1 MB, free: 15.15 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002313/0.3888, allocations: 1.323 MB / 423.4 MB, free: 13.82 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.363e-05/0.3888, allocations: 12 kB / 423.4 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001167/0.3889, allocations: 80 kB / 423.5 MB, free: 13.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005502/0.3895, allocations: 280.7 kB / 423.7 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005495/0.3901, allocations: 175.7 kB / 423.9 MB, free: 13.28 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009423/0.391, allocations: 0.8919 MB / 424.8 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001118/0.3921, allocations: 111.1 kB / 424.9 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001242/0.3923, allocations: 64 kB / 425 MB, free: 12.19 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.0009631/0.3932, allocations: 425.5 kB / 425.4 MB, free: 11.76 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004205/0.3937, allocations: 371.5 kB / 425.8 MB, free: 11.39 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003009/0.3967, allocations: 1.318 MB / 427.1 MB, free: 10.06 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.765e-06/0.3967, allocations: 8 kB / 427.1 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.175e-06/0.3967, allocations: 3.984 kB / 427.1 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.3967, allocations: 0 / 427.1 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003372/0.4001, allocations: 2.244 MB / 429.3 MB, free: 7.723 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.974e-05/0.4002, allocations: 68 kB / 429.4 MB, free: 7.656 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000295/0.4005, allocations: 71.94 kB / 429.5 MB, free: 7.586 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004416/0.401, allocations: 264.7 kB / 429.7 MB, free: 7.324 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.335e-05/0.401, allocations: 32 kB / 429.8 MB, free: 7.293 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000843/0.4019, allocations: 0.8607 MB / 430.6 MB, free: 6.406 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.4019, allocations: 0 / 430.6 MB, free: 6.406 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001813/0.4037, allocations: 1.176 MB / 431.8 MB, free: 5.191 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006867/0.4044, allocations: 464.4 kB / 432.3 MB, free: 4.715 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00025/0.4047, allocations: 8 kB / 432.3 MB, free: 4.707 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005869/0.4053, allocations: 43.95 kB / 432.3 MB, free: 4.664 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001499/0.4054, allocations: 71.88 kB / 432.4 MB, free: 4.594 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.123e-05/0.4055, allocations: 40 kB / 432.4 MB, free: 4.555 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002473/0.408, allocations: 1.801 MB / 434.2 MB, free: 2.75 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.408, allocations: 0 / 434.2 MB, free: 2.75 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001334/0.4094, allocations: 0.5661 MB / 434.8 MB, free: 2.184 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.001023/0.4104, allocations: 0.7534 MB / 435.5 MB, free: 1.422 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001731/0.4121, allocations: 0.8891 MB / 436.4 MB, free: 0.5078 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.4121, allocations: 0 / 436.4 MB, free: 0.5078 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008701/0.413, allocations: 0.5009 MB / 436.9 MB, free: 15.98 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001578/0.4146, allocations: 493.6 kB / 437.4 MB, free: 15.5 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005679/0.4203, allocations: 4.447 MB / 441.9 MB, free: 11 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009957/0.4213, allocations: 1.62 MB / 443.5 MB, free: 9.352 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001312/0.4226, allocations: 391.1 kB / 443.9 MB, free: 8.965 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002198/0.4229, allocations: 159.4 kB / 444 MB, free: 8.809 MB / 382.1 MB Notification: Performance of SimCode: time 1.373e-06/0.4229, allocations: 0 / 444 MB, free: 8.809 MB / 382.1 MB Notification: Performance of Templates: time 0.2309/0.6538, allocations: 31.26 MB / 475.3 MB, free: 101 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nand.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nand.sim & ./Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nand -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1)