Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Analog.Examples.NandGate.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.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Analog.Examples.NandGate") translateModel(Modelica.Electrical.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Analog.Examples.NandGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008102/0.0008104, allocations: 91.14 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.005533/0.005534, allocations: 170.9 kB / 16.26 MB, free: 6.613 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.559/1.559, allocations: 205.4 MB / 222.4 MB, free: 5.562 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.0007817/0.000782, allocations: 19.98 kB / 279.4 MB, free: 12.52 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3354/0.3362, allocations: 47.58 MB / 327 MB, free: 1.418 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.004268/0.3405, allocations: 3.657 MB / 330.7 MB, free: 14.5 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002223/0.3428, allocations: 1.103 MB / 331.8 MB, free: 13.58 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002869/0.3431, allocations: 13.19 kB / 331.8 MB, free: 13.57 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002086/0.3433, allocations: 68.39 kB / 331.9 MB, free: 13.52 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003445/0.3437, allocations: 144 kB / 332 MB, free: 13.39 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005452/0.3442, allocations: 246.4 kB / 332.2 MB, free: 13.17 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008968/0.3452, allocations: 0.8936 MB / 333.1 MB, free: 12.63 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004071/0.3456, allocations: 231.9 kB / 333.4 MB, free: 12.5 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003952/0.346, allocations: 303 kB / 333.7 MB, free: 12.33 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004485/0.3464, allocations: 376.1 kB / 334 MB, free: 12.07 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 9.842e-05/0.3465, allocations: 47.66 kB / 334.1 MB, free: 12.07 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001118/0.3467, allocations: 48.31 kB / 334.1 MB, free: 12.07 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000136/0.3468, allocations: 146.2 kB / 334.3 MB, free: 11.95 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003461/0.3472, allocations: 372.3 kB / 334.6 MB, free: 11.67 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000878/0.348, allocations: 1.052 MB / 335.7 MB, free: 10.68 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.3481, allocations: 0 / 335.7 MB, free: 10.68 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.3481, allocations: 0 / 335.7 MB, free: 10.68 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.656e-06/0.3481, allocations: 0 / 335.7 MB, free: 10.68 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.002618/0.3507, allocations: 1.15 MB / 336.8 MB, free: 9.465 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.822e-05/0.3508, allocations: 8.031 kB / 336.8 MB, free: 9.457 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001494/0.3509, allocations: 80.08 kB / 336.9 MB, free: 9.379 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005447/0.3515, allocations: 433.9 kB / 337.3 MB, free: 8.906 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.847e-05/0.3515, allocations: 41.69 kB / 337.4 MB, free: 8.863 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001097/0.3516, allocations: 52.38 kB / 337.4 MB, free: 8.812 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002236/0.3539, allocations: 1.011 MB / 338.4 MB, free: 7.738 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.807e-05/0.3539, allocations: 4 kB / 338.4 MB, free: 7.734 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.724e-05/0.354, allocations: 31.98 kB / 338.5 MB, free: 7.703 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.458e-05/0.354, allocations: 12 kB / 338.5 MB, free: 7.691 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003061/0.3571, allocations: 1.128 MB / 339.6 MB, free: 6.566 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004625/0.3617, allocations: 3.142 MB / 342.8 MB, free: 3.293 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002504/0.3643, allocations: 1.03 MB / 343.8 MB, free: 2.215 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001245/0.3655, allocations: 497.9 kB / 344.3 MB, free: 1.727 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.49e-05/0.3656, allocations: 16.41 kB / 344.3 MB, free: 1.711 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001326/0.3669, allocations: 0.5127 MB / 344.8 MB, free: 1.184 MB / 270.1 MB Notification: Performance of pre-optimization done (n=50): time 3.537e-06/0.3669, allocations: 0 / 344.8 MB, free: 1.184 MB / 270.1 MB Notification: Performance of matching and sorting (n=50): time 0.003484/0.3704, allocations: 1.26 MB / 346.1 MB, free: 15.92 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001313/0.3706, allocations: 273.4 kB / 346.3 MB, free: 15.59 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007106/0.3713, allocations: 0.4979 MB / 346.8 MB, free: 15.08 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 6.876e-05/0.3714, allocations: 41.7 kB / 346.9 MB, free: 15.03 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002323/0.3716, allocations: 335.6 kB / 347.2 MB, free: 14.7 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001659/0.3718, allocations: 173.6 kB / 347.4 MB, free: 14.53 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.955e-05/0.3719, allocations: 61.69 kB / 347.4 MB, free: 14.46 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001999/0.3721, allocations: 366.8 kB / 347.8 MB, free: 14.09 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00136/0.3735, allocations: 469.6 kB / 348.2 MB, free: 13.64 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001437/0.3749, allocations: 0.7054 MB / 349 MB, free: 12.82 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002455/0.3774, allocations: 1.087 MB / 350 MB, free: 11.64 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.162e-06/0.3774, allocations: 0 / 350 MB, free: 11.64 MB / 286.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003121/0.3805, allocations: 1.247 MB / 351.3 MB, free: 10.38 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.341e-05/0.3806, allocations: 67.41 kB / 351.4 MB, free: 10.3 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.422e-05/0.3806, allocations: 4 kB / 351.4 MB, free: 10.29 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.297e-05/0.3807, allocations: 16.39 kB / 351.4 MB, free: 10.28 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001077/0.3818, allocations: 251.6 kB / 351.6 MB, free: 10.03 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.956e-05/0.3818, allocations: 23.92 kB / 351.6 MB, free: 10.01 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001163/0.383, allocations: 207.1 kB / 351.8 MB, free: 9.805 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.873e-05/0.383, allocations: 39.98 kB / 351.9 MB, free: 9.766 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 10 (VIN2.signalSource.count,$PRE.VIN2.signalSource.count,VIN2.signalSource.T_start,$PRE.VIN2.signalSource.T_start,VIN1.signalSource.count,$PRE.VIN1.signalSource.count,VIN1.signalSource.T_start,$PRE.VIN1.signalSource.T_start,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003481/0.3834, allocations: 217.6 kB / 352.1 MB, free: 9.543 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.664e-05/0.3835, allocations: 59.34 kB / 352.2 MB, free: 9.484 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001508/0.3837, allocations: 61.58 kB / 352.2 MB, free: 9.422 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.025e-06/0.3837, allocations: 7.938 kB / 352.2 MB, free: 9.414 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.127e-05/0.3837, allocations: 0 / 352.2 MB, free: 9.414 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.532e-06/0.3837, allocations: 0 / 352.2 MB, free: 9.414 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003558/0.3873, allocations: 1.771 MB / 354 MB, free: 7.586 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.621e-06/0.3873, allocations: 4 kB / 354 MB, free: 7.582 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008294/0.3881, allocations: 171.8 kB / 354.2 MB, free: 7.414 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.173e-06/0.3882, allocations: 11.94 kB / 354.2 MB, free: 7.402 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.896e-05/0.3882, allocations: 15.98 kB / 354.2 MB, free: 7.387 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.368e-06/0.3882, allocations: 0 / 354.2 MB, free: 7.387 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.3882, allocations: 3.938 kB / 354.2 MB, free: 7.383 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003528/0.3918, allocations: 1.462 MB / 355.7 MB, free: 5.906 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001457/0.3919, allocations: 144.2 kB / 355.8 MB, free: 5.746 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.757e-05/0.392, allocations: 12 kB / 355.8 MB, free: 5.734 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007925/0.3928, allocations: 139.9 kB / 355.9 MB, free: 5.598 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001423/0.393, allocations: 52.36 kB / 356 MB, free: 5.547 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.052e-05/0.393, allocations: 16 kB / 356 MB, free: 5.531 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0004966/0.3935, allocations: 350.8 kB / 356.4 MB, free: 5.191 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3935, allocations: 4 kB / 356.4 MB, free: 5.188 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005957/0.3941, allocations: 163.8 kB / 356.5 MB, free: 5.027 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Nand.C4.v,Nand.C7.v) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,VIN1.signalSource.T_start,VIN1.signalSource.count,VIN2.signalSource.T_start,VIN2.signalSource.count) * Number of discrete states: 2 (VIN1.signalSource.count,VIN2.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001731/0.3943, allocations: 111.2 kB / 356.6 MB, free: 4.91 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.00267/0.397, allocations: 1.118 MB / 357.7 MB, free: 3.762 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.397, allocations: 0 / 357.7 MB, free: 3.762 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001132/0.3981, allocations: 475 kB / 358.2 MB, free: 3.297 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006236/0.3988, allocations: 97.72 kB / 358.3 MB, free: 3.199 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002479/0.4013, allocations: 1.483 MB / 359.8 MB, free: 1.688 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003967/0.4017, allocations: 0.8591 MB / 360.6 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0003978/0.4021, allocations: 76.66 kB / 360.7 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000198/0.4023, allocations: 47.42 kB / 360.8 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of SimCode: time 8.82e-07/0.4023, allocations: 0 / 360.8 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of Templates: time 0.01293/0.4152, allocations: 7.387 MB / 368.2 MB, free: 9.289 MB / 302.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.NandGate.makefile (rm -f Modelica_3.1_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_3.1_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1)