Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00132/0.00132, allocations: 101.5 kB / 21.21 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001423/0.001423, allocations: 191.4 kB / 24.49 MB, free: 3.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.385/1.385, allocations: 225.7 MB / 253.3 MB, free: 12.82 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001531/0.001531, allocations: 55.91 kB / 371.2 MB, free: 9.668 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2662/0.2677, allocations: 52.17 MB / 423.3 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.00332/0.271, allocations: 2.001 MB / 425.3 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002086/0.2731, allocations: 0.9668 MB / 426.3 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001033/0.2732, allocations: 7.938 kB / 426.3 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001744/0.2734, allocations: 43.58 kB / 426.4 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001215/0.2735, allocations: 59.5 kB / 426.4 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004288/0.2739, allocations: 131.8 kB / 426.6 MB, free: 11.18 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004816/0.2744, allocations: 391.1 kB / 426.9 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001956/0.2746, allocations: 81.59 kB / 427 MB, free: 10.71 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009814/0.2756, allocations: 0.967 MB / 428 MB, free: 9.742 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002631/0.2759, allocations: 199.2 kB / 428.2 MB, free: 9.547 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.968e-05/0.2759, allocations: 36 kB / 428.2 MB, free: 9.512 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.931e-05/0.276, allocations: 36 kB / 428.2 MB, free: 9.477 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001725/0.2762, allocations: 167.3 kB / 428.4 MB, free: 9.312 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002239/0.2764, allocations: 202.5 kB / 428.6 MB, free: 9.113 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008942/0.2773, allocations: 0.9806 MB / 429.6 MB, free: 8.129 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.2773, allocations: 8 kB / 429.6 MB, free: 8.121 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.2773, allocations: 0 / 429.6 MB, free: 8.121 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.188e-05/0.2773, allocations: 0 / 429.6 MB, free: 8.121 MB / 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.00126/0.2786, allocations: 1.07 MB / 430.7 MB, free: 6.992 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.972e-05/0.2786, allocations: 8.031 kB / 430.7 MB, free: 6.984 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.6e-05/0.2786, allocations: 4.188 kB / 430.7 MB, free: 6.98 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.126e-05/0.2787, allocations: 54.73 kB / 430.7 MB, free: 6.918 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001291/0.2788, allocations: 88.42 kB / 430.8 MB, free: 6.832 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004768/0.2793, allocations: 378.9 kB / 431.2 MB, free: 6.434 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.936e-05/0.2794, allocations: 16.38 kB / 431.2 MB, free: 6.418 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.609e-05/0.2794, allocations: 24.38 kB / 431.2 MB, free: 6.395 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006962/0.2801, allocations: 424.2 kB / 431.6 MB, free: 5.949 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.136e-05/0.2801, allocations: 3.984 kB / 431.6 MB, free: 5.945 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.032e-05/0.2802, allocations: 12 kB / 431.7 MB, free: 5.934 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-06/0.2802, allocations: 0 / 431.7 MB, free: 5.934 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005229/0.2807, allocations: 334.7 kB / 432 MB, free: 5.582 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001252/0.282, allocations: 0.7919 MB / 432.8 MB, free: 4.746 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005216/0.2825, allocations: 309.2 kB / 433.1 MB, free: 4.41 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003441/0.2828, allocations: 243.6 kB / 433.3 MB, free: 4.145 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.333e-05/0.2829, allocations: 8 kB / 433.3 MB, free: 4.137 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007034/0.2836, allocations: 0.5046 MB / 433.8 MB, free: 3.57 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.563e-06/0.2836, allocations: 0 / 433.8 MB, free: 3.57 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001549/0.2851, allocations: 1.009 MB / 434.8 MB, free: 2.484 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001095/0.2852, allocations: 174.2 kB / 435 MB, free: 2.277 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001319/0.2865, allocations: 1 MB / 436 MB, free: 1.27 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.82e-05/0.2866, allocations: 33.69 kB / 436 MB, free: 1.23 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001268/0.2867, allocations: 162 kB / 436.2 MB, free: 1.066 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.826e-05/0.2868, allocations: 59.5 kB / 436.3 MB, free: 1.008 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000225/0.287, allocations: 169.3 kB / 436.4 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001605/0.2872, allocations: 342.8 kB / 436.8 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004169/0.2876, allocations: 250.8 kB / 437 MB, free: 228 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004082/0.288, allocations: 291 kB / 437.3 MB, free: 15.9 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006486/0.2886, allocations: 497.7 kB / 437.8 MB, free: 15.35 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.015e-06/0.2887, allocations: 0 / 437.8 MB, free: 15.35 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001124/0.2898, allocations: 0.7254 MB / 438.5 MB, free: 14.57 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001157/0.2899, allocations: 137.3 kB / 438.6 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.765e-06/0.2899, allocations: 8.062 kB / 438.6 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.601e-05/0.2899, allocations: 3.984 kB / 438.6 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.831e-05/0.29, allocations: 15.94 kB / 438.7 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.051e-06/0.29, allocations: 0 / 438.7 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000222/0.2902, allocations: 31.88 kB / 438.7 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001343/0.2904, allocations: 111.9 kB / 438.8 MB, free: 14.24 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.0006359/0.291, allocations: 0.5302 MB / 439.3 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001113/0.2911, allocations: 83.56 kB / 439.4 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002029/0.2913, allocations: 134.5 kB / 439.5 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.2913, allocations: 0 / 439.5 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.2913, allocations: 3.938 kB / 439.5 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.2913, allocations: 0 / 439.5 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007012/0.292, allocations: 0.5313 MB / 440.1 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.292, allocations: 0 / 440.1 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.355e-05/0.2921, allocations: 19.92 kB / 440.1 MB, free: 12.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.315e-06/0.2921, allocations: 0 / 440.1 MB, free: 12.87 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.406e-05/0.2921, allocations: 27.98 kB / 440.1 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.807e-06/0.2921, allocations: 8.125 kB / 440.1 MB, free: 12.83 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.2921, allocations: 0 / 440.1 MB, free: 12.83 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001223/0.2934, allocations: 0.8377 MB / 441 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007971/0.2942, allocations: 0.493 MB / 441.5 MB, free: 11.42 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001062/0.2943, allocations: 20 kB / 441.5 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001794/0.2945, allocations: 19.98 kB / 441.5 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001638/0.2946, allocations: 51.88 kB / 441.6 MB, free: 11.33 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001267/0.2947, allocations: 119.9 kB / 441.7 MB, free: 11.21 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001007/0.2957, allocations: 0.729 MB / 442.4 MB, free: 10.49 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2957, allocations: 0 / 442.4 MB, free: 10.49 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003664/0.2961, allocations: 95.89 kB / 442.5 MB, free: 10.4 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.001641/0.2978, allocations: 1.416 MB / 443.9 MB, free: 8.902 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001112/0.2989, allocations: 0.8077 MB / 444.7 MB, free: 7.996 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.2989, allocations: 8.125 kB / 444.7 MB, free: 7.988 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000608/0.2995, allocations: 0.5199 MB / 445.2 MB, free: 7.395 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008432/0.3003, allocations: 192 kB / 445.4 MB, free: 7.215 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007419/0.3077, allocations: 5.209 MB / 450.6 MB, free: 1.746 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005747/0.3083, allocations: 377.2 kB / 451 MB, free: 1.355 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003887/0.3087, allocations: 169.1 kB / 451.2 MB, free: 1.188 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002664/0.309, allocations: 127.3 kB / 451.3 MB, free: 1.062 MB / 350.1 MB Notification: Performance of SimCode: time 1.182e-06/0.309, allocations: 4 kB / 451.3 MB, free: 1.059 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03504/0.344, allocations: 11.13 MB / 462.4 MB, free: 6.137 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.25/11.6, allocations: 10.72 kB / 462.4 MB, free: 6.129 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_HalfAdder_fmu --startTime=0 --stopTime=5 --stepSize=0.000998004 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_HalfAdder.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.908803498954512] 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.757806185050867 11.773041621 11.492738292 Calling exit ...