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.001855/0.001855, allocations: 109.1 kB / 21.22 MB, free: 0.6484 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.002042/0.002042, allocations: 208.7 kB / 24.51 MB, free: 3.941 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.45/1.45, allocations: 230.5 MB / 258.2 MB, free: 7.793 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.001811/0.001811, allocations: 55.91 kB / 378.5 MB, free: 2.824 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2701/0.2719, allocations: 53.42 MB / 431.9 MB, free: 6.422 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003394/0.2753, allocations: 2.002 MB / 433.9 MB, free: 4.414 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002538/0.2778, allocations: 1.006 MB / 434.9 MB, free: 3.402 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001394/0.2779, allocations: 0 / 434.9 MB, free: 3.402 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002176/0.2782, allocations: 39.59 kB / 435 MB, free: 3.363 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001315/0.2783, allocations: 51.58 kB / 435 MB, free: 3.312 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004716/0.2788, allocations: 139.8 kB / 435.1 MB, free: 3.176 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005083/0.2793, allocations: 395.1 kB / 435.5 MB, free: 2.789 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002174/0.2795, allocations: 73.66 kB / 435.6 MB, free: 2.715 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001121/0.2806, allocations: 0.9708 MB / 436.6 MB, free: 1.742 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002923/0.2809, allocations: 207.2 kB / 436.8 MB, free: 1.539 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001017/0.281, allocations: 32 kB / 436.8 MB, free: 1.508 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.475e-05/0.2811, allocations: 36 kB / 436.8 MB, free: 1.473 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002041/0.2813, allocations: 167.3 kB / 437 MB, free: 1.309 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002498/0.2816, allocations: 198.5 kB / 437.2 MB, free: 1.113 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001003/0.2826, allocations: 0.9922 MB / 438.2 MB, free: 120 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.2826, allocations: 8 kB / 438.2 MB, free: 112 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2826, allocations: 0 / 438.2 MB, free: 112 kB / 334.1 MB Notification: Performance of Transformations before backend: time 8.626e-06/0.2826, allocations: 0 / 438.2 MB, free: 112 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.001347/0.2839, allocations: 1.066 MB / 439.3 MB, free: 14.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.937e-05/0.284, allocations: 12.03 kB / 439.3 MB, free: 14.97 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.099e-05/0.284, allocations: 4.188 kB / 439.3 MB, free: 14.97 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.36e-05/0.2841, allocations: 54.73 kB / 439.3 MB, free: 14.91 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001405/0.2842, allocations: 84.42 kB / 439.4 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005564/0.2848, allocations: 375 kB / 439.8 MB, free: 14.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.951e-05/0.2848, allocations: 12.38 kB / 439.8 MB, free: 14.42 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.349e-05/0.2849, allocations: 24.38 kB / 439.8 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007813/0.2857, allocations: 439.9 kB / 440.2 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.648e-06/0.2857, allocations: 0 / 440.2 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.304e-05/0.2857, allocations: 8 kB / 440.3 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.424e-05/0.2857, allocations: 4 kB / 440.3 MB, free: 13.92 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005386/0.2863, allocations: 338.7 kB / 440.6 MB, free: 13.57 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001354/0.2876, allocations: 0.7841 MB / 441.4 MB, free: 12.74 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006212/0.2882, allocations: 301.3 kB / 441.7 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003621/0.2886, allocations: 247.6 kB / 441.9 MB, free: 12.14 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.255e-05/0.2886, allocations: 4 kB / 441.9 MB, free: 12.14 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008304/0.2895, allocations: 0.5195 MB / 442.4 MB, free: 11.56 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.723e-06/0.2895, allocations: 0 / 442.4 MB, free: 11.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001636/0.2911, allocations: 0.9971 MB / 443.4 MB, free: 10.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001366/0.2912, allocations: 186.1 kB / 443.6 MB, free: 10.26 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001512/0.2927, allocations: 1 MB / 444.6 MB, free: 9.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.541e-05/0.2928, allocations: 37.7 kB / 444.6 MB, free: 9.207 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000139/0.2929, allocations: 153.9 kB / 444.8 MB, free: 9.051 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.622e-05/0.293, allocations: 55.59 kB / 444.9 MB, free: 8.996 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002452/0.2933, allocations: 169.3 kB / 445 MB, free: 8.824 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001681/0.2934, allocations: 342.8 kB / 445.4 MB, free: 8.48 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003728/0.2938, allocations: 254.7 kB / 445.6 MB, free: 8.207 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004102/0.2942, allocations: 295.7 kB / 445.9 MB, free: 7.879 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006506/0.2949, allocations: 493.7 kB / 446.4 MB, free: 7.332 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.2949, allocations: 0 / 446.4 MB, free: 7.332 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001263/0.2961, allocations: 0.7177 MB / 447.1 MB, free: 6.559 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001257/0.2963, allocations: 142.7 kB / 447.2 MB, free: 6.395 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/0.2963, allocations: 96 / 447.2 MB, free: 6.395 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.118e-05/0.2963, allocations: 12 kB / 447.2 MB, free: 6.383 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.207e-05/0.2964, allocations: 15.98 kB / 447.3 MB, free: 6.367 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.01e-05/0.2964, allocations: 4 kB / 447.3 MB, free: 6.363 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002416/0.2966, allocations: 23.88 kB / 447.3 MB, free: 6.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001501/0.2968, allocations: 111.9 kB / 447.4 MB, free: 6.23 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.0007013/0.2975, allocations: 0.5418 MB / 447.9 MB, free: 5.656 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001226/0.2976, allocations: 79.53 kB / 448 MB, free: 5.578 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002222/0.2978, allocations: 126.5 kB / 448.1 MB, free: 5.453 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.2978, allocations: 0 / 448.1 MB, free: 5.453 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.037e-05/0.2978, allocations: 4 kB / 448.1 MB, free: 5.449 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.255e-06/0.2979, allocations: 3.984 kB / 448.1 MB, free: 5.445 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007461/0.2986, allocations: 0.5313 MB / 448.7 MB, free: 4.871 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.2986, allocations: 0 / 448.7 MB, free: 4.871 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.116e-05/0.2986, allocations: 11.94 kB / 448.7 MB, free: 4.859 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.2987, allocations: 0 / 448.7 MB, free: 4.859 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.623e-05/0.2987, allocations: 27.98 kB / 448.7 MB, free: 4.832 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.2987, allocations: 4 kB / 448.7 MB, free: 4.828 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.2987, allocations: 0 / 448.7 MB, free: 4.828 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001294/0.3, allocations: 0.85 MB / 449.6 MB, free: 3.91 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009043/0.3009, allocations: 0.4929 MB / 450.1 MB, free: 3.406 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001176/0.301, allocations: 20 kB / 450.1 MB, free: 3.387 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000181/0.3012, allocations: 15.98 kB / 450.1 MB, free: 3.371 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001973/0.3014, allocations: 51.95 kB / 450.1 MB, free: 3.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001475/0.3016, allocations: 115.9 kB / 450.3 MB, free: 3.207 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001143/0.3027, allocations: 0.7289 MB / 451 MB, free: 2.484 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3027, allocations: 0 / 451 MB, free: 2.484 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003732/0.3031, allocations: 91.94 kB / 451.1 MB, free: 2.395 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.001706/0.3048, allocations: 1.417 MB / 452.5 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001152/0.3059, allocations: 0.8156 MB / 453.3 MB, free: 15.98 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.3059, allocations: 128 / 453.3 MB, free: 15.98 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006304/0.3066, allocations: 0.5276 MB / 453.8 MB, free: 15.38 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008453/0.3074, allocations: 198.2 kB / 454 MB, free: 15.2 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007468/0.3149, allocations: 5.233 MB / 459.3 MB, free: 9.711 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005214/0.3154, allocations: 369.3 kB / 459.6 MB, free: 9.328 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004362/0.3158, allocations: 165.1 kB / 459.8 MB, free: 9.164 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002585/0.3161, allocations: 131.3 kB / 459.9 MB, free: 9.035 MB / 366.1 MB Notification: Performance of SimCode: time 1.352e-06/0.3161, allocations: 0 / 459.9 MB, free: 9.035 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03417/0.3503, allocations: 11.14 MB / 471.1 MB, free: 14.04 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.21/11.56, allocations: 0 / 471.1 MB, free: 14.04 MB / 382.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.029075892991386] 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.717669919016771 11.733013517 11.4473834 Calling exit ...