Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001843/0.001843, allocations: 116.9 kB / 18.49 MB, free: 4.559 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002246/0.002246, allocations: 212.7 kB / 21.46 MB, free: 1.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.54/1.54, allocations: 230.4 MB / 254.7 MB, free: 15.17 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001858/0.001858, allocations: 55.91 kB / 373.7 MB, free: 10.08 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09976/0.1016, allocations: 53.38 MB / 427.1 MB, free: 4.602 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003268/0.1049, allocations: 2.129 MB / 429.2 MB, free: 2.465 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002162/0.107, allocations: 1.056 MB / 430.2 MB, free: 1.402 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.342e-05/0.1071, allocations: 7.938 kB / 430.2 MB, free: 1.395 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001747/0.1073, allocations: 35.64 kB / 430.3 MB, free: 1.359 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001141/0.1074, allocations: 59.52 kB / 430.3 MB, free: 1.301 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003646/0.1078, allocations: 127.8 kB / 430.5 MB, free: 1.176 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004588/0.1082, allocations: 391.1 kB / 430.8 MB, free: 0.793 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001986/0.1084, allocations: 83.09 kB / 430.9 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009885/0.1094, allocations: 0.9669 MB / 431.9 MB, free: 15.73 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002497/0.1097, allocations: 203.2 kB / 432.1 MB, free: 15.54 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.962e-05/0.1098, allocations: 36 kB / 432.1 MB, free: 15.5 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.74e-05/0.1098, allocations: 32 kB / 432.2 MB, free: 15.47 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001693/0.11, allocations: 159.4 kB / 432.3 MB, free: 15.31 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002675/0.1103, allocations: 298 kB / 432.6 MB, free: 15.02 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009072/0.1112, allocations: 0.9767 MB / 433.6 MB, free: 14.04 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.1112, allocations: 0 / 433.6 MB, free: 14.04 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1112, allocations: 0 / 433.6 MB, free: 14.04 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.624e-06/0.1112, allocations: 0 / 433.6 MB, free: 14.04 MB / 366.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.001266/0.1124, allocations: 1.142 MB / 434.7 MB, free: 12.82 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.051e-05/0.1125, allocations: 12.03 kB / 434.7 MB, free: 12.81 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.923e-05/0.1125, allocations: 4.188 kB / 434.7 MB, free: 12.8 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.246e-05/0.1126, allocations: 50.73 kB / 434.8 MB, free: 12.75 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001202/0.1127, allocations: 88.42 kB / 434.9 MB, free: 12.66 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004663/0.1132, allocations: 436.8 kB / 435.3 MB, free: 12.19 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.778e-05/0.1132, allocations: 20.36 kB / 435.3 MB, free: 12.17 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.462e-05/0.1133, allocations: 20.38 kB / 435.3 MB, free: 12.15 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006154/0.1139, allocations: 301.1 kB / 435.6 MB, free: 11.85 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.109e-05/0.1139, allocations: 0 / 435.6 MB, free: 11.85 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.199e-05/0.1139, allocations: 12 kB / 435.7 MB, free: 11.84 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.123e-06/0.1139, allocations: 7.938 kB / 435.7 MB, free: 11.83 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004631/0.1144, allocations: 211.8 kB / 435.9 MB, free: 11.62 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001323/0.1157, allocations: 0.8941 MB / 436.8 MB, free: 10.68 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004415/0.1162, allocations: 170.5 kB / 436.9 MB, free: 10.5 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002953/0.1165, allocations: 120.8 kB / 437 MB, free: 10.38 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.818e-05/0.1165, allocations: 0 / 437 MB, free: 10.38 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006214/0.1171, allocations: 394.1 kB / 437.4 MB, free: 9.961 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 1.613e-06/0.1171, allocations: 3.938 kB / 437.4 MB, free: 9.957 MB / 366.1 MB Notification: Performance of matching and sorting (n=24): time 0.00141/0.1185, allocations: 0.7339 MB / 438.2 MB, free: 9.191 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001238/0.1186, allocations: 178.2 kB / 438.3 MB, free: 8.98 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001272/0.1199, allocations: 0.9961 MB / 439.3 MB, free: 7.973 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.065e-05/0.12, allocations: 37.7 kB / 439.4 MB, free: 7.93 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001205/0.1201, allocations: 157.8 kB / 439.5 MB, free: 7.77 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.869e-05/0.1202, allocations: 59.58 kB / 439.6 MB, free: 7.711 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002343/0.1204, allocations: 173.3 kB / 439.8 MB, free: 7.535 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001409/0.1205, allocations: 338.8 kB / 440.1 MB, free: 7.195 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002828/0.1208, allocations: 116 kB / 440.2 MB, free: 7.082 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000307/0.1211, allocations: 169.8 kB / 440.4 MB, free: 6.902 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006782/0.1218, allocations: 477.7 kB / 440.8 MB, free: 6.371 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.826e-06/0.1218, allocations: 0 / 440.8 MB, free: 6.371 MB / 366.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001029/0.1228, allocations: 0.5821 MB / 441.4 MB, free: 5.758 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001504/0.123, allocations: 130.8 kB / 441.5 MB, free: 5.605 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.123, allocations: 4.125 kB / 441.5 MB, free: 5.602 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.859e-05/0.123, allocations: 4 kB / 441.5 MB, free: 5.598 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.713e-05/0.1231, allocations: 19.92 kB / 441.6 MB, free: 5.578 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.1231, allocations: 0 / 441.6 MB, free: 5.578 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002197/0.1233, allocations: 35.94 kB / 441.6 MB, free: 5.543 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001335/0.1235, allocations: 107.9 kB / 441.7 MB, free: 5.438 MB / 366.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.0007028/0.1242, allocations: 0.5337 MB / 442.2 MB, free: 4.871 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001282/0.1243, allocations: 87.45 kB / 442.3 MB, free: 4.785 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001951/0.1245, allocations: 130.3 kB / 442.5 MB, free: 4.656 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.1245, allocations: 4 kB / 442.5 MB, free: 4.652 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.1245, allocations: 0 / 442.5 MB, free: 4.652 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.274e-06/0.1245, allocations: 4 kB / 442.5 MB, free: 4.648 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007263/0.1252, allocations: 0.6258 MB / 443.1 MB, free: 3.973 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.1252, allocations: 4 kB / 443.1 MB, free: 3.969 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.745e-05/0.1253, allocations: 11.98 kB / 443.1 MB, free: 3.957 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.1253, allocations: 0 / 443.1 MB, free: 3.957 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.148e-05/0.1253, allocations: 23.98 kB / 443.1 MB, free: 3.934 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.1253, allocations: 0 / 443.1 MB, free: 3.934 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1253, allocations: 0 / 443.1 MB, free: 3.934 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001147/0.1265, allocations: 0.7183 MB / 443.8 MB, free: 3.172 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006514/0.1271, allocations: 0.5 MB / 444.3 MB, free: 2.652 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.779e-05/0.1272, allocations: 20 kB / 444.4 MB, free: 2.633 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001769/0.1274, allocations: 15.98 kB / 444.4 MB, free: 2.617 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001493/0.1276, allocations: 51.95 kB / 444.4 MB, free: 2.566 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001257/0.1277, allocations: 111.9 kB / 444.5 MB, free: 2.457 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0009687/0.1287, allocations: 0.7253 MB / 445.3 MB, free: 1.738 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1287, allocations: 4 kB / 445.3 MB, free: 1.734 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003569/0.129, allocations: 87.88 kB / 445.4 MB, free: 1.648 MB / 366.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.001582/0.1306, allocations: 1.297 MB / 446.7 MB, free: 300 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.1854/0.316, allocations: 0.5263 MB / 447.2 MB, free: 24.65 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.212e-06/0.316, allocations: 0 / 447.2 MB, free: 24.65 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005721/0.3166, allocations: 399 kB / 447.6 MB, free: 24.4 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001037/0.3176, allocations: 200.1 kB / 447.8 MB, free: 24.39 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006114/0.3237, allocations: 4.536 MB / 452.3 MB, free: 22.34 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006114/0.3243, allocations: 0.9682 MB / 453.3 MB, free: 21.56 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003839/0.3247, allocations: 161.3 kB / 453.4 MB, free: 21.46 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002363/0.3249, allocations: 133.9 kB / 453.6 MB, free: 21.36 MB / 366.1 MB Notification: Performance of SimCode: time 1.723e-06/0.3249, allocations: 0.8125 kB / 453.6 MB, free: 21.36 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0344/0.3593, allocations: 10.32 MB / 463.9 MB, free: 19.42 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.489/8.849, allocations: 5.406 kB / 463.9 MB, free: 19.42 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_HalfAdder_fmu --startTime=0 --stopTime=5 --stepSize=0.000998004 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_HalfAdder.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.399496088037267] 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'] 8.973286881984677 8.987910517 8.872203462 Calling exit ...