Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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.1_Modelica.Electrical.Digital.Examples.HalfAdder") translateModel(Modelica.Electrical.Digital.Examples.HalfAdder,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_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.01038/0.01038, allocations: 101.1 kB / 15.73 MB, free: 6.043 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.002131/0.002131, allocations: 190.6 kB / 16.67 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.171/2.171, allocations: 205.1 MB / 222.5 MB, free: 4.379 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.002182/0.002182, allocations: 51.2 kB / 326.5 MB, free: 14.45 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1624/0.1646, allocations: 46.63 MB / 373.2 MB, free: 1.301 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003617/0.1682, allocations: 2.103 MB / 375.3 MB, free: 15.18 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002393/0.1707, allocations: 1.045 MB / 376.3 MB, free: 14.13 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001052/0.1708, allocations: 4 kB / 376.3 MB, free: 14.12 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00019/0.171, allocations: 43.58 kB / 376.4 MB, free: 14.08 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001081/0.1711, allocations: 47.58 kB / 376.4 MB, free: 14.04 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004084/0.1715, allocations: 127.8 kB / 376.5 MB, free: 13.91 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004674/0.172, allocations: 415 kB / 376.9 MB, free: 13.5 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000225/0.1723, allocations: 111 kB / 377.1 MB, free: 13.39 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008551/0.1731, allocations: 0.9435 MB / 378 MB, free: 12.45 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002501/0.1734, allocations: 191.2 kB / 378.2 MB, free: 12.26 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.014e-05/0.1735, allocations: 36 kB / 378.2 MB, free: 12.23 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.667e-05/0.1736, allocations: 32 kB / 378.2 MB, free: 12.2 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000167/0.1737, allocations: 171.2 kB / 378.4 MB, free: 12.03 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002592/0.174, allocations: 294 kB / 378.7 MB, free: 11.74 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008515/0.1749, allocations: 0.9733 MB / 379.7 MB, free: 10.76 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.561e-06/0.1749, allocations: 0 / 379.7 MB, free: 10.76 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.1749, allocations: 0 / 379.7 MB, free: 10.76 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.462e-05/0.1749, allocations: 0 / 379.7 MB, free: 10.76 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: 42 * Number of variables: 42 Notification: Performance of Generate backend data structure: time 0.001386/0.1763, allocations: 1.115 MB / 380.8 MB, free: 9.57 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.968e-05/0.1764, allocations: 8.031 kB / 380.8 MB, free: 9.562 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001313/0.1765, allocations: 80 kB / 380.9 MB, free: 9.484 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005619/0.1771, allocations: 432 kB / 381.3 MB, free: 9.02 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.271e-05/0.1771, allocations: 16.38 kB / 381.3 MB, free: 9.004 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.28e-05/0.1772, allocations: 20.38 kB / 381.3 MB, free: 8.984 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006793/0.1779, allocations: 309.5 kB / 381.6 MB, free: 8.676 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.286e-05/0.1779, allocations: 4 kB / 381.6 MB, free: 8.672 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.742e-05/0.1779, allocations: 11.94 kB / 381.7 MB, free: 8.66 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.678e-06/0.178, allocations: 8 kB / 381.7 MB, free: 8.652 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004648/0.1784, allocations: 207.9 kB / 381.9 MB, free: 8.449 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001414/0.1799, allocations: 0.8862 MB / 382.8 MB, free: 7.512 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004732/0.1803, allocations: 218.5 kB / 383 MB, free: 7.289 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002845/0.1806, allocations: 160.8 kB / 383.1 MB, free: 7.129 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.452e-05/0.1807, allocations: 7.922 kB / 383.1 MB, free: 7.121 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000627/0.1813, allocations: 378 kB / 383.5 MB, free: 6.715 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 2.074e-06/0.1813, allocations: 0 / 383.5 MB, free: 6.715 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001424/0.1828, allocations: 0.7413 MB / 384.2 MB, free: 5.941 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001036/0.1829, allocations: 178.2 kB / 384.4 MB, free: 5.73 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001371/0.1842, allocations: 1 MB / 385.4 MB, free: 4.723 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.704e-05/0.1843, allocations: 41.64 kB / 385.5 MB, free: 4.676 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001416/0.1845, allocations: 153.8 kB / 385.6 MB, free: 4.52 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.069e-05/0.1846, allocations: 51.36 kB / 385.7 MB, free: 4.469 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002571/0.1848, allocations: 165.1 kB / 385.8 MB, free: 4.301 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001669/0.185, allocations: 342.7 kB / 386.1 MB, free: 3.957 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002811/0.1853, allocations: 120 kB / 386.3 MB, free: 3.84 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002979/0.1856, allocations: 160.2 kB / 386.4 MB, free: 3.668 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006156/0.1862, allocations: 481.6 kB / 386.9 MB, free: 3.133 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.1862, allocations: 4 kB / 386.9 MB, free: 3.129 MB / 318.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001028/0.1873, allocations: 0.5819 MB / 387.5 MB, free: 2.516 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001418/0.1874, allocations: 134.8 kB / 387.6 MB, free: 2.359 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.748e-06/0.1874, allocations: 4 kB / 387.6 MB, free: 2.355 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.153e-05/0.1875, allocations: 96 / 387.6 MB, free: 2.355 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001037/0.1876, allocations: 19.88 kB / 387.6 MB, free: 2.336 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.093e-06/0.1876, allocations: 0 / 387.6 MB, free: 2.336 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002415/0.1878, allocations: 23.98 kB / 387.7 MB, free: 2.312 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001325/0.188, allocations: 111.9 kB / 387.8 MB, free: 2.203 MB / 318.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,Adder.XOR.G1.auxiliary_n,Adder.AND.G1.auxiliary_n,b.y,a.y,Adder.XOR.G2.t_next,Adder.XOR.G2.lh,Adder.XOR.G2.y_old,Adder.XOR.G2.y_auxiliary,Adder.XOR.G2.delayTime,Adder.XOR.G2.y,Adder.XOR.G2.x,$PRE.Adder.XOR.G2.x,$PRE.Adder.XOR.G1.auxiliary_n,$whenCondition2,$whenCondition1,Adder.AND.G2.t_next,Adder.AND.G2.lh,Adder.AND.G2.y_old,Adder.AND.G2.y_auxiliary,Adder.AND.G2.delayTime,Adder.AND.G2.y,Adder.AND.G2.x,$PRE.Adder.AND.G2.x,$PRE.Adder.AND.G1.auxiliary_n,$whenCondition4,$whenCondition3) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007389/0.1887, allocations: 0.5492 MB / 388.3 MB, free: 1.617 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001186/0.1889, allocations: 75.06 kB / 388.4 MB, free: 1.543 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000218/0.1891, allocations: 134.4 kB / 388.5 MB, free: 1.41 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.1891, allocations: 0 / 388.5 MB, free: 1.41 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.875e-06/0.1891, allocations: 0 / 388.5 MB, free: 1.41 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.1891, allocations: 0 / 388.5 MB, free: 1.41 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007747/0.1899, allocations: 0.6257 MB / 389.1 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.1899, allocations: 4 kB / 389.2 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.007e-05/0.19, allocations: 12 kB / 389.2 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.19, allocations: 0 / 389.2 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.131e-05/0.19, allocations: 27.98 kB / 389.2 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.19, allocations: 0 / 389.2 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/0.19, allocations: 0 / 389.2 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001147/0.1912, allocations: 0.7095 MB / 389.9 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007037/0.1919, allocations: 0.4919 MB / 390.4 MB, free: 15.42 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001039/0.192, allocations: 24 kB / 390.4 MB, free: 15.4 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001779/0.1922, allocations: 16.11 kB / 390.4 MB, free: 15.38 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001841/0.1924, allocations: 51.95 kB / 390.5 MB, free: 15.33 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000131/0.1925, allocations: 119.9 kB / 390.6 MB, free: 15.21 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001012/0.1936, allocations: 0.7289 MB / 391.3 MB, free: 14.49 MB / 334.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.1936, allocations: 0 / 391.3 MB, free: 14.49 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004186/0.194, allocations: 91.84 kB / 391.4 MB, free: 14.4 MB / 334.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 (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.0002099/0.1942, allocations: 130.8 kB / 391.5 MB, free: 14.26 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001097/0.1953, allocations: 0.6692 MB / 392.2 MB, free: 13.54 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.1953, allocations: 0 / 392.2 MB, free: 13.54 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006228/0.196, allocations: 0.5249 MB / 392.7 MB, free: 12.97 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009226/0.1969, allocations: 199.7 kB / 392.9 MB, free: 12.77 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002472/0.1994, allocations: 1.325 MB / 394.3 MB, free: 11.42 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007891/0.2002, allocations: 0.9638 MB / 395.2 MB, free: 10.43 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0004438/0.2006, allocations: 165.1 kB / 395.4 MB, free: 10.27 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000192/0.2008, allocations: 79.28 kB / 395.5 MB, free: 10.19 MB / 334.1 MB Notification: Performance of SimCode: time 1.232e-06/0.2008, allocations: 0 / 395.5 MB, free: 10.19 MB / 334.1 MB Notification: Performance of Templates: time 0.01418/0.215, allocations: 7.726 MB / 403.2 MB, free: 2.418 MB / 334.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Digital.Examples.HalfAdder.makefile (rm -f Modelica_3.1_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_3.1_Modelica.Electrical.Digital.Examples.HalfAdder -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1)