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.005689/0.005689, allocations: 111.2 kB / 21.97 MB, free: 5.246 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.001696/0.001696, allocations: 205.1 kB / 25.27 MB, free: 3.234 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.383/1.383, allocations: 207.6 MB / 236 MB, free: 9.996 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.002002/0.002002, allocations: 55.92 kB / 348 MB, free: 10.03 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.259/0.261, allocations: 49.16 MB / 397.1 MB, free: 8.961 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002673/0.2637, allocations: 2.129 MB / 399.3 MB, free: 7.504 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001923/0.2656, allocations: 1.074 MB / 400.3 MB, free: 6.77 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001171/0.2657, allocations: 6.219 kB / 400.3 MB, free: 6.766 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000158/0.2659, allocations: 38.22 kB / 400.4 MB, free: 6.742 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001042/0.266, allocations: 58.7 kB / 400.4 MB, free: 6.699 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003573/0.2664, allocations: 134.5 kB / 400.6 MB, free: 6.613 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003949/0.2668, allocations: 394.2 kB / 401 MB, free: 6.414 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001603/0.2669, allocations: 75.48 kB / 401 MB, free: 6.367 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001005/0.2679, allocations: 0.9664 MB / 402 MB, free: 6.25 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002822/0.2682, allocations: 207 kB / 402.2 MB, free: 6.16 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.581e-05/0.2683, allocations: 34.38 kB / 402.2 MB, free: 6.16 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.848e-05/0.2684, allocations: 35.28 kB / 402.3 MB, free: 6.16 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001492/0.2685, allocations: 166.6 kB / 402.4 MB, free: 6.09 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001906/0.2687, allocations: 287.9 kB / 402.7 MB, free: 5.871 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008885/0.2696, allocations: 0.9788 MB / 403.7 MB, free: 5.543 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.2696, allocations: 4 kB / 403.7 MB, free: 5.539 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.2696, allocations: 1.312 kB / 403.7 MB, free: 5.539 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.305e-05/0.2696, allocations: 3.938 kB / 403.7 MB, free: 5.535 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.00117/0.2708, allocations: 1.066 MB / 404.8 MB, free: 4.699 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.994e-05/0.2708, allocations: 13.02 kB / 404.8 MB, free: 4.695 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.831e-05/0.2708, allocations: 3.844 kB / 404.8 MB, free: 4.695 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.977e-05/0.2709, allocations: 52.55 kB / 404.8 MB, free: 4.648 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001209/0.271, allocations: 84.11 kB / 404.9 MB, free: 4.605 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003928/0.2714, allocations: 378.9 kB / 405.3 MB, free: 4.305 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.611e-05/0.2714, allocations: 19.25 kB / 405.3 MB, free: 4.297 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.197e-05/0.2715, allocations: 18.53 kB / 405.3 MB, free: 4.293 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005895/0.2721, allocations: 295.9 kB / 405.6 MB, free: 4.188 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.999e-06/0.2721, allocations: 0.9688 kB / 405.6 MB, free: 4.188 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.265e-05/0.2721, allocations: 9.359 kB / 405.6 MB, free: 4.184 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.562e-06/0.2721, allocations: 3.25 kB / 405.6 MB, free: 4.184 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004324/0.2726, allocations: 212.1 kB / 405.8 MB, free: 4.113 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001389/0.274, allocations: 0.8617 MB / 406.7 MB, free: 3.59 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004116/0.2744, allocations: 175.9 kB / 406.9 MB, free: 3.516 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002401/0.2746, allocations: 117.3 kB / 407 MB, free: 3.469 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.959e-05/0.2746, allocations: 5.312 kB / 407 MB, free: 3.465 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005819/0.2752, allocations: 387.3 kB / 407.4 MB, free: 3.227 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 2.225e-06/0.2752, allocations: 0 / 407.4 MB, free: 3.227 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.00129/0.2765, allocations: 0.7404 MB / 408.1 MB, free: 2.863 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.39e-05/0.2766, allocations: 171 kB / 408.3 MB, free: 2.672 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001342/0.2779, allocations: 1.004 MB / 409.3 MB, free: 2.164 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.491e-05/0.278, allocations: 36.11 kB / 409.3 MB, free: 2.129 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.266e-05/0.278, allocations: 155.1 kB / 409.5 MB, free: 1.984 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.698e-05/0.2781, allocations: 59.17 kB / 409.5 MB, free: 1.938 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000212/0.2783, allocations: 164 kB / 409.7 MB, free: 1.84 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.8e-05/0.2784, allocations: 344.9 kB / 410 MB, free: 1.5 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002437/0.2786, allocations: 118.9 kB / 410.1 MB, free: 1.445 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002502/0.2789, allocations: 168 kB / 410.3 MB, free: 1.332 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004664/0.2793, allocations: 477.7 kB / 410.8 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.2793, allocations: 0 / 410.8 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008732/0.2802, allocations: 0.5801 MB / 411.3 MB, free: 0.582 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.521e-05/0.2803, allocations: 135.8 kB / 411.5 MB, free: 448 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.042e-06/0.2803, allocations: 1.312 kB / 411.5 MB, free: 448 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.718e-05/0.2803, allocations: 2.641 kB / 411.5 MB, free: 448 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.954e-05/0.2804, allocations: 18.7 kB / 411.5 MB, free: 440 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.884e-06/0.2804, allocations: 2.438 kB / 411.5 MB, free: 440 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002453/0.2806, allocations: 16.17 kB / 411.5 MB, free: 436 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001316/0.2808, allocations: 122.6 kB / 411.6 MB, free: 416 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.0005974/0.2814, allocations: 0.5233 MB / 412.2 MB, free: 15.99 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001235/0.2815, allocations: 82.67 kB / 412.2 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002426/0.2817, allocations: 135.8 kB / 412.4 MB, free: 15.86 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.2817, allocations: 1.375 kB / 412.4 MB, free: 15.86 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.2817, allocations: 5.406 kB / 412.4 MB, free: 15.85 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.2818, allocations: 0 / 412.4 MB, free: 15.85 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008066/0.2826, allocations: 0.5969 MB / 413 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.2826, allocations: 1.344 kB / 413 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.08e-05/0.2826, allocations: 12.5 kB / 413 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.957e-06/0.2826, allocations: 4.781 kB / 413 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.654e-05/0.2827, allocations: 27.36 kB / 413 MB, free: 15.35 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.2827, allocations: 0 / 413 MB, free: 15.35 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.2827, allocations: 0 / 413 MB, free: 15.35 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001123/0.2838, allocations: 0.7094 MB / 413.7 MB, free: 14.92 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009009/0.2847, allocations: 0.4997 MB / 414.2 MB, free: 14.54 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001112/0.2848, allocations: 19.62 kB / 414.2 MB, free: 14.53 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001777/0.285, allocations: 16.3 kB / 414.3 MB, free: 14.53 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001672/0.2852, allocations: 57.47 kB / 414.3 MB, free: 14.49 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000131/0.2853, allocations: 123.3 kB / 414.4 MB, free: 14.47 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001045/0.2863, allocations: 0.7269 MB / 415.2 MB, free: 14.03 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2863, allocations: 0 / 415.2 MB, free: 14.03 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004153/0.2867, allocations: 101.6 kB / 415.3 MB, free: 14.01 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.001559/0.2883, allocations: 1.286 MB / 416.5 MB, free: 13.04 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008704/0.2892, allocations: 0.535 MB / 417.1 MB, free: 12.63 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.2892, allocations: 1.531 kB / 417.1 MB, free: 12.63 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004774/0.2897, allocations: 394.5 kB / 417.5 MB, free: 12.29 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009027/0.2906, allocations: 204 kB / 417.7 MB, free: 12.18 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006852/0.2974, allocations: 4.51 MB / 422.2 MB, free: 9.113 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007493/0.2982, allocations: 0.9753 MB / 423.2 MB, free: 8.246 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0004989/0.2987, allocations: 160.9 kB / 423.3 MB, free: 8.141 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002638/0.2989, allocations: 130.6 kB / 423.4 MB, free: 8.039 MB / 334.1 MB Notification: Performance of SimCode: time 1.152e-06/0.2989, allocations: 4 kB / 423.4 MB, free: 8.035 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03417/0.3331, allocations: 10.56 MB / 434 MB, free: 13.47 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.73/11.07, allocations: 0 / 434 MB, free: 13.47 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.367934514011722] 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.22622211399721 11.242116808 10.969151287 Calling exit ...