Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Electrical.Analog.Examples.NandGate") translateModel(Modelica.Electrical.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.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.001328/0.001328, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001586/0.001586, allocations: 194.2 kB / 16.13 MB, free: 6.664 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.465/1.465, allocations: 205.1 MB / 222 MB, free: 4.977 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.001321/0.001321, allocations: 51.92 kB / 278 MB, free: 12.99 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2944/0.2957, allocations: 46.62 MB / 324.7 MB, free: 1.828 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005425/0.3012, allocations: 4.057 MB / 328.7 MB, free: 14.61 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00257/0.3038, allocations: 1.117 MB / 329.8 MB, free: 13.68 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003194/0.3041, allocations: 13.69 kB / 329.9 MB, free: 13.67 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002776/0.3044, allocations: 67.64 kB / 329.9 MB, free: 13.61 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000395/0.3049, allocations: 140.2 kB / 330.1 MB, free: 13.49 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006333/0.3055, allocations: 253.8 kB / 330.3 MB, free: 13.26 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001041/0.3065, allocations: 0.8901 MB / 331.2 MB, free: 12.73 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004844/0.307, allocations: 229.1 kB / 331.4 MB, free: 12.61 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005515/0.3076, allocations: 326 kB / 331.7 MB, free: 12.41 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000554/0.3082, allocations: 403.3 kB / 332.1 MB, free: 12.13 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001283/0.3083, allocations: 55.53 kB / 332.2 MB, free: 12.13 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001478/0.3085, allocations: 57 kB / 332.2 MB, free: 12.13 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001764/0.3086, allocations: 150.5 kB / 332.4 MB, free: 12 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004396/0.3091, allocations: 370.7 kB / 332.8 MB, free: 11.73 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001326/0.3104, allocations: 1.074 MB / 333.8 MB, free: 10.88 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.017e-06/0.3104, allocations: 5.094 kB / 333.8 MB, free: 10.87 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.3105, allocations: 0 / 333.8 MB, free: 10.87 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.319e-05/0.3105, allocations: 0 / 333.8 MB, free: 10.87 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.003477/0.314, allocations: 1.185 MB / 335 MB, free: 9.742 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.054e-05/0.314, allocations: 8.031 kB / 335 MB, free: 9.734 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002038/0.3143, allocations: 72.09 kB / 335.1 MB, free: 9.664 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006866/0.3149, allocations: 445.8 kB / 335.5 MB, free: 9.188 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.624e-05/0.315, allocations: 49.69 kB / 335.6 MB, free: 9.137 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001092/0.3151, allocations: 52.38 kB / 335.6 MB, free: 9.086 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00218/0.3173, allocations: 0.9212 MB / 336.6 MB, free: 8.102 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.341e-05/0.3174, allocations: 8 kB / 336.6 MB, free: 8.094 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.742e-05/0.3174, allocations: 20 kB / 336.6 MB, free: 8.074 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.334e-05/0.3175, allocations: 16 kB / 336.6 MB, free: 8.059 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002741/0.3202, allocations: 0.9795 MB / 337.6 MB, free: 7.082 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004716/0.325, allocations: 3.056 MB / 340.6 MB, free: 3.895 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00223/0.3272, allocations: 0.914 MB / 341.5 MB, free: 2.934 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001162/0.3284, allocations: 446 kB / 342 MB, free: 2.496 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.277e-05/0.3285, allocations: 16.56 kB / 342 MB, free: 2.48 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001367/0.3298, allocations: 457 kB / 342.4 MB, free: 2.02 MB / 270.1 MB Notification: Performance of pre-optimization done (n=50): time 2.916e-06/0.3299, allocations: 0 / 342.4 MB, free: 2.02 MB / 270.1 MB Notification: Performance of matching and sorting (n=50): time 0.003193/0.3331, allocations: 1.084 MB / 343.5 MB, free: 0.9297 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001652/0.3332, allocations: 273.4 kB / 343.8 MB, free: 0.5977 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007583/0.334, allocations: 0.5096 MB / 344.3 MB, free: 80 kB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 6.687e-05/0.3341, allocations: 37.7 kB / 344.3 MB, free: 36 kB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002746/0.3344, allocations: 339.5 kB / 344.7 MB, free: 15.7 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001421/0.3345, allocations: 165.6 kB / 344.8 MB, free: 15.54 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002374/0.3348, allocations: 142.4 kB / 345 MB, free: 15.39 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001412/0.3349, allocations: 366.7 kB / 345.3 MB, free: 15.02 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001067/0.336, allocations: 401.7 kB / 345.7 MB, free: 14.63 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001284/0.3373, allocations: 0.6546 MB / 346.4 MB, free: 13.87 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002123/0.3394, allocations: 0.9701 MB / 347.3 MB, free: 12.8 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.019e-06/0.3394, allocations: 0 / 347.3 MB, free: 12.8 MB / 286.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00274/0.3422, allocations: 1.122 MB / 348.5 MB, free: 11.66 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.928e-05/0.3423, allocations: 71.33 kB / 348.5 MB, free: 11.58 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.833e-05/0.3423, allocations: 8 kB / 348.5 MB, free: 11.57 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.839e-05/0.3423, allocations: 8 kB / 348.6 MB, free: 11.57 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001019/0.3434, allocations: 228 kB / 348.8 MB, free: 11.34 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.836e-05/0.3434, allocations: 8 kB / 348.8 MB, free: 11.34 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001059/0.3445, allocations: 183 kB / 349 MB, free: 11.16 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.367e-05/0.3445, allocations: 32 kB / 349 MB, free: 11.12 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.0003212/0.3449, allocations: 209.7 kB / 349.2 MB, free: 10.91 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001001/0.345, allocations: 55.34 kB / 349.3 MB, free: 10.86 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001479/0.3451, allocations: 65.58 kB / 349.3 MB, free: 10.79 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.256e-06/0.3452, allocations: 7.938 kB / 349.3 MB, free: 10.78 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.347e-06/0.3452, allocations: 0 / 349.3 MB, free: 10.78 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.063e-05/0.3452, allocations: 11.97 kB / 349.3 MB, free: 10.77 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003094/0.3483, allocations: 1.646 MB / 351 MB, free: 9.066 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.641e-06/0.3483, allocations: 4 kB / 351 MB, free: 9.062 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00076/0.3491, allocations: 155.7 kB / 351.1 MB, free: 8.91 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.839e-06/0.3491, allocations: 0 / 351.1 MB, free: 8.91 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.784e-05/0.3491, allocations: 12 kB / 351.1 MB, free: 8.898 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.169e-06/0.3491, allocations: 8.016 kB / 351.2 MB, free: 8.891 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.3492, allocations: 3.984 kB / 351.2 MB, free: 8.887 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003105/0.3523, allocations: 1.283 MB / 352.4 MB, free: 7.59 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001781/0.3525, allocations: 144.2 kB / 352.6 MB, free: 7.43 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.592e-05/0.3526, allocations: 12 kB / 352.6 MB, free: 7.418 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007448/0.3533, allocations: 103.9 kB / 352.7 MB, free: 7.316 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001724/0.3535, allocations: 52.36 kB / 352.7 MB, free: 7.266 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.596e-05/0.3535, allocations: 20 kB / 352.8 MB, free: 7.246 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0005501/0.3541, allocations: 354.8 kB / 353.1 MB, free: 6.902 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3541, allocations: 0 / 353.1 MB, free: 6.902 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006624/0.3548, allocations: 167.8 kB / 353.3 MB, free: 6.738 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.0001889/0.355, allocations: 119.1 kB / 353.4 MB, free: 6.613 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.002391/0.3574, allocations: 0.9933 MB / 354.4 MB, free: 5.59 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.3574, allocations: 0 / 354.4 MB, free: 5.59 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001143/0.3585, allocations: 418.6 kB / 354.8 MB, free: 5.18 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005938/0.3591, allocations: 93.69 kB / 354.9 MB, free: 5.086 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002504/0.3617, allocations: 1.393 MB / 356.3 MB, free: 3.668 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004536/0.3621, allocations: 0.8668 MB / 357.1 MB, free: 2.777 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0004133/0.3626, allocations: 76.66 kB / 357.2 MB, free: 2.699 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002209/0.3628, allocations: 51.42 kB / 357.3 MB, free: 2.648 MB / 286.1 MB Notification: Performance of SimCode: time 8.61e-07/0.3628, allocations: 0 / 357.3 MB, free: 2.648 MB / 286.1 MB Notification: Performance of Templates: time 0.01257/0.3754, allocations: 7.448 MB / 364.7 MB, free: 11.2 MB / 302.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.NandGate.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1)