Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Digital.Examples.HalfAdder.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.Digital.Examples.HalfAdder,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Digital.Examples.HalfAdder") translateModel(Modelica.Electrical.Digital.Examples.HalfAdder,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Digital.Examples.HalfAdder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001442/0.001442, allocations: 93.88 kB / 16.3 MB, free: 6.457 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.001654/0.001654, allocations: 184.2 kB / 17.2 MB, free: 6.34 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.792/1.792, allocations: 205.4 MB / 223.3 MB, free: 13.17 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.0004493/0.0004494, allocations: 12 kB / 280.1 MB, free: 3.766 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1187/0.1192, allocations: 47.58 MB / 327.7 MB, free: 4.113 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002293/0.1215, allocations: 1.737 MB / 329.4 MB, free: 2.363 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002213/0.1238, allocations: 1.007 MB / 330.4 MB, free: 1.348 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001259/0.1239, allocations: 7.938 kB / 330.4 MB, free: 1.34 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001922/0.1241, allocations: 23.84 kB / 330.5 MB, free: 1.316 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001212/0.1243, allocations: 47.8 kB / 330.5 MB, free: 1.27 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003916/0.1247, allocations: 91.81 kB / 330.6 MB, free: 1.18 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003176/0.125, allocations: 203.6 kB / 330.8 MB, free: 0.9805 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002229/0.1252, allocations: 85.59 kB / 330.9 MB, free: 0.8984 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007428/0.126, allocations: 0.6628 MB / 331.5 MB, free: 240 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002184/0.1262, allocations: 183.5 kB / 331.7 MB, free: 56 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.372e-05/0.1263, allocations: 12 kB / 331.7 MB, free: 44 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.057e-05/0.1263, allocations: 12 kB / 331.8 MB, free: 32 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001755/0.1265, allocations: 143.6 kB / 331.9 MB, free: 15.89 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000141/0.1267, allocations: 141.3 kB / 332 MB, free: 15.74 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006851/0.1274, allocations: 0.7911 MB / 332.8 MB, free: 14.95 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.935e-06/0.1274, allocations: 0 / 332.8 MB, free: 14.95 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.1274, allocations: 4 kB / 332.8 MB, free: 14.95 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.766e-06/0.1274, allocations: 0 / 332.8 MB, free: 14.95 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 42 * Number of variables: 42 Notification: Performance of Generate backend data structure: time 0.001052/0.1285, allocations: 0.9668 MB / 333.8 MB, free: 13.91 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.912e-05/0.1285, allocations: 8.031 kB / 333.8 MB, free: 13.9 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001137/0.1286, allocations: 79.06 kB / 333.9 MB, free: 13.82 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005395/0.1292, allocations: 411.4 kB / 334.3 MB, free: 13.38 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.572e-05/0.1292, allocations: 16 kB / 334.3 MB, free: 13.36 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.288e-05/0.1293, allocations: 20 kB / 334.3 MB, free: 13.34 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005966/0.1299, allocations: 297.2 kB / 334.6 MB, free: 13.05 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.081e-05/0.1299, allocations: 4 kB / 334.6 MB, free: 13.04 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.227e-05/0.13, allocations: 8 kB / 334.6 MB, free: 13.04 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.177e-06/0.13, allocations: 7.984 kB / 334.6 MB, free: 13.03 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004042/0.1304, allocations: 203.9 kB / 334.8 MB, free: 12.83 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001357/0.1318, allocations: 0.8865 MB / 335.7 MB, free: 11.89 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004595/0.1322, allocations: 230.4 kB / 335.9 MB, free: 11.66 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.43e-05/0.1323, allocations: 0 / 335.9 MB, free: 11.66 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005714/0.1328, allocations: 377.9 kB / 336.3 MB, free: 11.25 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.623e-06/0.1329, allocations: 0 / 336.3 MB, free: 11.25 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.001413/0.1343, allocations: 0.9037 MB / 337.2 MB, free: 10.28 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001128/0.1344, allocations: 174.2 kB / 337.4 MB, free: 10.07 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00132/0.1357, allocations: 1.016 MB / 338.4 MB, free: 9.043 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.97e-05/0.1358, allocations: 29.7 kB / 338.4 MB, free: 9.008 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001185/0.1359, allocations: 157.8 kB / 338.6 MB, free: 8.852 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.082e-05/0.136, allocations: 51.3 kB / 338.6 MB, free: 8.801 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.729e-05/0.136, allocations: 8 kB / 338.6 MB, free: 8.793 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001444/0.1362, allocations: 334.8 kB / 339 MB, free: 8.457 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002627/0.1364, allocations: 123.9 kB / 339.1 MB, free: 8.336 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002872/0.1367, allocations: 168.2 kB / 339.2 MB, free: 8.156 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003072/0.1371, allocations: 222.7 kB / 339.5 MB, free: 7.914 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.1371, allocations: 0 / 339.5 MB, free: 7.914 MB / 286.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009197/0.138, allocations: 0.578 MB / 340 MB, free: 7.305 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001105/0.1381, allocations: 142.7 kB / 340.2 MB, free: 7.141 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.1381, allocations: 0 / 340.2 MB, free: 7.141 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.475e-05/0.1382, allocations: 0 / 340.2 MB, free: 7.141 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.933e-05/0.1382, allocations: 23.98 kB / 340.2 MB, free: 7.117 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.985e-06/0.1383, allocations: 4 kB / 340.2 MB, free: 7.113 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002847/0.1386, allocations: 31.88 kB / 340.2 MB, free: 7.082 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001954/0.1388, allocations: 119.8 kB / 340.4 MB, free: 6.965 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 28 ($PRE.Adder.XOR.G2.y,$PRE.Adder.AND.G2.y,a.y,b.y,Adder.AND.G1.auxiliary_n,Adder.XOR.G1.auxiliary_n,$whenCondition1,$whenCondition2,$PRE.Adder.XOR.G1.auxiliary_n,$PRE.Adder.XOR.G2.x,Adder.XOR.G2.x,Adder.XOR.G2.y,Adder.XOR.G2.delayTime,Adder.XOR.G2.y_auxiliary,Adder.XOR.G2.y_old,Adder.XOR.G2.lh,Adder.XOR.G2.t_next,$whenCondition3,$whenCondition4,$PRE.Adder.AND.G1.auxiliary_n,$PRE.Adder.AND.G2.x,Adder.AND.G2.x,Adder.AND.G2.y,Adder.AND.G2.delayTime,Adder.AND.G2.y_auxiliary,Adder.AND.G2.y_old,Adder.AND.G2.lh,Adder.AND.G2.t_next) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 4 * 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.0006256/0.1394, allocations: 0.5259 MB / 340.9 MB, free: 6.402 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.693e-05/0.1395, allocations: 83.05 kB / 341 MB, free: 6.32 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001943/0.1397, allocations: 130.4 kB / 341.1 MB, free: 6.184 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.971e-06/0.1397, allocations: 7.984 kB / 341.1 MB, free: 6.176 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.1397, allocations: 0 / 341.1 MB, free: 6.176 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.1397, allocations: 0 / 341.1 MB, free: 6.176 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008056/0.1405, allocations: 0.6219 MB / 341.7 MB, free: 5.504 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.1406, allocations: 0 / 341.7 MB, free: 5.504 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.521e-05/0.1406, allocations: 11.98 kB / 341.7 MB, free: 5.492 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.5e-06/0.1406, allocations: 4 kB / 341.7 MB, free: 5.488 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.216e-05/0.1407, allocations: 24.11 kB / 341.8 MB, free: 5.465 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.456e-06/0.1407, allocations: 8 kB / 341.8 MB, free: 5.457 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.1407, allocations: 4 kB / 341.8 MB, free: 5.453 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001132/0.1418, allocations: 0.7062 MB / 342.5 MB, free: 4.703 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007003/0.1425, allocations: 0.492 MB / 343 MB, free: 4.191 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001158/0.1427, allocations: 23.94 kB / 343 MB, free: 4.168 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002145/0.1429, allocations: 31.89 kB / 343 MB, free: 4.137 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001551/0.1431, allocations: 55.92 kB / 343.1 MB, free: 4.082 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000123/0.1432, allocations: 119.9 kB / 343.2 MB, free: 3.965 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.001022/0.1442, allocations: 0.7289 MB / 343.9 MB, free: 3.238 MB / 286.1 MB Notification: Performance of sort global known variables: time 7.21e-07/0.1442, allocations: 0 / 343.9 MB, free: 3.238 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004003/0.1446, allocations: 95.84 kB / 344 MB, free: 3.145 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 22 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,a.y,b.y,Adder.AND.G1.auxiliary_n,Adder.AND.G2.x,Adder.AND.G2.y,Adder.AND.G2.delayTime,Adder.AND.G2.y_auxiliary,Adder.AND.G2.y_old,Adder.AND.G2.lh,Adder.AND.G2.t_next,Adder.XOR.G1.auxiliary_n,Adder.XOR.G2.x,Adder.XOR.G2.y,Adder.XOR.G2.delayTime,Adder.XOR.G2.y_auxiliary,Adder.XOR.G2.y_old,Adder.XOR.G2.lh,Adder.XOR.G2.t_next) * Number of discrete states: 22 (Adder.XOR.G1.auxiliary_n,Adder.AND.G1.auxiliary_n,Adder.XOR.G2.y,Adder.XOR.G2.y_auxiliary,Adder.XOR.G2.t_next,Adder.XOR.G2.delayTime,Adder.XOR.G2.lh,Adder.XOR.G2.y_old,$whenCondition2,$whenCondition1,Adder.XOR.G2.x,Adder.AND.G2.y,Adder.AND.G2.y_auxiliary,Adder.AND.G2.t_next,Adder.AND.G2.delayTime,Adder.AND.G2.lh,Adder.AND.G2.y_old,$whenCondition4,$whenCondition3,Adder.AND.G2.x,b.y,a.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 4 * 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 Backend phase and start with SimCode phase: time 0.0002026/0.1448, allocations: 138.5 kB / 344.2 MB, free: 3 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0009022/0.1458, allocations: 0.6537 MB / 344.8 MB, free: 2.297 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 6.342e-06/0.1458, allocations: 0 / 344.8 MB, free: 2.297 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005751/0.1464, allocations: 0.5327 MB / 345.3 MB, free: 1.715 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006858/0.147, allocations: 167.2 kB / 345.5 MB, free: 1.555 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002386/0.1494, allocations: 1.492 MB / 347 MB, free: 28 kB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007768/0.1502, allocations: 0.9795 MB / 348 MB, free: 15.02 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003791/0.1506, allocations: 165.2 kB / 348.1 MB, free: 14.86 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000163/0.1508, allocations: 75.28 kB / 348.2 MB, free: 14.79 MB / 302.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1508, allocations: 0 / 348.2 MB, free: 14.79 MB / 302.1 MB Notification: Performance of Templates: time 0.01228/0.1631, allocations: 6.676 MB / 354.9 MB, free: 8.086 MB / 302.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Digital.Examples.HalfAdder.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.2_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_3.2.2_Modelica.Electrical.Digital.Examples.HalfAdder -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) Environment - environmentSimulation: