Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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="mat",numberOfIntervals=5000,variableFilter="time|Nand.C4.v|Nand.C7.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate") translateModel(Modelica.Electrical.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Nand.C4.v|Nand.C7.v",fileNamePrefix="Modelica_4.0.0_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.001259/0.001259, allocations: 113.5 kB / 17.7 MB, free: 5.309 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.001219/0.001219, allocations: 191 kB / 18.63 MB, free: 4.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.484/1.484, allocations: 222.9 MB / 242.3 MB, free: 15.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001072/0.001073, allocations: 51.67 kB / 302.1 MB, free: 5.215 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.123/0.1241, allocations: 49.45 MB / 351.5 MB, free: 3.742 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.008177/0.1323, allocations: 4.221 MB / 355.7 MB, free: 15.49 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003614/0.136, allocations: 1.176 MB / 356.9 MB, free: 14.31 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006247/0.1367, allocations: 8 kB / 356.9 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000433/0.1371, allocations: 114.8 kB / 357 MB, free: 14.19 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006218/0.1378, allocations: 182.3 kB / 357.2 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001086/0.1389, allocations: 323.6 kB / 357.5 MB, free: 13.69 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001708/0.1406, allocations: 1.093 MB / 358.6 MB, free: 12.59 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006834/0.1413, allocations: 294.5 kB / 358.9 MB, free: 12.3 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006892/0.142, allocations: 406.8 kB / 359.3 MB, free: 11.9 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006992/0.1428, allocations: 458.3 kB / 359.7 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002134/0.143, allocations: 120 kB / 359.9 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002007/0.1432, allocations: 116 kB / 360 MB, free: 11.22 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002878/0.1435, allocations: 227.3 kB / 360.2 MB, free: 11 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000617/0.1441, allocations: 457.9 kB / 360.6 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0019/0.146, allocations: 1.211 MB / 361.9 MB, free: 9.336 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.055e-06/0.1461, allocations: 3.938 kB / 361.9 MB, free: 9.332 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.276e-06/0.1461, allocations: 0 / 361.9 MB, free: 9.332 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.645e-05/0.1461, allocations: 11.94 kB / 361.9 MB, free: 9.32 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: 147 * Number of variables: 147 Notification: Performance of Generate backend data structure: time 0.004251/0.1504, allocations: 1.259 MB / 363.1 MB, free: 7.992 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.31e-05/0.1505, allocations: 8.031 kB / 363.1 MB, free: 7.984 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002549/0.1507, allocations: 84 kB / 363.2 MB, free: 7.902 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001324/0.1521, allocations: 481.6 kB / 363.7 MB, free: 7.391 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.788e-05/0.1521, allocations: 49.62 kB / 363.7 MB, free: 7.344 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002336/0.1524, allocations: 60.38 kB / 363.8 MB, free: 7.285 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003281/0.1557, allocations: 0.9607 MB / 364.8 MB, free: 6.262 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.772e-05/0.1557, allocations: 7.938 kB / 364.8 MB, free: 6.254 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000105/0.1558, allocations: 24 kB / 364.8 MB, free: 6.23 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.234e-05/0.1559, allocations: 16 kB / 364.8 MB, free: 6.215 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004437/0.1603, allocations: 0.9991 MB / 365.8 MB, free: 5.219 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007312/0.1676, allocations: 3.18 MB / 369 MB, free: 1.906 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003442/0.1711, allocations: 0.9081 MB / 369.9 MB, free: 0.957 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001601/0.1727, allocations: 449.7 kB / 370.3 MB, free: 0.5117 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.861e-05/0.1728, allocations: 16.41 kB / 370.3 MB, free: 0.4961 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001682/0.1745, allocations: 457.1 kB / 370.8 MB, free: 36 kB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 6.271e-06/0.1745, allocations: 3.984 kB / 370.8 MB, free: 32 kB / 302.1 MB Notification: Performance of matching and sorting (n=50): time 0.2787/0.4532, allocations: 1.094 MB / 371.9 MB, free: 25.68 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000182/0.4535, allocations: 376.2 kB / 372.3 MB, free: 25.24 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001261/0.4547, allocations: 0.5739 MB / 372.8 MB, free: 25.12 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001118/0.4549, allocations: 39.98 kB / 372.9 MB, free: 25.09 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003714/0.4552, allocations: 368.8 kB / 373.2 MB, free: 24.96 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001842/0.4554, allocations: 171.5 kB / 373.4 MB, free: 24.86 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003505/0.4558, allocations: 137.7 kB / 373.5 MB, free: 24.81 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001947/0.456, allocations: 376.3 kB / 373.9 MB, free: 24.47 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001452/0.4575, allocations: 400.9 kB / 374.3 MB, free: 24.36 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001568/0.459, allocations: 0.6806 MB / 375 MB, free: 23.89 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002392/0.4614, allocations: 0.9674 MB / 375.9 MB, free: 23.37 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.094e-05/0.4615, allocations: 5.844 kB / 375.9 MB, free: 23.37 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003014/0.4645, allocations: 1.139 MB / 377.1 MB, free: 22.93 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.852e-05/0.4646, allocations: 69.97 kB / 377.2 MB, free: 22.86 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.749e-05/0.4646, allocations: 8.234 kB / 377.2 MB, free: 22.86 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.585e-05/0.4646, allocations: 9.219 kB / 377.2 MB, free: 22.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001052/0.4657, allocations: 223.7 kB / 377.4 MB, free: 22.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.124e-05/0.4657, allocations: 13.06 kB / 377.4 MB, free: 22.84 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001195/0.4669, allocations: 188.3 kB / 377.6 MB, free: 22.78 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.415e-05/0.467, allocations: 33.36 kB / 377.6 MB, free: 22.77 MB / 302.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.0004106/0.4675, allocations: 222.1 kB / 377.8 MB, free: 22.59 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001404/0.4676, allocations: 69.19 kB / 377.9 MB, free: 22.55 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001802/0.4678, allocations: 74.23 kB / 378 MB, free: 22.51 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.524e-05/0.4678, allocations: 6.188 kB / 378 MB, free: 22.51 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.456e-05/0.4679, allocations: 5.375 kB / 378 MB, free: 22.51 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.1e-05/0.4679, allocations: 3.047 kB / 378 MB, free: 22.51 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004192/0.4721, allocations: 1.678 MB / 379.7 MB, free: 21.71 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.493e-06/0.4721, allocations: 0 / 379.7 MB, free: 21.71 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009492/0.4731, allocations: 146 kB / 379.8 MB, free: 21.7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.233e-05/0.4731, allocations: 3.734 kB / 379.8 MB, free: 21.7 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.441e-05/0.4732, allocations: 19.55 kB / 379.8 MB, free: 21.69 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.392e-06/0.4732, allocations: 0 / 379.8 MB, free: 21.69 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.4732, allocations: 0.6562 kB / 379.8 MB, free: 21.69 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003938/0.4771, allocations: 1.293 MB / 381.1 MB, free: 21.17 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003134/0.4775, allocations: 143.3 kB / 381.3 MB, free: 21.04 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001229/0.4776, allocations: 13.42 kB / 381.3 MB, free: 21.03 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008046/0.4784, allocations: 105.9 kB / 381.4 MB, free: 21.02 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002088/0.4786, allocations: 56.14 kB / 381.4 MB, free: 21 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.858e-05/0.4787, allocations: 12.55 kB / 381.5 MB, free: 21 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0008466/0.4795, allocations: 401.6 kB / 381.8 MB, free: 20.82 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4795, allocations: 0 / 381.8 MB, free: 20.82 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008356/0.4804, allocations: 181.9 kB / 382 MB, free: 20.78 MB / 302.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.0001975/0.4806, allocations: 126.8 kB / 382.1 MB, free: 20.67 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002687/0.4833, allocations: 0.9939 MB / 383.1 MB, free: 20.29 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.252e-06/0.4833, allocations: 5.281 kB / 383.1 MB, free: 20.29 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001172/0.4845, allocations: 412.2 kB / 383.5 MB, free: 20.17 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007317/0.4852, allocations: 105.6 kB / 383.7 MB, free: 20.12 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002687/0.4879, allocations: 1.247 MB / 384.9 MB, free: 19.46 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004131/0.4884, allocations: 0.882 MB / 385.8 MB, free: 18.74 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004204/0.4888, allocations: 87.44 kB / 385.9 MB, free: 18.72 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002539/0.489, allocations: 52.58 kB / 385.9 MB, free: 18.71 MB / 302.1 MB Notification: Performance of SimCode: time 1.302e-06/0.4891, allocations: 0 / 385.9 MB, free: 18.71 MB / 302.1 MB Notification: Performance of Templates: time 0.01584/0.5049, allocations: 8.694 MB / 394.6 MB, free: 14.12 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1)