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.005033/0.005033, allocations: 100.8 kB / 21.96 MB, free: 5.203 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.00133/0.00133, allocations: 218 kB / 25.26 MB, free: 3.137 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.352/1.352, allocations: 207.7 MB / 236.1 MB, free: 9.816 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.001866/0.001866, allocations: 54.58 kB / 348 MB, free: 9.91 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2674/0.2693, allocations: 49.16 MB / 397.1 MB, free: 8.891 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.00404/0.2733, allocations: 1.996 MB / 399.1 MB, free: 7.547 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003103/0.2764, allocations: 1.017 MB / 400.1 MB, free: 6.871 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001427/0.2766, allocations: 2.219 kB / 400.1 MB, free: 6.871 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002065/0.2768, allocations: 41.7 kB / 400.2 MB, free: 6.844 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001568/0.2769, allocations: 54.66 kB / 400.2 MB, free: 6.805 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004968/0.2774, allocations: 134.2 kB / 400.4 MB, free: 6.723 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005277/0.2779, allocations: 397.5 kB / 400.8 MB, free: 6.52 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002279/0.2782, allocations: 80.19 kB / 400.8 MB, free: 6.473 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002065/0.2802, allocations: 0.9698 MB / 401.8 MB, free: 6.352 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000408/0.2806, allocations: 207 kB / 402 MB, free: 6.262 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000136/0.2808, allocations: 34.47 kB / 402 MB, free: 6.262 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001276/0.2809, allocations: 34.78 kB / 402.1 MB, free: 6.262 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002784/0.2812, allocations: 170.5 kB / 402.2 MB, free: 6.191 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002985/0.2815, allocations: 194.7 kB / 402.4 MB, free: 6.062 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001523/0.283, allocations: 0.9855 MB / 403.4 MB, free: 5.727 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.662e-06/0.283, allocations: 1.469 kB / 403.4 MB, free: 5.727 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.424e-06/0.283, allocations: 7.938 kB / 403.4 MB, free: 5.719 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.603e-05/0.283, allocations: 0 / 403.4 MB, free: 5.719 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.001611/0.2846, allocations: 1.063 MB / 404.5 MB, free: 4.887 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.604e-05/0.2847, allocations: 13.98 kB / 404.5 MB, free: 4.883 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.157e-05/0.2847, allocations: 12.56 kB / 404.5 MB, free: 4.875 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.018e-05/0.2848, allocations: 52.03 kB / 404.6 MB, free: 4.828 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001772/0.285, allocations: 84.61 kB / 404.6 MB, free: 4.785 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004708/0.2854, allocations: 377.8 kB / 405 MB, free: 4.484 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.979e-05/0.2855, allocations: 19.42 kB / 405 MB, free: 4.477 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.248e-05/0.2855, allocations: 20.38 kB / 405.1 MB, free: 4.473 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007285/0.2863, allocations: 425.7 kB / 405.5 MB, free: 4.227 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.217e-05/0.2863, allocations: 4 kB / 405.5 MB, free: 4.223 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.844e-05/0.2863, allocations: 14.03 kB / 405.5 MB, free: 4.215 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.051e-05/0.2863, allocations: 8.062 kB / 405.5 MB, free: 4.211 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005025/0.2868, allocations: 333.7 kB / 405.8 MB, free: 4.008 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001429/0.2883, allocations: 0.7882 MB / 406.6 MB, free: 3.516 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005032/0.2888, allocations: 303.7 kB / 406.9 MB, free: 3.301 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003093/0.2891, allocations: 243.8 kB / 407.1 MB, free: 3.117 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.578e-05/0.2891, allocations: 1.984 kB / 407.1 MB, free: 3.117 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006428/0.2898, allocations: 0.5133 MB / 407.7 MB, free: 2.734 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.884e-06/0.2898, allocations: 0 / 407.7 MB, free: 2.734 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001412/0.2912, allocations: 1.001 MB / 408.7 MB, free: 2.082 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.606e-05/0.2912, allocations: 174.2 kB / 408.8 MB, free: 1.887 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001456/0.2927, allocations: 1.005 MB / 409.8 MB, free: 1.379 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.93e-05/0.2927, allocations: 37.16 kB / 409.9 MB, free: 1.344 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001072/0.2928, allocations: 155.2 kB / 410 MB, free: 1.203 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.635e-05/0.2929, allocations: 59.27 kB / 410.1 MB, free: 1.156 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002611/0.2932, allocations: 163.9 kB / 410.2 MB, free: 1.059 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.53e-05/0.2933, allocations: 341.4 kB / 410.6 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000331/0.2936, allocations: 254.7 kB / 410.8 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003163/0.2939, allocations: 299.1 kB / 411.1 MB, free: 272 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006438/0.2946, allocations: 0.4904 MB / 411.6 MB, free: 15.83 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-06/0.2946, allocations: 0 / 411.6 MB, free: 15.83 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001272/0.2958, allocations: 0.7286 MB / 412.3 MB, free: 15.33 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001252/0.296, allocations: 136.8 kB / 412.5 MB, free: 15.19 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.786e-06/0.296, allocations: 1.125 kB / 412.5 MB, free: 15.19 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.15e-05/0.296, allocations: 2.438 kB / 412.5 MB, free: 15.19 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.4e-05/0.2961, allocations: 18.48 kB / 412.5 MB, free: 15.18 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.477e-06/0.2961, allocations: 2.75 kB / 412.5 MB, free: 15.18 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003002/0.2964, allocations: 15.8 kB / 412.5 MB, free: 15.18 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001587/0.2965, allocations: 119.6 kB / 412.6 MB, free: 15.16 MB / 334.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.0008127/0.2974, allocations: 0.5301 MB / 413.2 MB, free: 14.74 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001576/0.2975, allocations: 86.48 kB / 413.2 MB, free: 14.69 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000324/0.2978, allocations: 128.5 kB / 413.4 MB, free: 14.61 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.13e-06/0.2978, allocations: 1.562 kB / 413.4 MB, free: 14.61 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.2979, allocations: 0 / 413.4 MB, free: 14.61 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.539e-06/0.2979, allocations: 1.438 kB / 413.4 MB, free: 14.61 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009013/0.2988, allocations: 0.5385 MB / 413.9 MB, free: 14.18 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.2988, allocations: 0 / 413.9 MB, free: 14.18 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.04e-05/0.2988, allocations: 12.83 kB / 413.9 MB, free: 14.18 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.29e-06/0.2988, allocations: 5.406 kB / 413.9 MB, free: 14.17 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.613e-05/0.2989, allocations: 27.45 kB / 414 MB, free: 14.16 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.2989, allocations: 3.938 kB / 414 MB, free: 14.16 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.2989, allocations: 5.062 kB / 414 MB, free: 14.16 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001239/0.3001, allocations: 0.8387 MB / 414.8 MB, free: 13.57 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008776/0.301, allocations: 0.4991 MB / 415.3 MB, free: 13.2 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001455/0.3011, allocations: 23.56 kB / 415.3 MB, free: 13.18 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002021/0.3013, allocations: 15.67 kB / 415.3 MB, free: 13.18 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000187/0.3015, allocations: 54.91 kB / 415.4 MB, free: 13.15 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00016/0.3017, allocations: 122.9 kB / 415.5 MB, free: 13.13 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001204/0.3029, allocations: 0.7266 MB / 416.2 MB, free: 12.69 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3029, allocations: 0 / 416.2 MB, free: 12.69 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004574/0.3033, allocations: 94.17 kB / 416.3 MB, free: 12.68 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.001718/0.3051, allocations: 1.421 MB / 417.8 MB, free: 11.54 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001134/0.3062, allocations: 0.8097 MB / 418.6 MB, free: 10.83 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.3062, allocations: 0 / 418.6 MB, free: 10.83 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006055/0.3068, allocations: 0.5259 MB / 419.1 MB, free: 10.34 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008839/0.3077, allocations: 201.9 kB / 419.3 MB, free: 10.23 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008994/0.3167, allocations: 5.201 MB / 424.5 MB, free: 6.402 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006028/0.3173, allocations: 378.5 kB / 424.9 MB, free: 6.074 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0005584/0.3178, allocations: 157.1 kB / 425 MB, free: 5.922 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002884/0.3181, allocations: 131.2 kB / 425.1 MB, free: 5.793 MB / 334.1 MB Notification: Performance of SimCode: time 8.52e-07/0.3181, allocations: 3.938 kB / 425.1 MB, free: 5.789 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03595/0.3541, allocations: 11.13 MB / 436.3 MB, free: 10.55 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.84/11.19, allocations: 8 kB / 436.3 MB, free: 10.54 MB / 350.1 MB " [Timeout remaining time 649] (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: 13.51078598399181] 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.350823275046423 11.365301283 11.079246249 Calling exit ...