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.001303/0.001303, allocations: 115.7 kB / 18.49 MB, free: 4.59 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.001295/0.001295, allocations: 194.5 kB / 21.43 MB, free: 1.66 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.434/1.434, allocations: 225.6 MB / 249.8 MB, free: 3.645 MB / 190.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.001481/0.001481, allocations: 47.92 kB / 366.4 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09799/0.09947, allocations: 52.13 MB / 418.5 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003981/0.1035, allocations: 2.122 MB / 420.6 MB, free: 10.53 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002517/0.106, allocations: 1.021 MB / 421.6 MB, free: 9.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001736/0.1061, allocations: 7.938 kB / 421.6 MB, free: 9.492 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002064/0.1063, allocations: 39.64 kB / 421.7 MB, free: 9.453 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001714/0.1065, allocations: 55.52 kB / 421.7 MB, free: 9.398 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004397/0.107, allocations: 123.8 kB / 421.9 MB, free: 9.277 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005794/0.1075, allocations: 391.1 kB / 422.2 MB, free: 8.895 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002325/0.1078, allocations: 83.08 kB / 422.3 MB, free: 8.809 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001101/0.1089, allocations: 0.967 MB / 423.3 MB, free: 7.84 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003424/0.1092, allocations: 203.1 kB / 423.5 MB, free: 7.641 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.825e-05/0.1093, allocations: 36 kB / 423.5 MB, free: 7.605 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.135e-05/0.1094, allocations: 36 kB / 423.6 MB, free: 7.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001693/0.1096, allocations: 163.3 kB / 423.7 MB, free: 7.41 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002708/0.1098, allocations: 286.1 kB / 424 MB, free: 7.129 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009303/0.1108, allocations: 0.9766 MB / 425 MB, free: 6.148 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.1108, allocations: 4 kB / 425 MB, free: 6.145 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.1108, allocations: 0 / 425 MB, free: 6.145 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.967e-06/0.1108, allocations: 0 / 425 MB, free: 6.145 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.00135/0.1121, allocations: 1.153 MB / 426.1 MB, free: 4.914 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.848e-05/0.1122, allocations: 11.97 kB / 426.1 MB, free: 4.902 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.623e-05/0.1122, allocations: 4.188 kB / 426.1 MB, free: 4.898 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.332e-05/0.1123, allocations: 50.73 kB / 426.2 MB, free: 4.84 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001293/0.1124, allocations: 84.42 kB / 426.3 MB, free: 4.758 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004917/0.1129, allocations: 432.8 kB / 426.7 MB, free: 4.293 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.925e-05/0.1129, allocations: 24.38 kB / 426.7 MB, free: 4.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.428e-05/0.113, allocations: 20.38 kB / 426.7 MB, free: 4.25 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006031/0.1136, allocations: 297.4 kB / 427 MB, free: 3.953 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.016e-05/0.1136, allocations: 0 / 427 MB, free: 3.953 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.749e-05/0.1136, allocations: 11.98 kB / 427 MB, free: 3.941 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.294e-06/0.1136, allocations: 4 kB / 427 MB, free: 3.938 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004527/0.1141, allocations: 204.4 kB / 427.2 MB, free: 3.738 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001317/0.1154, allocations: 0.898 MB / 428.1 MB, free: 2.789 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004444/0.1159, allocations: 178.4 kB / 428.3 MB, free: 2.605 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002754/0.1161, allocations: 116.8 kB / 428.4 MB, free: 2.488 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.885e-05/0.1162, allocations: 0 / 428.4 MB, free: 2.488 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006453/0.1168, allocations: 377.9 kB / 428.8 MB, free: 2.082 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.423e-06/0.1168, allocations: 4 kB / 428.8 MB, free: 2.078 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001407/0.1182, allocations: 0.7584 MB / 429.6 MB, free: 1.289 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000126/0.1183, allocations: 170.2 kB / 429.7 MB, free: 1.086 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001301/0.1196, allocations: 1.004 MB / 430.7 MB, free: 76 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.748e-05/0.1197, allocations: 29.7 kB / 430.8 MB, free: 40 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001394/0.1198, allocations: 157.9 kB / 430.9 MB, free: 15.88 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.917e-05/0.1199, allocations: 55.58 kB / 431 MB, free: 15.82 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002258/0.1201, allocations: 165.3 kB / 431.1 MB, free: 15.66 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001528/0.1203, allocations: 346.8 kB / 431.5 MB, free: 15.31 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000281/0.1206, allocations: 123.9 kB / 431.6 MB, free: 15.19 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003026/0.1209, allocations: 164.2 kB / 431.8 MB, free: 15.01 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000648/0.1215, allocations: 473.8 kB / 432.2 MB, free: 14.48 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.1215, allocations: 0 / 432.2 MB, free: 14.48 MB / 366.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001028/0.1225, allocations: 0.5859 MB / 432.8 MB, free: 13.87 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001275/0.1227, allocations: 138.8 kB / 432.9 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.716e-06/0.1227, allocations: 0 / 432.9 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.267e-05/0.1227, allocations: 4 kB / 432.9 MB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.786e-05/0.1228, allocations: 15.92 kB / 433 MB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.498e-05/0.1228, allocations: 4 kB / 433 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002289/0.123, allocations: 28.09 kB / 433 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001434/0.1232, allocations: 116 kB / 433.1 MB, free: 13.54 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.0007116/0.1239, allocations: 0.5344 MB / 433.6 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001216/0.124, allocations: 87.42 kB / 433.7 MB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002198/0.1242, allocations: 126.4 kB / 433.8 MB, free: 12.76 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.077e-05/0.1243, allocations: 4 kB / 433.8 MB, free: 12.76 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.723e-06/0.1243, allocations: 4 kB / 433.9 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.1243, allocations: 3.984 kB / 433.9 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000819/0.1251, allocations: 0.6141 MB / 434.5 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.1251, allocations: 0 / 434.5 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.394e-05/0.1251, allocations: 15.92 kB / 434.5 MB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.1251, allocations: 0 / 434.5 MB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.343e-05/0.1252, allocations: 27.98 kB / 434.5 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.1252, allocations: 0 / 434.5 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1252, allocations: 3.938 kB / 434.5 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001119/0.1263, allocations: 0.721 MB / 435.2 MB, free: 11.28 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006696/0.127, allocations: 0.4922 MB / 435.7 MB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.668e-05/0.1271, allocations: 20 kB / 435.7 MB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001702/0.1273, allocations: 15.98 kB / 435.8 MB, free: 10.73 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001666/0.1274, allocations: 55.89 kB / 435.8 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001202/0.1275, allocations: 115.9 kB / 435.9 MB, free: 10.56 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0009966/0.1285, allocations: 0.7289 MB / 436.7 MB, free: 9.84 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1285, allocations: 0 / 436.7 MB, free: 9.84 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003738/0.1289, allocations: 95.89 kB / 436.8 MB, free: 9.746 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.001538/0.1304, allocations: 1.294 MB / 438 MB, free: 8.395 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008658/0.1313, allocations: 0.5326 MB / 438.6 MB, free: 7.812 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.1313, allocations: 0 / 438.6 MB, free: 7.812 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004803/0.1318, allocations: 393.5 kB / 439 MB, free: 7.379 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008346/0.1326, allocations: 200.4 kB / 439.2 MB, free: 7.195 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006579/0.1392, allocations: 4.531 MB / 443.7 MB, free: 2.527 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007594/0.14, allocations: 0.979 MB / 444.7 MB, free: 1.52 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003795/0.1404, allocations: 161.1 kB / 444.8 MB, free: 1.363 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000242/0.1406, allocations: 131.2 kB / 445 MB, free: 1.234 MB / 366.1 MB Notification: Performance of SimCode: time 7.51e-07/0.1406, allocations: 0 / 445 MB, free: 1.234 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2032/0.3438, allocations: 10.32 MB / 455.3 MB, free: 30.2 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.187/8.531, allocations: 3.438 kB / 455.3 MB, free: 30.2 MB / 366.1 MB " [Timeout remaining time 651] (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: 10.823779558995739] 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.655824440997094 8.666678575 8.553461419 Calling exit ...