Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Digital.Examples.HalfAdder.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.HalfAdder,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Adder.AND.G2.x|Adder.AND.G2.y|Adder.XOR.G2.x|Adder.XOR.G2.y",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Digital.Examples.HalfAdder") Notification: Performance of loadModel(Modelica): time 2.384/2.384, allocations: 194.8 MB / 211.7 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003613/0.0003615, allocations: 16 kB / 264.5 MB, free: 12.94 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1216/0.122, allocations: 44.49 MB / 309 MB, free: 388 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4806/0.6026, allocations: 79.08 MB / 388.1 MB, free: 15.39 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002628/0.603, allocations: 77.55 kB / 388.2 MB, free: 15.39 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1006/0.7036, allocations: 34.37 MB / 422.6 MB, free: 7.121 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.7037, allocations: 0 / 422.6 MB, free: 7.121 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.906e-05/0.7037, allocations: 14.88 kB / 422.6 MB, free: 7.121 MB / 314.7 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.00137/0.7051, allocations: 0.9869 MB / 423.6 MB, free: 6.258 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.175e-05/0.7051, allocations: 11.41 kB / 423.6 MB, free: 6.258 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001708/0.7053, allocations: 82.16 kB / 423.7 MB, free: 6.215 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006648/0.706, allocations: 410.8 kB / 424.1 MB, free: 5.914 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.504e-05/0.7061, allocations: 14.78 kB / 424.1 MB, free: 5.914 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.308e-05/0.7062, allocations: 26.64 kB / 424.1 MB, free: 5.91 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008714/0.707, allocations: 293.8 kB / 424.4 MB, free: 5.809 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.405e-05/0.7071, allocations: 3.984 kB / 424.4 MB, free: 5.805 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.542e-05/0.7072, allocations: 9.375 kB / 424.4 MB, free: 5.805 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.644e-06/0.7072, allocations: 3 kB / 424.4 MB, free: 5.805 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007028/0.7079, allocations: 207.8 kB / 424.6 MB, free: 5.777 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002135/0.71, allocations: 0.8773 MB / 425.5 MB, free: 5.277 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007312/0.7108, allocations: 220.1 kB / 425.7 MB, free: 5.23 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.721e-05/0.7109, allocations: 0 / 425.7 MB, free: 5.23 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007162/0.7116, allocations: 386.9 kB / 426.1 MB, free: 4.98 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 2.685e-06/0.7116, allocations: 0 / 426.1 MB, free: 4.98 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.002122/0.7138, allocations: 0.9077 MB / 427 MB, free: 4.527 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.141e-05/0.7139, allocations: 176.2 kB / 427.2 MB, free: 4.332 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001856/0.7158, allocations: 1.003 MB / 428.2 MB, free: 3.887 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001691/0.716, allocations: 38.98 kB / 428.2 MB, free: 3.855 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000129/0.7161, allocations: 151 kB / 428.3 MB, free: 3.75 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001132/0.7162, allocations: 51.92 kB / 428.4 MB, free: 3.719 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.955e-05/0.7163, allocations: 7.031 kB / 428.4 MB, free: 3.719 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.31e-05/0.7164, allocations: 336.3 kB / 428.7 MB, free: 3.398 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004492/0.7168, allocations: 121.8 kB / 428.9 MB, free: 3.383 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004334/0.7173, allocations: 160.6 kB / 429 MB, free: 3.324 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004319/0.7177, allocations: 225.9 kB / 429.2 MB, free: 3.188 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/0.7178, allocations: 0 / 429.2 MB, free: 3.188 MB / 314.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.00144/0.7192, allocations: 0.5836 MB / 429.8 MB, free: 2.961 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.853e-05/0.7193, allocations: 137 kB / 429.9 MB, free: 2.828 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.816e-06/0.7194, allocations: 64 / 429.9 MB, free: 2.828 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.081e-05/0.7194, allocations: 11.86 kB / 430 MB, free: 2.82 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000115/0.7195, allocations: 11.75 kB / 430 MB, free: 2.82 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.054e-05/0.7195, allocations: 7.984 kB / 430 MB, free: 2.812 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004899/0.72, allocations: 42.59 kB / 430 MB, free: 2.797 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001456/0.7202, allocations: 112.9 kB / 430.1 MB, free: 2.785 MB / 314.7 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.0009297/0.7211, allocations: 0.5372 MB / 430.7 MB, free: 2.445 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001591/0.7213, allocations: 77.94 kB / 430.7 MB, free: 2.406 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003401/0.7217, allocations: 126.2 kB / 430.9 MB, free: 2.336 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/0.7217, allocations: 3.984 kB / 430.9 MB, free: 2.332 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.7217, allocations: 0 / 430.9 MB, free: 2.332 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/0.7217, allocations: 3.953 kB / 430.9 MB, free: 2.328 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009335/0.7226, allocations: 0.6224 MB / 431.5 MB, free: 1.949 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.7227, allocations: 0 / 431.5 MB, free: 1.949 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.254e-05/0.7228, allocations: 11.73 kB / 431.5 MB, free: 1.945 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.033e-06/0.7228, allocations: 4 kB / 431.5 MB, free: 1.941 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.145e-05/0.7229, allocations: 26.17 kB / 431.5 MB, free: 1.938 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.15e-06/0.7229, allocations: 0 / 431.5 MB, free: 1.938 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.7229, allocations: 3.938 kB / 431.5 MB, free: 1.934 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001641/0.7246, allocations: 0.7048 MB / 432.2 MB, free: 1.648 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001103/0.7257, allocations: 0.4973 MB / 432.7 MB, free: 1.379 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002011/0.7259, allocations: 23.62 kB / 432.8 MB, free: 1.375 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000419/0.7264, allocations: 31.34 kB / 432.8 MB, free: 1.363 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002336/0.7266, allocations: 54.06 kB / 432.9 MB, free: 1.348 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001488/0.7268, allocations: 117 kB / 433 MB, free: 1.336 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001537/0.7283, allocations: 0.7322 MB / 433.7 MB, free: 1.023 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.02e-07/0.7284, allocations: 0 / 433.7 MB, free: 1.023 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006593/0.729, allocations: 85.41 kB / 433.8 MB, free: 1.023 MB / 314.7 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.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.XOR.G1.auxiliary_n,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,Adder.AND.G1.auxiliary_n,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.0002247/0.7293, allocations: 137 kB / 433.9 MB, free: 0.9258 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0013/0.7306, allocations: 0.6544 MB / 434.6 MB, free: 0.6289 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.838e-06/0.7306, allocations: 0 / 434.6 MB, free: 0.6289 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007459/0.7314, allocations: 0.5247 MB / 435.1 MB, free: 364 kB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001215/0.7326, allocations: 170.3 kB / 435.3 MB, free: 312 kB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003747/0.7364, allocations: 1.498 MB / 436.8 MB, free: 15.2 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001003/0.7375, allocations: 0.9806 MB / 437.7 MB, free: 14.22 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005952/0.7381, allocations: 165.2 kB / 437.9 MB, free: 14.06 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002672/0.7384, allocations: 67.3 kB / 438 MB, free: 13.99 MB / 330.7 MB Notification: Performance of SimCode: time 1.153e-06/0.7384, allocations: 0 / 438 MB, free: 13.99 MB / 330.7 MB Notification: Performance of Templates: time 0.01848/0.7569, allocations: 6.698 MB / 444.7 MB, free: 7.305 MB / 330.7 MB