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.001321/0.001321, allocations: 122.2 kB / 18.5 MB, free: 4.562 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.00141/0.00141, allocations: 215.1 kB / 21.45 MB, free: 1.617 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.428/1.428, allocations: 230.6 MB / 254.8 MB, free: 15.11 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.001628/0.001628, allocations: 47.92 kB / 373.7 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.11, allocations: 53.33 MB / 427 MB, free: 4.793 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003725/0.1137, allocations: 2.123 MB / 429.1 MB, free: 2.66 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00239/0.1161, allocations: 1.056 MB / 430.2 MB, free: 1.598 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001043/0.1162, allocations: 3.938 kB / 430.2 MB, free: 1.594 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001744/0.1164, allocations: 35.66 kB / 430.2 MB, free: 1.559 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001182/0.1165, allocations: 63.5 kB / 430.3 MB, free: 1.496 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003903/0.1169, allocations: 127.8 kB / 430.4 MB, free: 1.371 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004807/0.1174, allocations: 391.1 kB / 430.8 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002103/0.1176, allocations: 75.11 kB / 430.9 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2008/0.3183, allocations: 0.9643 MB / 431.8 MB, free: 8.223 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003608/0.3187, allocations: 202.4 kB / 432 MB, free: 8.219 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000125/0.3188, allocations: 35.75 kB / 432.1 MB, free: 8.219 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.311e-05/0.3189, allocations: 34.66 kB / 432.1 MB, free: 8.219 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001847/0.3191, allocations: 166 kB / 432.3 MB, free: 8.188 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002429/0.3193, allocations: 293.7 kB / 432.6 MB, free: 8.074 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007859/0.3201, allocations: 0.9732 MB / 433.5 MB, free: 7.953 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.3201, allocations: 0 / 433.5 MB, free: 7.953 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3201, allocations: 1.656 kB / 433.5 MB, free: 7.953 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.175e-05/0.3201, allocations: 0 / 433.5 MB, free: 7.953 MB / 350.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.00106/0.3212, allocations: 1.144 MB / 434.7 MB, free: 7.125 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.802e-05/0.3212, allocations: 9.156 kB / 434.7 MB, free: 7.125 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.356e-05/0.3213, allocations: 4.812 kB / 434.7 MB, free: 7.125 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.866e-05/0.3213, allocations: 55.22 kB / 434.8 MB, free: 7.086 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001158/0.3214, allocations: 83.92 kB / 434.8 MB, free: 7.043 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003892/0.3218, allocations: 437 kB / 435.3 MB, free: 6.73 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.762e-05/0.3219, allocations: 13.12 kB / 435.3 MB, free: 6.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.673e-05/0.3219, allocations: 24.78 kB / 435.3 MB, free: 6.73 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006058/0.3225, allocations: 304.3 kB / 435.6 MB, free: 6.691 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/0.3225, allocations: 0 / 435.6 MB, free: 6.691 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.511e-05/0.3226, allocations: 12.81 kB / 435.6 MB, free: 6.691 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.893e-06/0.3226, allocations: 3.781 kB / 435.6 MB, free: 6.691 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004433/0.323, allocations: 207.2 kB / 435.8 MB, free: 6.691 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001172/0.3242, allocations: 0.8966 MB / 436.7 MB, free: 6.348 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004064/0.3246, allocations: 178.9 kB / 436.9 MB, free: 6.32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002525/0.3249, allocations: 118.2 kB / 437 MB, free: 6.312 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.498e-05/0.3249, allocations: 1.984 kB / 437 MB, free: 6.312 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005941/0.3255, allocations: 387 kB / 437.4 MB, free: 6.137 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.954e-06/0.3255, allocations: 0 / 437.4 MB, free: 6.137 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001356/0.3268, allocations: 0.7437 MB / 438.1 MB, free: 5.934 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.337e-05/0.3269, allocations: 175.6 kB / 438.3 MB, free: 5.746 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001234/0.3281, allocations: 1.003 MB / 439.3 MB, free: 5.438 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.35e-05/0.3282, allocations: 34.23 kB / 439.3 MB, free: 5.406 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.046e-05/0.3283, allocations: 161.5 kB / 439.5 MB, free: 5.309 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.186e-05/0.3284, allocations: 67.31 kB / 439.6 MB, free: 5.27 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002223/0.3286, allocations: 164.9 kB / 439.7 MB, free: 5.184 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.547e-05/0.3286, allocations: 341.4 kB / 440 MB, free: 4.855 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002616/0.3289, allocations: 121.4 kB / 440.2 MB, free: 4.812 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002631/0.3292, allocations: 163.5 kB / 440.3 MB, free: 4.727 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004813/0.3296, allocations: 473.1 kB / 440.8 MB, free: 4.348 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.3296, allocations: 1.094 kB / 440.8 MB, free: 4.348 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008661/0.3305, allocations: 0.5861 MB / 441.4 MB, free: 4.051 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.673e-05/0.3306, allocations: 133.3 kB / 441.5 MB, free: 3.918 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.3306, allocations: 6.125 kB / 441.5 MB, free: 3.914 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.549e-05/0.3306, allocations: 1.906 kB / 441.5 MB, free: 3.914 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.33e-05/0.3307, allocations: 21.17 kB / 441.5 MB, free: 3.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.733e-06/0.3307, allocations: 2.875 kB / 441.5 MB, free: 3.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002112/0.3309, allocations: 22.03 kB / 441.6 MB, free: 3.906 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001236/0.331, allocations: 117.9 kB / 441.7 MB, free: 3.895 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.0004878/0.3315, allocations: 0.5265 MB / 442.2 MB, free: 3.516 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.741e-05/0.3316, allocations: 83.69 kB / 442.3 MB, free: 3.477 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001814/0.3318, allocations: 129.8 kB / 442.4 MB, free: 3.387 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.3318, allocations: 3.719 kB / 442.4 MB, free: 3.387 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.3318, allocations: 1.188 kB / 442.4 MB, free: 3.387 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.3318, allocations: 0.7969 kB / 442.4 MB, free: 3.387 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008148/0.3326, allocations: 0.6293 MB / 443 MB, free: 2.984 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.3326, allocations: 9.094 kB / 443.1 MB, free: 2.977 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.005e-05/0.3327, allocations: 13.55 kB / 443.1 MB, free: 2.977 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.3327, allocations: 1.031 kB / 443.1 MB, free: 2.977 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.833e-05/0.3327, allocations: 27.09 kB / 443.1 MB, free: 2.973 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.445e-06/0.3327, allocations: 1.094 kB / 443.1 MB, free: 2.973 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.3327, allocations: 0 / 443.1 MB, free: 2.973 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001024/0.3338, allocations: 0.7038 MB / 443.8 MB, free: 2.598 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005867/0.3343, allocations: 0.4973 MB / 444.3 MB, free: 2.258 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001105/0.3345, allocations: 21.11 kB / 444.3 MB, free: 2.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001784/0.3346, allocations: 23.61 kB / 444.3 MB, free: 2.242 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001495/0.3348, allocations: 46.14 kB / 444.4 MB, free: 2.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001182/0.3349, allocations: 116.6 kB / 444.5 MB, free: 2.223 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0008489/0.3358, allocations: 0.7304 MB / 445.2 MB, free: 1.863 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3358, allocations: 0 / 445.2 MB, free: 1.863 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003725/0.3361, allocations: 90.03 kB / 445.3 MB, free: 1.855 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.001241/0.3374, allocations: 1.291 MB / 446.6 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007788/0.3381, allocations: 0.5391 MB / 447.1 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.3381, allocations: 5.562 kB / 447.2 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004017/0.3386, allocations: 394.2 kB / 447.5 MB, free: 264 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008712/0.3394, allocations: 195.8 kB / 447.7 MB, free: 216 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006582/0.346, allocations: 4.534 MB / 452.3 MB, free: 13.48 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008091/0.3468, allocations: 0.9652 MB / 453.2 MB, free: 12.7 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004068/0.3472, allocations: 165.5 kB / 453.4 MB, free: 12.59 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002508/0.3475, allocations: 131.2 kB / 453.5 MB, free: 12.5 MB / 366.1 MB Notification: Performance of SimCode: time 1.162e-06/0.3475, allocations: 3.938 kB / 453.5 MB, free: 12.5 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03193/0.3794, allocations: 10.32 MB / 463.8 MB, free: 8.84 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.588/8.967, allocations: 9.25 kB / 463.9 MB, free: 8.836 MB / 366.1 MB " [Timeout remaining time 651] (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: 11.330532799009234] 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'] 9.091675424948335 9.105372101 8.78235356 Calling exit ...