Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.00123/0.00123, allocations: 117.8 kB / 18.5 MB, free: 4.602 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.001364/0.001364, allocations: 208.9 kB / 21.46 MB, free: 1.648 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.409/1.409, allocations: 230.5 MB / 254.7 MB, free: 15.01 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4_1_0-beta_om_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001935/0.001935, allocations: 67.89 kB / 373.6 MB, free: 10.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09236/0.09429, allocations: 53.31 MB / 426.9 MB, free: 4.863 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003368/0.09766, allocations: 2.144 MB / 429 MB, free: 2.707 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002254/0.09991, allocations: 1.052 MB / 430.1 MB, free: 1.648 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.099e-05/0.1, allocations: 7.938 kB / 430.1 MB, free: 1.641 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001653/0.1002, allocations: 39.64 kB / 430.1 MB, free: 1.602 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001147/0.1003, allocations: 55.52 kB / 430.2 MB, free: 1.547 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003732/0.1007, allocations: 123.8 kB / 430.3 MB, free: 1.426 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004584/0.1011, allocations: 391.1 kB / 430.7 MB, free: 1.043 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001842/0.1013, allocations: 79.11 kB / 430.8 MB, free: 0.957 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1825/0.2838, allocations: 0.9637 MB / 431.7 MB, free: 8.207 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004549/0.2843, allocations: 196.2 kB / 431.9 MB, free: 8.207 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001298/0.2844, allocations: 36.81 kB / 431.9 MB, free: 8.207 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.437e-05/0.2845, allocations: 35.31 kB / 432 MB, free: 8.207 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002029/0.2847, allocations: 164.2 kB / 432.1 MB, free: 8.176 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002755/0.285, allocations: 293.3 kB / 432.4 MB, free: 8.062 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009602/0.2859, allocations: 0.9719 MB / 433.4 MB, free: 7.941 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.2859, allocations: 1 kB / 433.4 MB, free: 7.941 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.2859, allocations: 0 / 433.4 MB, free: 7.941 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.363e-05/0.2859, allocations: 0.9062 kB / 433.4 MB, free: 7.941 MB / 350.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.00103/0.287, allocations: 1.148 MB / 434.5 MB, free: 7.113 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.457e-05/0.287, allocations: 11.66 kB / 434.6 MB, free: 7.113 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.481e-05/0.2871, allocations: 54.02 kB / 434.6 MB, free: 7.074 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.27e-05/0.2872, allocations: 81.92 kB / 434.7 MB, free: 7.031 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004127/0.2876, allocations: 436 kB / 435.1 MB, free: 6.719 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.069e-05/0.2876, allocations: 17.94 kB / 435.1 MB, free: 6.719 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.985e-05/0.2877, allocations: 19.62 kB / 435.2 MB, free: 6.719 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006038/0.2883, allocations: 304.5 kB / 435.5 MB, free: 6.68 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.281e-05/0.2883, allocations: 1.125 kB / 435.5 MB, free: 6.68 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.199e-05/0.2883, allocations: 15.09 kB / 435.5 MB, free: 6.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.061e-06/0.2883, allocations: 2.281 kB / 435.5 MB, free: 6.68 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004382/0.2888, allocations: 205.5 kB / 435.7 MB, free: 6.68 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001412/0.2902, allocations: 0.8929 MB / 436.6 MB, free: 6.336 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003902/0.2906, allocations: 181 kB / 436.7 MB, free: 6.312 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002401/0.2908, allocations: 113.9 kB / 436.9 MB, free: 6.305 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.588e-05/0.2908, allocations: 1.625 kB / 436.9 MB, free: 6.305 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005615/0.2914, allocations: 387.9 kB / 437.2 MB, free: 6.129 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.563e-06/0.2914, allocations: 3.188 kB / 437.2 MB, free: 6.129 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001276/0.2927, allocations: 0.7467 MB / 438 MB, free: 5.926 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.081e-05/0.2927, allocations: 172.9 kB / 438.2 MB, free: 5.738 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001213/0.294, allocations: 1.006 MB / 439.2 MB, free: 5.43 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.491e-05/0.294, allocations: 35.09 kB / 439.2 MB, free: 5.398 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.501e-05/0.2941, allocations: 161.9 kB / 439.3 MB, free: 5.301 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.467e-05/0.2942, allocations: 56.23 kB / 439.4 MB, free: 5.27 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001975/0.2944, allocations: 170.4 kB / 439.6 MB, free: 5.207 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.556e-05/0.2944, allocations: 341.7 kB / 439.9 MB, free: 4.879 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002365/0.2946, allocations: 121.5 kB / 440 MB, free: 4.836 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002537/0.2949, allocations: 165.6 kB / 440.2 MB, free: 4.746 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004661/0.2954, allocations: 475.2 kB / 440.6 MB, free: 4.367 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.2954, allocations: 1.312 kB / 440.6 MB, free: 4.367 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008416/0.2962, allocations: 0.58 MB / 441.2 MB, free: 4.074 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.802e-05/0.2963, allocations: 132.8 kB / 441.4 MB, free: 3.941 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.684e-06/0.2963, allocations: 1.688 kB / 441.4 MB, free: 3.941 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.901e-05/0.2963, allocations: 2.078 kB / 441.4 MB, free: 3.941 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.777e-05/0.2964, allocations: 14.16 kB / 441.4 MB, free: 3.941 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.863e-06/0.2964, allocations: 8.031 kB / 441.4 MB, free: 3.941 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002379/0.2966, allocations: 24.56 kB / 441.4 MB, free: 3.934 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001268/0.2968, allocations: 116.3 kB / 441.5 MB, free: 3.926 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.0005626/0.2973, allocations: 0.5388 MB / 442.1 MB, free: 3.535 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.802e-05/0.2974, allocations: 79.97 kB / 442.1 MB, free: 3.496 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001867/0.2976, allocations: 125.5 kB / 442.3 MB, free: 3.41 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.2976, allocations: 2.047 kB / 442.3 MB, free: 3.41 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.2976, allocations: 1.062 kB / 442.3 MB, free: 3.41 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.586e-06/0.2976, allocations: 3.078 kB / 442.3 MB, free: 3.41 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007412/0.2984, allocations: 0.6317 MB / 442.9 MB, free: 3.004 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.235e-06/0.2984, allocations: 0.5312 kB / 442.9 MB, free: 3.004 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.102e-05/0.2984, allocations: 13.2 kB / 442.9 MB, free: 3.004 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.568e-06/0.2984, allocations: 5.016 kB / 442.9 MB, free: 3.004 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.567e-05/0.2985, allocations: 28.27 kB / 442.9 MB, free: 3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.377e-06/0.2985, allocations: 2.406 kB / 442.9 MB, free: 3 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.2985, allocations: 1.219 kB / 442.9 MB, free: 3 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009717/0.2995, allocations: 0.7099 MB / 443.7 MB, free: 2.621 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006498/0.3001, allocations: 0.4978 MB / 444.2 MB, free: 2.281 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001024/0.3002, allocations: 21.17 kB / 444.2 MB, free: 2.273 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001665/0.3004, allocations: 17.97 kB / 444.2 MB, free: 2.27 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001477/0.3005, allocations: 48.09 kB / 444.2 MB, free: 2.258 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001166/0.3007, allocations: 113.3 kB / 444.4 MB, free: 2.25 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000852/0.3015, allocations: 0.7298 MB / 445.1 MB, free: 1.891 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3015, allocations: 4 kB / 445.1 MB, free: 1.887 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003616/0.3019, allocations: 89.69 kB / 445.2 MB, free: 1.879 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.001158/0.303, allocations: 1.289 MB / 446.5 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007423/0.3038, allocations: 0.5426 MB / 447 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3038, allocations: 1.094 kB / 447 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000368/0.3041, allocations: 398.4 kB / 447.4 MB, free: 292 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007728/0.3049, allocations: 197.4 kB / 447.6 MB, free: 244 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00632/0.3112, allocations: 4.536 MB / 452.1 MB, free: 13.49 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007052/0.3119, allocations: 0.9586 MB / 453.1 MB, free: 12.72 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003705/0.3123, allocations: 163.9 kB / 453.2 MB, free: 12.62 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002313/0.3125, allocations: 138.8 kB / 453.4 MB, free: 12.52 MB / 366.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3125, allocations: 0 / 453.4 MB, free: 12.52 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03409/0.3466, allocations: 10.29 MB / 463.7 MB, free: 8.902 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.918/8.265, allocations: 14.67 kB / 463.7 MB, free: 8.891 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.HalfAdder.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Digital_Examples_HalfAdder_fmu --startTime=0 --stopTime=5 --stepSize=0.000998004 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Electrical_Digital_Examples_HalfAdder.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.475591721013188] 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'] 8.336658371146768 8.358106922 8.067826565 Calling exit ...