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.8193/0.8193, allocations: 110.8 MB / 123.3 MB, free: 10.8 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001612/0.001612, allocations: 151.5 kB / 149.1 MB, free: 1.008 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 2.479e-05/2.488e-05, allocations: 4 kB / 180.2 MB, free: 17.57 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04761/0.04765, allocations: 25.18 MB / 205.4 MB, free: 8.445 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.05894/0.1066, allocations: 37.07 MB / 242.5 MB, free: 3.316 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002567/0.107, allocations: 67.97 kB / 242.5 MB, free: 3.25 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1278/0.2347, allocations: 9.79 MB / 252.3 MB, free: 40.84 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2348, allocations: 3.938 kB / 252.3 MB, free: 40.84 MB / 186.7 MB Notification: Performance of Transformations before backend: time 2.309e-05/0.2348, allocations: 12.06 kB / 252.3 MB, free: 40.84 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.00198/0.2368, allocations: 1.004 MB / 253.3 MB, free: 40.13 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.906e-05/0.2368, allocations: 14.62 kB / 253.3 MB, free: 40.13 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001305/0.237, allocations: 70.91 kB / 253.4 MB, free: 40.09 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004705/0.2374, allocations: 418.4 kB / 253.8 MB, free: 39.72 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.254e-05/0.2375, allocations: 48.03 kB / 253.9 MB, free: 39.7 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.903e-05/0.2376, allocations: 54.72 kB / 253.9 MB, free: 39.68 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009938/0.2386, allocations: 0.6794 MB / 254.6 MB, free: 39.23 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.459e-05/0.2386, allocations: 15.27 kB / 254.6 MB, free: 39.21 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.18e-05/0.2387, allocations: 21.44 kB / 254.6 MB, free: 39.2 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.064e-05/0.2387, allocations: 11.44 kB / 254.7 MB, free: 39.2 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008678/0.2396, allocations: 0.5988 MB / 255.2 MB, free: 38.93 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003586/0.2432, allocations: 3.133 MB / 258.4 MB, free: 36.4 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009512/0.2441, allocations: 0.6852 MB / 259.1 MB, free: 35.94 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004835/0.2446, allocations: 311.7 kB / 259.4 MB, free: 35.75 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.245e-05/0.2447, allocations: 12.42 kB / 259.4 MB, free: 35.74 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004794/0.2452, allocations: 329.3 kB / 259.7 MB, free: 35.41 MB / 186.7 MB Notification: Performance of pre-optimization done (n=52): time 2.365e-06/0.2452, allocations: 4 kB / 259.7 MB, free: 35.4 MB / 186.7 MB Notification: Performance of matching and sorting (n=52): time 0.0008013/0.246, allocations: 0.515 MB / 260.2 MB, free: 34.88 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.835e-05/0.246, allocations: 63.75 kB / 260.3 MB, free: 34.8 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.0003976/0.2464, allocations: 439.7 kB / 260.7 MB, free: 34.37 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 3.987e-05/0.2465, allocations: 37.7 kB / 260.8 MB, free: 34.33 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001262/0.2466, allocations: 331.6 kB / 261.1 MB, free: 34 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.439e-05/0.2467, allocations: 177.2 kB / 261.3 MB, free: 33.82 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.783e-05/0.2468, allocations: 16 kB / 261.3 MB, free: 33.81 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 6.506e-05/0.2468, allocations: 370.7 kB / 261.6 MB, free: 33.44 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003434/0.2472, allocations: 241.5 kB / 261.9 MB, free: 33.2 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004046/0.2476, allocations: 450 kB / 262.3 MB, free: 32.67 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003818/0.248, allocations: 270.5 kB / 262.6 MB, free: 32.4 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.248, allocations: 0 / 262.6 MB, free: 32.4 MB / 186.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001064/0.2491, allocations: 0.7791 MB / 263.3 MB, free: 31.62 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.615e-05/0.2491, allocations: 10.03 kB / 263.4 MB, free: 31.61 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.966e-06/0.2491, allocations: 11.94 kB / 263.4 MB, free: 31.6 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.67e-05/0.2491, allocations: 8.812 kB / 263.4 MB, free: 31.59 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009642/0.2501, allocations: 259.6 kB / 263.6 MB, free: 31.34 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.452e-05/0.2501, allocations: 14.72 kB / 263.6 MB, free: 31.32 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008248/0.2509, allocations: 183.1 kB / 263.8 MB, free: 31.14 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.219e-05/0.251, allocations: 28 kB / 263.9 MB, free: 31.12 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.000197/0.2512, allocations: 191.8 kB / 264 MB, free: 30.93 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.53e-05/0.2513, allocations: 55.34 kB / 264.1 MB, free: 30.87 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001346/0.2514, allocations: 61.36 kB / 264.2 MB, free: 30.81 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.999e-06/0.2514, allocations: 8 kB / 264.2 MB, free: 30.8 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.2515, allocations: 0 / 264.2 MB, free: 30.8 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/0.2515, allocations: 0 / 264.2 MB, free: 30.8 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001613/0.2531, allocations: 1.396 MB / 265.6 MB, free: 29.37 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.2531, allocations: 0 / 265.6 MB, free: 29.37 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007166/0.2538, allocations: 171.8 kB / 265.7 MB, free: 29.2 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.749e-06/0.2538, allocations: 0 / 265.7 MB, free: 29.2 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.51e-05/0.2539, allocations: 12 kB / 265.7 MB, free: 29.19 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.566e-06/0.2539, allocations: 7.938 kB / 265.7 MB, free: 29.18 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.2539, allocations: 7.953 kB / 265.8 MB, free: 29.17 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001123/0.255, allocations: 0.9044 MB / 266.7 MB, free: 28.25 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.789e-05/0.2551, allocations: 140.3 kB / 266.8 MB, free: 28.1 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.224e-05/0.2552, allocations: 12 kB / 266.8 MB, free: 28.09 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006019/0.2558, allocations: 108 kB / 266.9 MB, free: 27.98 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.323e-05/0.2559, allocations: 52.31 kB / 267 MB, free: 27.93 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.953e-05/0.256, allocations: 15.98 kB / 267 MB, free: 27.91 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0002844/0.2563, allocations: 325.6 kB / 267.3 MB, free: 27.59 MB / 186.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.2563, allocations: 0 / 267.3 MB, free: 27.59 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0005072/0.2568, allocations: 167.7 kB / 267.5 MB, free: 27.43 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.0001361/0.2569, allocations: 128.5 kB / 267.6 MB, free: 27.29 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0008489/0.2578, allocations: 0.6032 MB / 268.2 MB, free: 26.69 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 1.372e-06/0.2578, allocations: 0 / 268.2 MB, free: 26.69 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004045/0.2582, allocations: 284.2 kB / 268.5 MB, free: 26.41 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005355/0.2588, allocations: 96.05 kB / 268.6 MB, free: 26.32 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00142/0.2602, allocations: 0.8313 MB / 269.4 MB, free: 25.46 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002744/0.2605, allocations: 0.8709 MB / 270.3 MB, free: 24.56 MB / 186.7 MB Notification: Performance of simCode: alias equations: time 0.0003817/0.2609, allocations: 84.69 kB / 270.3 MB, free: 24.48 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002049/0.2611, allocations: 43.44 kB / 270.4 MB, free: 24.43 MB / 186.7 MB Notification: Performance of SimCode: time 6.41e-07/0.2611, allocations: 0 / 270.4 MB, free: 24.43 MB / 186.7 MB Notification: Performance of Templates: time 0.009237/0.2703, allocations: 6.489 MB / 276.9 MB, free: 17.95 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)