Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001599/0.001599, allocations: 118.3 kB / 19.17 MB, free: 3.898 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001912/0.001912, allocations: 205.7 kB / 22.12 MB, free: 0.9609 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.392/1.392, allocations: 207.6 MB / 232.5 MB, free: 11.53 MB / 190.1 MB " [Timeout remaining time 178] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001788/0.001788, allocations: 61 kB / 343 MB, free: 12.29 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.279/0.2808, allocations: 49.12 MB / 392.1 MB, free: 8.68 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002742/0.2835, allocations: 2.132 MB / 394.2 MB, free: 7.223 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001997/0.2855, allocations: 1.063 MB / 395.3 MB, free: 6.496 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001195/0.2856, allocations: 6.062 kB / 395.3 MB, free: 6.492 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001751/0.2858, allocations: 36.64 kB / 395.3 MB, free: 6.469 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001181/0.2859, allocations: 55.17 kB / 395.4 MB, free: 6.43 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004086/0.2863, allocations: 126.1 kB / 395.5 MB, free: 6.352 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000466/0.2868, allocations: 389.8 kB / 395.9 MB, free: 6.156 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002013/0.287, allocations: 91.7 kB / 396 MB, free: 6.105 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001159/0.2882, allocations: 0.9656 MB / 397 MB, free: 5.992 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002561/0.2884, allocations: 200.9 kB / 397.2 MB, free: 5.914 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.175e-05/0.2885, allocations: 33.19 kB / 397.2 MB, free: 5.914 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.431e-05/0.2886, allocations: 35.03 kB / 397.2 MB, free: 5.914 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001715/0.2888, allocations: 170.2 kB / 397.4 MB, free: 5.84 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002047/0.289, allocations: 287.1 kB / 397.7 MB, free: 5.625 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001027/0.29, allocations: 0.98 MB / 398.6 MB, free: 5.293 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.29, allocations: 5.641 kB / 398.7 MB, free: 5.289 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.29, allocations: 0 / 398.7 MB, free: 5.289 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.217e-05/0.29, allocations: 0 / 398.7 MB, free: 5.289 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.001189/0.2912, allocations: 1.148 MB / 399.8 MB, free: 4.355 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/0.2912, allocations: 9.188 kB / 399.8 MB, free: 4.355 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.593e-05/0.2913, allocations: 5.094 kB / 399.8 MB, free: 4.355 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.8e-05/0.2913, allocations: 50.75 kB / 399.9 MB, free: 4.309 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001122/0.2914, allocations: 88.55 kB / 400 MB, free: 4.262 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003795/0.2918, allocations: 437.1 kB / 400.4 MB, free: 3.895 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.661e-05/0.2918, allocations: 19.19 kB / 400.4 MB, free: 3.887 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.586e-05/0.2919, allocations: 19.34 kB / 400.4 MB, free: 3.883 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006149/0.2925, allocations: 305.4 kB / 400.7 MB, free: 3.77 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.083e-05/0.2925, allocations: 1.219 kB / 400.7 MB, free: 3.77 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.368e-05/0.2926, allocations: 9.578 kB / 400.7 MB, free: 3.766 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.935e-06/0.2926, allocations: 3.25 kB / 400.7 MB, free: 3.766 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004238/0.293, allocations: 212.8 kB / 400.9 MB, free: 3.695 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001344/0.2943, allocations: 0.8858 MB / 401.8 MB, free: 3.148 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004624/0.2948, allocations: 170.7 kB / 402 MB, free: 3.078 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003033/0.2951, allocations: 122.2 kB / 402.1 MB, free: 3.027 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.476e-05/0.2951, allocations: 5.094 kB / 402.1 MB, free: 3.023 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007713/0.2959, allocations: 393.4 kB / 402.5 MB, free: 2.781 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 2.234e-06/0.2959, allocations: 1.125 kB / 402.5 MB, free: 2.781 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001505/0.2974, allocations: 0.7512 MB / 403.3 MB, free: 2.41 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.524e-05/0.2975, allocations: 175.8 kB / 403.4 MB, free: 2.215 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001595/0.2991, allocations: 0.9998 MB / 404.4 MB, free: 1.711 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.672e-05/0.2992, allocations: 36.92 kB / 404.5 MB, free: 1.676 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001258/0.2993, allocations: 156 kB / 404.6 MB, free: 1.543 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.944e-05/0.2994, allocations: 54.91 kB / 404.7 MB, free: 1.504 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002646/0.2996, allocations: 174.7 kB / 404.8 MB, free: 1.41 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.539e-05/0.2997, allocations: 340.1 kB / 405.2 MB, free: 1.082 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002891/0.3, allocations: 121.4 kB / 405.3 MB, free: 1.039 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003013/0.3003, allocations: 162.4 kB / 405.4 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000512/0.3008, allocations: 474.5 kB / 405.9 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.3008, allocations: 1.375 kB / 405.9 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009034/0.3017, allocations: 0.5845 MB / 406.5 MB, free: 264 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.589e-05/0.3018, allocations: 137.9 kB / 406.6 MB, free: 124 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.195e-06/0.3018, allocations: 1.375 kB / 406.6 MB, free: 124 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.888e-05/0.3018, allocations: 2.125 kB / 406.6 MB, free: 124 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.077e-05/0.3019, allocations: 13.34 kB / 406.6 MB, free: 124 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.845e-06/0.3019, allocations: 1.375 kB / 406.6 MB, free: 124 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002565/0.3022, allocations: 29.53 kB / 406.7 MB, free: 112 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001252/0.3023, allocations: 117.1 kB / 406.8 MB, free: 100 kB / 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.0007407/0.303, allocations: 0.5314 MB / 407.3 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001219/0.3032, allocations: 83.7 kB / 407.4 MB, free: 15.66 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002565/0.3034, allocations: 130.7 kB / 407.5 MB, free: 15.58 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.3034, allocations: 2 kB / 407.5 MB, free: 15.58 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.545e-06/0.3034, allocations: 0.7031 kB / 407.5 MB, free: 15.58 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.598e-06/0.3034, allocations: 0.75 kB / 407.5 MB, free: 15.58 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001001/0.3044, allocations: 0.6232 MB / 408.2 MB, free: 15.18 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.3044, allocations: 1.125 kB / 408.2 MB, free: 15.18 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.049e-05/0.3045, allocations: 14.81 kB / 408.2 MB, free: 15.18 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.037e-06/0.3045, allocations: 1.25 kB / 408.2 MB, free: 15.18 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.551e-05/0.3046, allocations: 23.72 kB / 408.2 MB, free: 15.18 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.555e-06/0.3046, allocations: 0 / 408.2 MB, free: 15.18 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.3046, allocations: 0 / 408.2 MB, free: 15.18 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001288/0.3059, allocations: 0.7183 MB / 408.9 MB, free: 14.77 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007653/0.3066, allocations: 0.5049 MB / 409.4 MB, free: 14.34 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001086/0.3067, allocations: 19.91 kB / 409.4 MB, free: 14.33 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001801/0.3069, allocations: 15.7 kB / 409.5 MB, free: 14.33 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001762/0.3071, allocations: 50.86 kB / 409.5 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001502/0.3072, allocations: 118.2 kB / 409.6 MB, free: 14.29 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001159/0.3084, allocations: 0.732 MB / 410.4 MB, free: 13.84 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3084, allocations: 0 / 410.4 MB, free: 13.84 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005249/0.3089, allocations: 94.02 kB / 410.4 MB, free: 13.83 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.001721/0.3106, allocations: 1.284 MB / 411.7 MB, free: 12.86 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009599/0.3116, allocations: 0.5441 MB / 412.3 MB, free: 12.44 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.3116, allocations: 0 / 412.3 MB, free: 12.44 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005164/0.3121, allocations: 395.1 kB / 412.7 MB, free: 12.11 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009082/0.313, allocations: 196.2 kB / 412.8 MB, free: 12 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007674/0.3207, allocations: 4.537 MB / 417.4 MB, free: 8.926 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008978/0.3216, allocations: 0.9644 MB / 418.3 MB, free: 8.07 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0005889/0.3222, allocations: 165.3 kB / 418.5 MB, free: 7.957 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002727/0.3225, allocations: 134.8 kB / 418.6 MB, free: 7.852 MB / 334.1 MB Notification: Performance of SimCode: time 1.022e-06/0.3225, allocations: 0 / 418.6 MB, free: 7.852 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03278/0.3552, allocations: 10.32 MB / 429 MB, free: 14.5 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.335/8.69, allocations: 15.8 kB / 429 MB, free: 14.49 MB / 350.1 MB " [Timeout remaining time 651] (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Digital_Examples_HalfAdder_fmu --startTime=0 --stopTime=5 --stepSize=0.000998004 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_HalfAdder.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.952196680998895] 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.817526050959714 8.843700237 8.548728514 Calling exit ...