Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001669/0.001669, allocations: 109.1 kB / 21.22 MB, free: 0.7344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002003/0.002003, allocations: 211 kB / 24.53 MB, free: 4.07 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.506/1.506, allocations: 230.5 MB / 258.2 MB, free: 8.027 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002706/0.002706, allocations: 67.89 kB / 378.6 MB, free: 3.004 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3272/0.3299, allocations: 53.42 MB / 432 MB, free: 6.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003598/0.3335, allocations: 2.131 MB / 434.1 MB, free: 4.527 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002577/0.3361, allocations: 1.06 MB / 435.2 MB, free: 3.461 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002286/0.3363, allocations: 4 kB / 435.2 MB, free: 3.457 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002249/0.3365, allocations: 35.66 kB / 435.2 MB, free: 3.422 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002339/0.3367, allocations: 63.5 kB / 435.3 MB, free: 3.359 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006229/0.3374, allocations: 131.8 kB / 435.4 MB, free: 3.23 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007684/0.3381, allocations: 391.1 kB / 435.8 MB, free: 2.848 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002597/0.3384, allocations: 75.47 kB / 435.9 MB, free: 2.77 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001215/0.3396, allocations: 0.9747 MB / 436.8 MB, free: 1.793 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003/0.3399, allocations: 195.2 kB / 437 MB, free: 1.602 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.296e-05/0.34, allocations: 36 kB / 437.1 MB, free: 1.566 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.261e-05/0.3401, allocations: 40 kB / 437.1 MB, free: 1.527 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001769/0.3402, allocations: 167.3 kB / 437.3 MB, free: 1.363 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000262/0.3405, allocations: 286.1 kB / 437.5 MB, free: 1.082 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009245/0.3414, allocations: 0.9852 MB / 438.5 MB, free: 100 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.299e-06/0.3414, allocations: 0 / 438.5 MB, free: 100 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3414, allocations: 0 / 438.5 MB, free: 100 kB / 334.1 MB Notification: Performance of Transformations before backend: time 1.09e-05/0.3415, allocations: 0 / 438.5 MB, free: 100 kB / 334.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.001276/0.3427, allocations: 1.063 MB / 439.6 MB, free: 14.97 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.953e-05/0.3428, allocations: 16.02 kB / 439.6 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.714e-05/0.3428, allocations: 4.188 kB / 439.6 MB, free: 14.95 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.778e-05/0.3429, allocations: 58.73 kB / 439.7 MB, free: 14.89 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001326/0.343, allocations: 88.42 kB / 439.7 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005103/0.3435, allocations: 370.9 kB / 440.1 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.851e-05/0.3436, allocations: 16.38 kB / 440.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.711e-05/0.3436, allocations: 20.38 kB / 440.1 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006343/0.3442, allocations: 305.1 kB / 440.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.3443, allocations: 0 / 440.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.338e-05/0.3443, allocations: 8 kB / 440.4 MB, free: 14.06 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.3443, allocations: 4 kB / 440.5 MB, free: 14.06 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004409/0.3447, allocations: 215.9 kB / 440.7 MB, free: 13.85 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001276/0.346, allocations: 0.8464 MB / 441.5 MB, free: 12.96 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004396/0.3465, allocations: 178.5 kB / 441.7 MB, free: 12.77 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002593/0.3467, allocations: 112.8 kB / 441.8 MB, free: 12.66 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.38e-05/0.3467, allocations: 7.984 kB / 441.8 MB, free: 12.65 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006131/0.3474, allocations: 393.1 kB / 442.2 MB, free: 12.23 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.623e-06/0.3474, allocations: 0 / 442.2 MB, free: 12.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001346/0.3487, allocations: 0.73 MB / 442.9 MB, free: 11.47 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001116/0.3488, allocations: 178.1 kB / 443.1 MB, free: 11.26 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001299/0.3501, allocations: 1.004 MB / 444.1 MB, free: 10.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.005e-05/0.3502, allocations: 33.7 kB / 444.1 MB, free: 10.21 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001293/0.3503, allocations: 161.9 kB / 444.3 MB, free: 10.04 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.848e-05/0.3504, allocations: 59.58 kB / 444.3 MB, free: 9.984 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002239/0.3506, allocations: 169.3 kB / 444.5 MB, free: 9.812 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001579/0.3508, allocations: 342.8 kB / 444.8 MB, free: 9.469 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002721/0.351, allocations: 120 kB / 445 MB, free: 9.352 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002918/0.3513, allocations: 164.9 kB / 445.1 MB, free: 9.176 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006032/0.3519, allocations: 477.7 kB / 445.6 MB, free: 8.645 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.419e-06/0.3519, allocations: 4 kB / 445.6 MB, free: 8.641 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009682/0.3529, allocations: 0.5743 MB / 446.2 MB, free: 8.035 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001119/0.353, allocations: 130.8 kB / 446.3 MB, free: 7.883 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.676e-06/0.353, allocations: 4 kB / 446.3 MB, free: 7.879 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.402e-05/0.353, allocations: 0 / 446.3 MB, free: 7.879 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.521e-05/0.3531, allocations: 23.98 kB / 446.3 MB, free: 7.855 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.611e-06/0.3531, allocations: 0 / 446.3 MB, free: 7.855 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002091/0.3533, allocations: 31.88 kB / 446.4 MB, free: 7.824 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001245/0.3535, allocations: 103.9 kB / 446.5 MB, free: 7.723 MB / 350.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.0006008/0.3541, allocations: 0.534 MB / 447 MB, free: 7.156 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001058/0.3542, allocations: 87.52 kB / 447.1 MB, free: 7.07 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001931/0.3544, allocations: 126.5 kB / 447.2 MB, free: 6.945 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.514e-06/0.3544, allocations: 0 / 447.2 MB, free: 6.945 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.3544, allocations: 0 / 447.2 MB, free: 6.945 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.3544, allocations: 0 / 447.2 MB, free: 6.945 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007239/0.3551, allocations: 0.6014 MB / 447.8 MB, free: 6.301 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.3551, allocations: 0 / 447.8 MB, free: 6.301 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.88e-05/0.3551, allocations: 15.98 kB / 447.8 MB, free: 6.285 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.3551, allocations: 0 / 447.8 MB, free: 6.285 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.441e-05/0.3552, allocations: 27.98 kB / 447.8 MB, free: 6.258 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.099e-06/0.3552, allocations: 4.125 kB / 447.8 MB, free: 6.254 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.3552, allocations: 4 kB / 447.8 MB, free: 6.25 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001702/0.3569, allocations: 0.7028 MB / 448.6 MB, free: 5.504 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001105/0.358, allocations: 0.5007 MB / 449.1 MB, free: 4.992 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001643/0.3582, allocations: 20 kB / 449.1 MB, free: 4.973 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002925/0.3585, allocations: 19.98 kB / 449.1 MB, free: 4.953 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002317/0.3587, allocations: 47.95 kB / 449.1 MB, free: 4.906 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001892/0.3589, allocations: 119.8 kB / 449.3 MB, free: 4.789 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001591/0.3605, allocations: 0.729 MB / 450 MB, free: 4.066 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3605, allocations: 0 / 450 MB, free: 4.066 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000629/0.3611, allocations: 87.94 kB / 450.1 MB, free: 3.98 MB / 350.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.002177/0.3633, allocations: 1.286 MB / 451.4 MB, free: 2.641 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001239/0.3645, allocations: 0.5404 MB / 451.9 MB, free: 2.051 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/0.3645, allocations: 0 / 451.9 MB, free: 2.051 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006815/0.3652, allocations: 405.6 kB / 452.3 MB, free: 1.605 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001065/0.3663, allocations: 209.1 kB / 452.5 MB, free: 1.418 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008999/0.3753, allocations: 4.536 MB / 457 MB, free: 12.75 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001098/0.3764, allocations: 0.9636 MB / 458 MB, free: 11.76 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005608/0.3769, allocations: 161.1 kB / 458.2 MB, free: 11.6 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003499/0.3773, allocations: 131.3 kB / 458.3 MB, free: 11.47 MB / 366.1 MB Notification: Performance of SimCode: time 1.012e-06/0.3773, allocations: 0 / 458.3 MB, free: 11.47 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03605/0.4133, allocations: 10.56 MB / 468.8 MB, free: 1.012 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.15/11.57, allocations: 11.5 kB / 468.9 MB, free: 1.004 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_HalfAdder_fmu --startTime=0 --stopTime=5 --stepSize=0.000998004 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_HalfAdder.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.0239524099743] Failed to read output from testmodel.py, exit status != 0: ['time', 'Adder.AND.G2.x', 'Adder.AND.G2.y', 'Adder.XOR.G2.x', 'Adder.XOR.G2.y'] 11.726918899978045 11.741343666 11.396706138 Calling exit ...