Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001229/0.001229, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001348/0.001348, allocations: 216.5 kB / 24.52 MB, free: 3.91 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.411/1.411, allocations: 230.6 MB / 258.3 MB, free: 7.777 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_0_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001455/0.001455, allocations: 47.92 kB / 378.5 MB, free: 2.977 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.271/0.2725, allocations: 53.37 MB / 431.9 MB, free: 6.641 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003365/0.2758, allocations: 2.006 MB / 433.9 MB, free: 4.629 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002274/0.2781, allocations: 1.002 MB / 434.9 MB, free: 3.621 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001166/0.2782, allocations: 7.938 kB / 434.9 MB, free: 3.613 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001858/0.2784, allocations: 39.64 kB / 434.9 MB, free: 3.574 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001112/0.2785, allocations: 51.59 kB / 435 MB, free: 3.523 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004102/0.2789, allocations: 131.8 kB / 435.1 MB, free: 3.395 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005002/0.2794, allocations: 403 kB / 435.5 MB, free: 3 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000195/0.2796, allocations: 73.64 kB / 435.6 MB, free: 2.926 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009987/0.2806, allocations: 0.967 MB / 436.5 MB, free: 1.957 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002667/0.2809, allocations: 199.2 kB / 436.7 MB, free: 1.762 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.689e-05/0.281, allocations: 39.94 kB / 436.8 MB, free: 1.723 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.469e-05/0.2811, allocations: 36 kB / 436.8 MB, free: 1.688 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000179/0.2813, allocations: 171.2 kB / 437 MB, free: 1.52 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000233/0.2815, allocations: 202.6 kB / 437.2 MB, free: 1.32 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009404/0.2824, allocations: 0.9883 MB / 438.1 MB, free: 336 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.2824, allocations: 0 / 438.1 MB, free: 336 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.2824, allocations: 0 / 438.1 MB, free: 336 kB / 334.1 MB Notification: Performance of Transformations before backend: time 8.666e-06/0.2824, allocations: 0 / 438.1 MB, free: 336 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.001334/0.2838, allocations: 1.07 MB / 439.2 MB, free: 15.2 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.993e-05/0.2838, allocations: 12.03 kB / 439.2 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.628e-05/0.2838, allocations: 4.188 kB / 439.2 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.742e-05/0.2839, allocations: 54.67 kB / 439.3 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001202/0.284, allocations: 88.42 kB / 439.4 MB, free: 15.03 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000484/0.2845, allocations: 374.9 kB / 439.7 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.626e-05/0.2845, allocations: 16.38 kB / 439.8 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.781e-05/0.2846, allocations: 20.38 kB / 439.8 MB, free: 14.6 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000723/0.2853, allocations: 435.9 kB / 440.2 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.106e-05/0.2853, allocations: 0 / 440.2 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.39e-05/0.2854, allocations: 12 kB / 440.2 MB, free: 14.13 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.725e-06/0.2854, allocations: 4 kB / 440.2 MB, free: 14.13 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005468/0.2859, allocations: 330.7 kB / 440.5 MB, free: 13.78 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001342/0.2873, allocations: 0.788 MB / 441.3 MB, free: 12.95 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005378/0.2878, allocations: 301.3 kB / 441.6 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003577/0.2882, allocations: 251.6 kB / 441.9 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.327e-05/0.2882, allocations: 0 / 441.9 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007482/0.2889, allocations: 0.5126 MB / 442.4 MB, free: 11.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.813e-06/0.2889, allocations: 0 / 442.4 MB, free: 11.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001597/0.2905, allocations: 1.003 MB / 443.4 MB, free: 10.69 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001152/0.2907, allocations: 170.2 kB / 443.5 MB, free: 10.49 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001326/0.292, allocations: 1.008 MB / 444.6 MB, free: 9.469 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.602e-05/0.292, allocations: 33.7 kB / 444.6 MB, free: 9.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001364/0.2922, allocations: 165.8 kB / 444.7 MB, free: 9.262 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.045e-05/0.2922, allocations: 55.59 kB / 444.8 MB, free: 9.207 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002342/0.2925, allocations: 169.3 kB / 445 MB, free: 9.035 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001757/0.2927, allocations: 342.8 kB / 445.3 MB, free: 8.691 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003619/0.293, allocations: 250.8 kB / 445.5 MB, free: 8.422 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003924/0.2934, allocations: 299.8 kB / 445.8 MB, free: 8.09 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006535/0.2941, allocations: 493.7 kB / 446.3 MB, free: 7.543 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.2941, allocations: 96 / 446.3 MB, free: 7.543 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0011/0.2952, allocations: 0.7332 MB / 447.1 MB, free: 6.754 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000116/0.2953, allocations: 138.8 kB / 447.2 MB, free: 6.594 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.2953, allocations: 0 / 447.2 MB, free: 6.594 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.464e-05/0.2953, allocations: 0 / 447.2 MB, free: 6.594 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.313e-05/0.2954, allocations: 15.98 kB / 447.2 MB, free: 6.578 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.045e-06/0.2954, allocations: 4 kB / 447.2 MB, free: 6.574 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002146/0.2956, allocations: 27.88 kB / 447.2 MB, free: 6.547 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000126/0.2957, allocations: 107.9 kB / 447.3 MB, free: 6.441 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.0006391/0.2964, allocations: 0.5418 MB / 447.9 MB, free: 5.867 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000101/0.2965, allocations: 75.53 kB / 448 MB, free: 5.793 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001962/0.2967, allocations: 130.5 kB / 448.1 MB, free: 5.664 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.786e-06/0.2967, allocations: 0 / 448.1 MB, free: 5.664 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.2967, allocations: 0 / 448.1 MB, free: 5.664 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.975e-06/0.2967, allocations: 0 / 448.1 MB, free: 5.664 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006661/0.2973, allocations: 0.5313 MB / 448.6 MB, free: 5.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.2973, allocations: 4 kB / 448.6 MB, free: 5.086 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.385e-05/0.2974, allocations: 12 kB / 448.6 MB, free: 5.074 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.2974, allocations: 0 / 448.6 MB, free: 5.074 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.339e-05/0.2974, allocations: 27.98 kB / 448.7 MB, free: 5.047 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.407e-06/0.2975, allocations: 3.984 kB / 448.7 MB, free: 5.043 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.2975, allocations: 7.922 kB / 448.7 MB, free: 5.035 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001231/0.2987, allocations: 0.8452 MB / 449.5 MB, free: 4.125 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007887/0.2995, allocations: 0.4968 MB / 450 MB, free: 3.617 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001138/0.2996, allocations: 20 kB / 450 MB, free: 3.598 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001732/0.2998, allocations: 19.98 kB / 450.1 MB, free: 3.578 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001655/0.2999, allocations: 47.95 kB / 450.1 MB, free: 3.531 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001265/0.3001, allocations: 120 kB / 450.2 MB, free: 3.414 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000977/0.301, allocations: 0.729 MB / 450.9 MB, free: 2.691 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.301, allocations: 0 / 450.9 MB, free: 2.691 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003444/0.3014, allocations: 87.94 kB / 451 MB, free: 2.605 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.001591/0.303, allocations: 1.421 MB / 452.5 MB, free: 1.102 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001044/0.304, allocations: 0.8193 MB / 453.3 MB, free: 188 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.304, allocations: 0 / 453.3 MB, free: 188 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006036/0.3046, allocations: 0.52 MB / 453.8 MB, free: 15.59 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008139/0.3054, allocations: 211.4 kB / 454 MB, free: 15.4 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007008/0.3124, allocations: 5.226 MB / 459.2 MB, free: 9.918 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004965/0.3129, allocations: 369.3 kB / 459.6 MB, free: 9.535 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003592/0.3133, allocations: 161.1 kB / 459.7 MB, free: 9.375 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002529/0.3135, allocations: 135.2 kB / 459.9 MB, free: 9.242 MB / 366.1 MB Notification: Performance of SimCode: time 9.22e-07/0.3135, allocations: 0 / 459.9 MB, free: 9.242 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03554/0.3491, allocations: 11.14 MB / 471 MB, free: 14.31 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.25/11.59, allocations: 2.656 kB / 471 MB, free: 14.31 MB / 382.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Digital_Examples_HalfAdder_fmu --startTime=0 --stopTime=5 --stepSize=0.000998004 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Digital_Examples_HalfAdder.fmu > Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.932409548084252] 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.753665052936412 11.769145055 11.483808579 Calling exit ...