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.001116/0.001116, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001349/0.001349, allocations: 192.1 kB / 16.14 MB, free: 6.707 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.533/1.533, allocations: 205.1 MB / 222 MB, free: 4.762 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.00125/0.00125, allocations: 56.31 kB / 278.1 MB, free: 12.76 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2736/0.2748, allocations: 46.62 MB / 324.7 MB, free: 2.035 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005166/0.2801, allocations: 4.061 MB / 328.7 MB, free: 14.81 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002564/0.2827, allocations: 1.116 MB / 329.8 MB, free: 13.88 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003156/0.283, allocations: 8.781 kB / 329.9 MB, free: 13.88 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002572/0.2833, allocations: 69.73 kB / 329.9 MB, free: 13.82 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003869/0.2837, allocations: 143.3 kB / 330.1 MB, free: 13.7 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005765/0.2843, allocations: 250.1 kB / 330.3 MB, free: 13.47 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009273/0.2853, allocations: 0.8894 MB / 331.2 MB, free: 12.94 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004838/0.2857, allocations: 237.6 kB / 331.4 MB, free: 12.8 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004439/0.2862, allocations: 322 kB / 331.7 MB, free: 12.62 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004767/0.2867, allocations: 398.5 kB / 332.1 MB, free: 12.34 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001314/0.2868, allocations: 56.34 kB / 332.2 MB, free: 12.34 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001418/0.287, allocations: 57.22 kB / 332.2 MB, free: 12.34 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001665/0.2871, allocations: 158.1 kB / 332.4 MB, free: 12.2 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004284/0.2876, allocations: 362.9 kB / 332.8 MB, free: 11.94 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001109/0.2887, allocations: 1.081 MB / 333.8 MB, free: 11.07 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.541e-06/0.2887, allocations: 0 / 333.8 MB, free: 11.07 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.2887, allocations: 4 kB / 333.8 MB, free: 11.07 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.032e-05/0.2887, allocations: 0 / 333.8 MB, free: 11.07 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.002932/0.2917, allocations: 1.181 MB / 335 MB, free: 9.82 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.209e-05/0.2917, allocations: 8.031 kB / 335 MB, free: 9.812 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001559/0.2919, allocations: 76.09 kB / 335.1 MB, free: 9.738 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006122/0.2925, allocations: 445.7 kB / 335.5 MB, free: 9.262 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.524e-05/0.2926, allocations: 45.69 kB / 335.6 MB, free: 9.215 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.803e-05/0.2927, allocations: 52.38 kB / 335.6 MB, free: 9.164 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001971/0.2947, allocations: 0.9251 MB / 336.6 MB, free: 8.176 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.561e-05/0.2947, allocations: 4 kB / 336.6 MB, free: 8.172 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.104e-05/0.2948, allocations: 28 kB / 336.6 MB, free: 8.145 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.323e-05/0.2948, allocations: 12 kB / 336.6 MB, free: 8.133 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002645/0.2974, allocations: 0.9756 MB / 337.6 MB, free: 7.16 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00486/0.3023, allocations: 3.056 MB / 340.6 MB, free: 3.973 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002386/0.3047, allocations: 0.9093 MB / 341.5 MB, free: 3.016 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001143/0.3059, allocations: 441.9 kB / 342 MB, free: 2.582 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.746e-05/0.306, allocations: 16.48 kB / 342 MB, free: 2.566 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001326/0.3073, allocations: 465 kB / 342.4 MB, free: 2.098 MB / 270.1 MB Notification: Performance of pre-optimization done (n=50): time 5.36e-06/0.3073, allocations: 3.938 kB / 342.4 MB, free: 2.094 MB / 270.1 MB Notification: Performance of matching and sorting (n=50): time 0.003509/0.3108, allocations: 1.084 MB / 343.5 MB, free: 1.004 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001902/0.311, allocations: 273.4 kB / 343.8 MB, free: 0.6719 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009699/0.312, allocations: 0.5056 MB / 344.3 MB, free: 160 kB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 7.578e-05/0.3121, allocations: 37.7 kB / 344.3 MB, free: 116 kB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003048/0.3124, allocations: 343.5 kB / 344.7 MB, free: 15.77 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001649/0.3126, allocations: 169.6 kB / 344.8 MB, free: 15.61 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002604/0.3129, allocations: 138.5 kB / 345 MB, free: 15.46 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001516/0.313, allocations: 366.8 kB / 345.3 MB, free: 15.1 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001145/0.3142, allocations: 401.7 kB / 345.7 MB, free: 14.71 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001348/0.3155, allocations: 0.6467 MB / 346.4 MB, free: 13.95 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002212/0.3178, allocations: 0.974 MB / 347.3 MB, free: 12.88 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.636e-06/0.3178, allocations: 4 kB / 347.4 MB, free: 12.88 MB / 286.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002827/0.3206, allocations: 1.118 MB / 348.5 MB, free: 11.74 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.154e-05/0.3207, allocations: 67.39 kB / 348.5 MB, free: 11.66 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.67e-05/0.3207, allocations: 4 kB / 348.5 MB, free: 11.66 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.778e-05/0.3208, allocations: 12 kB / 348.6 MB, free: 11.65 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001028/0.3218, allocations: 228 kB / 348.8 MB, free: 11.43 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.365e-05/0.3218, allocations: 15.94 kB / 348.8 MB, free: 11.41 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001085/0.3229, allocations: 179.1 kB / 349 MB, free: 11.23 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.216e-05/0.323, allocations: 28 kB / 349 MB, free: 11.21 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.0003756/0.3234, allocations: 209.7 kB / 349.2 MB, free: 10.99 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001435/0.3235, allocations: 55.34 kB / 349.3 MB, free: 10.94 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000172/0.3237, allocations: 73.58 kB / 349.3 MB, free: 10.86 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.155e-06/0.3237, allocations: 7.938 kB / 349.3 MB, free: 10.86 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.153e-05/0.3238, allocations: 0 / 349.3 MB, free: 10.86 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.067e-06/0.3238, allocations: 7.922 kB / 349.3 MB, free: 10.85 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003468/0.3272, allocations: 1.65 MB / 351 MB, free: 9.141 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.3273, allocations: 0 / 351 MB, free: 9.141 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007798/0.3281, allocations: 151.8 kB / 351.1 MB, free: 8.992 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.195e-05/0.3281, allocations: 7.938 kB / 351.1 MB, free: 8.984 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.745e-05/0.3281, allocations: 8 kB / 351.2 MB, free: 8.977 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.039e-06/0.3281, allocations: 0 / 351.2 MB, free: 8.977 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.3282, allocations: 0 / 351.2 MB, free: 8.977 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003225/0.3314, allocations: 1.29 MB / 352.4 MB, free: 7.672 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002113/0.3316, allocations: 144.2 kB / 352.6 MB, free: 7.512 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001401/0.3318, allocations: 12 kB / 352.6 MB, free: 7.5 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007972/0.3326, allocations: 99.92 kB / 352.7 MB, free: 7.402 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001674/0.3327, allocations: 52.36 kB / 352.7 MB, free: 7.352 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.708e-05/0.3328, allocations: 12 kB / 352.8 MB, free: 7.34 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0006408/0.3334, allocations: 358.8 kB / 353.1 MB, free: 6.992 MB / 286.1 MB Notification: Performance of sort global known variables: time 4e-07/0.3335, allocations: 0 / 353.1 MB, free: 6.992 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0007914/0.3343, allocations: 171.7 kB / 353.3 MB, free: 6.824 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.0002281/0.3345, allocations: 123.1 kB / 353.4 MB, free: 6.695 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.002611/0.3371, allocations: 0.9933 MB / 354.4 MB, free: 5.672 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.489e-06/0.3371, allocations: 0 / 354.4 MB, free: 5.672 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001106/0.3383, allocations: 418.5 kB / 354.8 MB, free: 5.262 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007577/0.339, allocations: 89.75 kB / 354.9 MB, free: 5.172 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002896/0.3419, allocations: 1.393 MB / 356.3 MB, free: 3.754 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004228/0.3424, allocations: 0.8591 MB / 357.1 MB, free: 2.871 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.000464/0.3428, allocations: 84.64 kB / 357.2 MB, free: 2.785 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002138/0.3431, allocations: 43.44 kB / 357.3 MB, free: 2.742 MB / 286.1 MB Notification: Performance of SimCode: time 1.002e-06/0.3431, allocations: 0 / 357.3 MB, free: 2.742 MB / 286.1 MB Notification: Performance of Templates: time 0.01452/0.3576, allocations: 7.457 MB / 364.7 MB, free: 11.28 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)