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.01047/0.01047, allocations: 103.2 kB / 15.73 MB, free: 6.004 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.001614/0.001614, allocations: 191.3 kB / 16.67 MB, free: 5.93 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.5 MB, free: 12.22 MB / 190.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.001324/0.001324, allocations: 56.38 kB / 326.6 MB, free: 3.27 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1053, allocations: 46.6 MB / 373.2 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005744/0.1111, allocations: 4.041 MB / 377.2 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.2377/0.3489, allocations: 1.116 MB / 378.3 MB, free: 9.742 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000465/0.3494, allocations: 9.719 kB / 378.3 MB, free: 9.742 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003015/0.3498, allocations: 94.61 kB / 378.4 MB, free: 9.742 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005079/0.3503, allocations: 181.9 kB / 378.6 MB, free: 9.703 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00081/0.3511, allocations: 282.9 kB / 378.9 MB, free: 9.703 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001139/0.3523, allocations: 0.9681 MB / 379.8 MB, free: 9.559 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005232/0.3528, allocations: 276.4 kB / 380.1 MB, free: 9.523 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005887/0.3534, allocations: 379.3 kB / 380.5 MB, free: 9.465 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007121/0.3541, allocations: 439.3 kB / 380.9 MB, free: 9.246 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002834/0.3544, allocations: 113.6 kB / 381 MB, free: 9.246 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001886/0.3546, allocations: 113.5 kB / 381.1 MB, free: 9.246 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001905/0.3548, allocations: 213.9 kB / 381.3 MB, free: 9.098 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003842/0.3552, allocations: 420.4 kB / 381.8 MB, free: 8.824 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001326/0.3565, allocations: 1.134 MB / 382.9 MB, free: 8.414 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.013e-06/0.3566, allocations: 1.688 kB / 382.9 MB, free: 8.414 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.166e-06/0.3566, allocations: 0 / 382.9 MB, free: 8.414 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.413e-05/0.3566, allocations: 1.281 kB / 382.9 MB, free: 8.414 MB / 318.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.002877/0.3595, allocations: 1.191 MB / 384.1 MB, free: 7.648 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.072e-05/0.3595, allocations: 10.38 kB / 384.1 MB, free: 7.648 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001692/0.3597, allocations: 76.56 kB / 384.2 MB, free: 7.609 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006553/0.3604, allocations: 444.6 kB / 384.6 MB, free: 7.246 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.579e-05/0.3604, allocations: 45.41 kB / 384.6 MB, free: 7.227 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001132/0.3605, allocations: 50.75 kB / 384.7 MB, free: 7.211 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002175/0.3627, allocations: 0.9291 MB / 385.6 MB, free: 6.77 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.877e-05/0.3628, allocations: 1.188 kB / 385.6 MB, free: 6.77 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.262e-05/0.3628, allocations: 23.06 kB / 385.6 MB, free: 6.754 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.015e-05/0.3629, allocations: 12.91 kB / 385.7 MB, free: 6.754 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00294/0.3658, allocations: 0.977 MB / 386.6 MB, free: 6.477 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004596/0.3704, allocations: 3.059 MB / 389.7 MB, free: 4.426 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002362/0.3728, allocations: 0.9099 MB / 390.6 MB, free: 3.988 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001298/0.3741, allocations: 442.7 kB / 391 MB, free: 3.852 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.984e-05/0.3742, allocations: 14.52 kB / 391.1 MB, free: 3.852 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001293/0.3755, allocations: 465 kB / 391.5 MB, free: 3.688 MB / 318.1 MB Notification: Performance of pre-optimization done (n=50): time 2.255e-06/0.3755, allocations: 0 / 391.5 MB, free: 3.688 MB / 318.1 MB Notification: Performance of matching and sorting (n=50): time 0.003375/0.3789, allocations: 1.084 MB / 392.6 MB, free: 3.344 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.572e-05/0.379, allocations: 274.4 kB / 392.9 MB, free: 3.023 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008034/0.3798, allocations: 0.4991 MB / 393.4 MB, free: 2.777 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.504e-05/0.3798, allocations: 37.8 kB / 393.4 MB, free: 2.738 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002345/0.3801, allocations: 341.7 kB / 393.7 MB, free: 2.461 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001655/0.3803, allocations: 176.2 kB / 393.9 MB, free: 2.328 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002634/0.3805, allocations: 134.4 kB / 394 MB, free: 2.258 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001409/0.3807, allocations: 365.8 kB / 394.4 MB, free: 1.922 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001257/0.3819, allocations: 401.3 kB / 394.8 MB, free: 1.805 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001386/0.3833, allocations: 0.6535 MB / 395.4 MB, free: 1.367 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002232/0.3856, allocations: 0.9693 MB / 396.4 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.025e-06/0.3856, allocations: 3.688 kB / 396.4 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002914/0.3885, allocations: 1.132 MB / 397.5 MB, free: 264 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.923e-05/0.3886, allocations: 60.94 kB / 397.6 MB, free: 200 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.815e-05/0.3886, allocations: 6.438 kB / 397.6 MB, free: 200 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.492e-05/0.3887, allocations: 12 kB / 397.6 MB, free: 200 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001067/0.3897, allocations: 226.8 kB / 397.8 MB, free: 128 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.496e-05/0.3898, allocations: 17.97 kB / 397.9 MB, free: 120 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001191/0.391, allocations: 176.2 kB / 398 MB, free: 24 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.137e-05/0.3911, allocations: 28.78 kB / 398.1 MB, free: 20 kB / 318.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.0004144/0.3915, allocations: 216.1 kB / 398.3 MB, free: 15.84 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001102/0.3916, allocations: 60.27 kB / 398.3 MB, free: 15.8 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001613/0.3918, allocations: 63.66 kB / 398.4 MB, free: 15.76 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.324e-06/0.3918, allocations: 12.38 kB / 398.4 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.084e-05/0.3918, allocations: 3.938 kB / 398.4 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.556e-06/0.3918, allocations: 12.98 kB / 398.4 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003601/0.3954, allocations: 1.63 MB / 400 MB, free: 14.62 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.792e-06/0.3954, allocations: 3.938 kB / 400 MB, free: 14.61 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008067/0.3963, allocations: 145.5 kB / 400.2 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.041e-06/0.3963, allocations: 9.312 kB / 400.2 MB, free: 14.56 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.598e-05/0.3963, allocations: 7.562 kB / 400.2 MB, free: 14.56 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.769e-06/0.3963, allocations: 2.375 kB / 400.2 MB, free: 14.56 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.3963, allocations: 0 / 400.2 MB, free: 14.56 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003567/0.3999, allocations: 1.286 MB / 401.5 MB, free: 13.85 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002361/0.4002, allocations: 143.3 kB / 401.6 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001151/0.4003, allocations: 12.41 kB / 401.6 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008021/0.4011, allocations: 103.4 kB / 401.7 MB, free: 13.65 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001985/0.4013, allocations: 54.47 kB / 401.8 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.115e-05/0.4014, allocations: 14.47 kB / 401.8 MB, free: 13.62 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006663/0.402, allocations: 351.7 kB / 402.2 MB, free: 13.41 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.402, allocations: 0 / 402.2 MB, free: 13.41 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009912/0.403, allocations: 166 kB / 402.3 MB, free: 13.38 MB / 334.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.0002556/0.4033, allocations: 125.1 kB / 402.4 MB, free: 13.27 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002857/0.4062, allocations: 0.9935 MB / 403.4 MB, free: 12.74 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.606e-06/0.4062, allocations: 1.312 kB / 403.4 MB, free: 12.74 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001147/0.4073, allocations: 417.2 kB / 403.8 MB, free: 12.55 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006343/0.408, allocations: 96.55 kB / 403.9 MB, free: 12.5 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002674/0.4107, allocations: 1.17 MB / 405.1 MB, free: 11.76 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005598/0.4112, allocations: 0.8566 MB / 406 MB, free: 11 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0004166/0.4117, allocations: 78.61 kB / 406 MB, free: 10.96 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002268/0.4119, allocations: 51.52 kB / 406.1 MB, free: 10.95 MB / 334.1 MB Notification: Performance of SimCode: time 1.042e-06/0.4119, allocations: 0 / 406.1 MB, free: 10.95 MB / 334.1 MB Notification: Performance of Templates: time 0.01624/0.4282, allocations: 8.231 MB / 414.3 MB, free: 4.57 MB / 334.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)