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/Modelica 3.1.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo", uses=false) Using package ModelicaServices with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo) Using package Modelica with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.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/Modelica 3.1.0+maint.om/package.mo): time 0.7702/0.7702, allocations: 110.8 MB / 118.3 MB, free: 14.47 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001559/0.001559, allocations: 163.4 kB / 144 MB, free: 4.789 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 1.521e-05/1.524e-05, allocations: 4 kB / 173.8 MB, free: 22.81 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.03999/0.04002, allocations: 25.19 MB / 199 MB, free: 13.69 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0492/0.08926, allocations: 36.4 MB / 235.4 MB, free: 9.234 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001608/0.08946, allocations: 63.97 kB / 235.5 MB, free: 9.172 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1391/0.2285, allocations: 9.696 MB / 245.2 MB, free: 39.73 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.2286, allocations: 5.656 kB / 245.2 MB, free: 39.73 MB / 186.7 MB Notification: Performance of Transformations before backend: time 3.013e-05/0.2286, allocations: 11.41 kB / 245.2 MB, free: 39.73 MB / 186.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.002179/0.2308, allocations: 1 MB / 246.2 MB, free: 39.23 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.656e-05/0.2308, allocations: 9.625 kB / 246.2 MB, free: 39.23 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001277/0.231, allocations: 71.47 kB / 246.3 MB, free: 39.2 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005272/0.2315, allocations: 417.7 kB / 246.7 MB, free: 38.95 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.846e-05/0.2315, allocations: 20.66 kB / 246.7 MB, free: 38.95 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.917e-05/0.2316, allocations: 33.02 kB / 246.7 MB, free: 38.95 MB / 186.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001008/0.2327, allocations: 0.5561 MB / 247.3 MB, free: 38.95 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001336/0.234, allocations: 0.6151 MB / 247.9 MB, free: 38.82 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.354e-05/0.234, allocations: 3.469 kB / 247.9 MB, free: 38.82 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.296e-05/0.2341, allocations: 6.391 kB / 247.9 MB, free: 38.82 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.299e-05/0.2342, allocations: 14.03 kB / 247.9 MB, free: 38.82 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006313/0.2405, allocations: 3.031 MB / 251 MB, free: 37.52 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00154/0.2421, allocations: 0.6666 MB / 251.6 MB, free: 37.19 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008195/0.2429, allocations: 286.3 kB / 251.9 MB, free: 37.07 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.109e-05/0.243, allocations: 20.12 kB / 251.9 MB, free: 37.07 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008602/0.2439, allocations: 320.6 kB / 252.3 MB, free: 36.92 MB / 186.7 MB Notification: Performance of pre-optimization done (n=52): time 3.287e-06/0.2439, allocations: 0 / 252.3 MB, free: 36.92 MB / 186.7 MB Notification: Performance of matching and sorting (n=52): time 0.001357/0.2453, allocations: 498.2 kB / 252.7 MB, free: 36.7 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.774e-05/0.2453, allocations: 59.72 kB / 252.8 MB, free: 36.63 MB / 186.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/Electrical/Analog/Sources.mo:1077:5-1078:65:writable] Warning: Parameter VIN2.nperiod has no value, and is fixed during initialization (fixed=true), using available start value (start=-1) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/Electrical/Analog/Sources.mo:1077:5-1078:65:writable] Warning: Parameter VIN1.nperiod has no value, and is fixed during initialization (fixed=true), using available start value (start=-1) as default value. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007702/0.2461, allocations: 416.1 kB / 253.2 MB, free: 36.41 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 5.525e-05/0.2462, allocations: 28.05 kB / 253.2 MB, free: 36.38 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002626/0.2465, allocations: 335.5 kB / 253.6 MB, free: 36.11 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00018/0.2467, allocations: 166.6 kB / 253.7 MB, free: 35.98 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.572e-05/0.2467, allocations: 0 / 253.7 MB, free: 35.98 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001314/0.2469, allocations: 365.1 kB / 254.1 MB, free: 35.64 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005715/0.2474, allocations: 221.7 kB / 254.3 MB, free: 35.54 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006693/0.2481, allocations: 442.1 kB / 254.7 MB, free: 35.18 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005942/0.2487, allocations: 252.5 kB / 255 MB, free: 35.07 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.917e-06/0.2488, allocations: 4.969 kB / 255 MB, free: 35.07 MB / 186.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001877/0.2507, allocations: 0.7057 MB / 255.7 MB, free: 34.76 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.185e-05/0.2507, allocations: 11.5 kB / 255.7 MB, free: 34.76 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.037e-05/0.2508, allocations: 12.25 kB / 255.7 MB, free: 34.76 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.967e-05/0.2508, allocations: 10.5 kB / 255.7 MB, free: 34.76 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001611/0.2524, allocations: 252.9 kB / 256 MB, free: 34.73 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.912e-05/0.2525, allocations: 18.89 kB / 256 MB, free: 34.73 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001568/0.2541, allocations: 169.7 kB / 256.1 MB, free: 34.68 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.246e-05/0.2542, allocations: 28.19 kB / 256.2 MB, free: 34.68 MB / 186.7 MB Warning: Assuming fixed start value for the following 8 variables: VIN1.signalSource.counter:DISCRETE(start = VIN1.signalSource.nperiod fixed = false protected = true ) "Period counter" type: Integer VIN2.signalSource.counter:DISCRETE(start = VIN2.signalSource.nperiod fixed = false protected = true ) "Period counter" type: Integer Nand.C7.v:VARIABLE(unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real Nand.C4.v:VARIABLE(unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real VIN2.signalSource.counter2:DISCRETE(start = VIN2.signalSource.nperiod fixed = false protected = true ) type: Integer VIN2.signalSource.T0:DISCRETE(start = VIN2.signalSource.startTime unit = "s" fixed = false protected = true ) "Start time of current period" type: Real VIN1.signalSource.counter2:DISCRETE(start = VIN1.signalSource.nperiod fixed = false protected = true ) type: Integer VIN1.signalSource.T0:DISCRETE(start = VIN1.signalSource.startTime unit = "s" fixed = false protected = true ) "Start time of current period" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.VIN1.signalSource.counter,VIN1.signalSource.counter,$PRE.VIN2.signalSource.counter,VIN2.signalSource.counter,$whenCondition2,$whenCondition1,$PRE.VIN1.signalSource.T0,VIN1.signalSource.T0,$PRE.VIN1.signalSource.counter2,VIN1.signalSource.counter2,$PRE.VIN2.signalSource.T0,VIN2.signalSource.T0,$PRE.VIN2.signalSource.counter2,VIN2.signalSource.counter2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 95 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003318/0.2545, allocations: 164.2 kB / 256.3 MB, free: 34.54 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001429/0.2547, allocations: 58.7 kB / 256.4 MB, free: 34.51 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002367/0.2549, allocations: 64.06 kB / 256.5 MB, free: 34.47 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.667e-06/0.255, allocations: 3.875 kB / 256.5 MB, free: 34.47 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.518e-05/0.255, allocations: 0 / 256.5 MB, free: 34.47 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.114e-05/0.255, allocations: 7.188 kB / 256.5 MB, free: 34.47 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002885/0.2579, allocations: 1.288 MB / 257.8 MB, free: 33.77 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.033e-06/0.2579, allocations: 2.688 kB / 257.8 MB, free: 33.77 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001422/0.2594, allocations: 172.5 kB / 257.9 MB, free: 33.75 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.148e-05/0.2594, allocations: 3.375 kB / 257.9 MB, free: 33.75 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.394e-05/0.2595, allocations: 11.47 kB / 257.9 MB, free: 33.75 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.54e-06/0.2595, allocations: 0 / 257.9 MB, free: 33.75 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.98e-06/0.2595, allocations: 0 / 257.9 MB, free: 33.75 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00196/0.2615, allocations: 0.875 MB / 258.8 MB, free: 33.27 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001738/0.2617, allocations: 136.9 kB / 258.9 MB, free: 33.14 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001489/0.2618, allocations: 7 kB / 259 MB, free: 33.13 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001127/0.263, allocations: 107.3 kB / 259.1 MB, free: 33.12 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001563/0.2632, allocations: 42.72 kB / 259.1 MB, free: 33.11 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.035e-05/0.2633, allocations: 18.19 kB / 259.1 MB, free: 33.11 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0004561/0.2637, allocations: 296.5 kB / 259.4 MB, free: 32.95 MB / 186.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.2637, allocations: 0 / 259.4 MB, free: 32.95 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.001038/0.2648, allocations: 145.6 kB / 259.5 MB, free: 32.93 MB / 186.7 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: 8 ($whenCondition2,$whenCondition1,VIN1.signalSource.T0,VIN1.signalSource.counter,VIN1.signalSource.counter2,VIN2.signalSource.T0,VIN2.signalSource.counter,VIN2.signalSource.counter2) * Number of discrete states: 4 (VIN1.signalSource.counter2,VIN2.signalSource.counter2,VIN1.signalSource.counter,VIN2.signalSource.counter) * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 46 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002123/0.265, allocations: 120 kB / 259.7 MB, free: 32.83 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.001444/0.2665, allocations: 0.5649 MB / 260.2 MB, free: 32.59 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.2665, allocations: 1.812 kB / 260.2 MB, free: 32.59 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006185/0.2671, allocations: 272.8 kB / 260.5 MB, free: 32.48 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008029/0.268, allocations: 74.89 kB / 260.6 MB, free: 32.45 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00225/0.2702, allocations: 0.8109 MB / 261.4 MB, free: 32 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003529/0.2706, allocations: 0.8725 MB / 262.3 MB, free: 31.3 MB / 186.7 MB Notification: Performance of simCode: alias equations: time 0.0007255/0.2714, allocations: 77.36 kB / 262.3 MB, free: 31.28 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003048/0.2717, allocations: 46.56 kB / 262.4 MB, free: 31.27 MB / 186.7 MB Notification: Performance of SimCode: time 7.32e-07/0.2717, allocations: 0 / 262.4 MB, free: 31.27 MB / 186.7 MB Notification: Performance of Templates: time 0.01672/0.2884, allocations: 5.863 MB / 268.2 MB, free: 27.77 MB / 186.7 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)