Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009703/0.0009703, allocations: 95.31 kB / 16.95 MB, free: 5.922 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009801/0.0009803, allocations: 188.3 kB / 17.84 MB, free: 5.605 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.872/1.872, allocations: 205.4 MB / 224 MB, free: 13.15 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004718/0.0004719, allocations: 12 kB / 280.9 MB, free: 3.645 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1038, allocations: 47.57 MB / 328.4 MB, free: 3.996 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002428/0.1062, allocations: 1.744 MB / 330.2 MB, free: 2.238 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002189/0.1085, allocations: 1.007 MB / 331.2 MB, free: 1.223 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001411/0.1087, allocations: 3.938 kB / 331.2 MB, free: 1.219 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001623/0.1088, allocations: 23.78 kB / 331.2 MB, free: 1.195 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001223/0.109, allocations: 51.62 kB / 331.3 MB, free: 1.145 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004164/0.1094, allocations: 75.91 kB / 331.3 MB, free: 1.07 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003504/0.1097, allocations: 315.1 kB / 331.7 MB, free: 0.7617 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001944/0.1099, allocations: 93.59 kB / 331.7 MB, free: 0.6719 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008996/0.1109, allocations: 0.7837 MB / 332.5 MB, free: 15.89 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000216/0.1111, allocations: 183.5 kB / 332.7 MB, free: 15.71 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.307e-05/0.1111, allocations: 8 kB / 332.7 MB, free: 15.7 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.866e-05/0.1112, allocations: 12 kB / 332.7 MB, free: 15.69 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001659/0.1114, allocations: 147.5 kB / 332.9 MB, free: 15.54 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000138/0.1115, allocations: 141.3 kB / 333 MB, free: 15.4 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000675/0.1122, allocations: 0.7951 MB / 333.8 MB, free: 14.6 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.521e-06/0.1122, allocations: 0 / 333.8 MB, free: 14.6 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1122, allocations: 0 / 333.8 MB, free: 14.6 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.987e-06/0.1122, allocations: 0 / 333.8 MB, free: 14.6 MB / 286.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.001217/0.1135, allocations: 0.9746 MB / 334.8 MB, free: 13.55 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.215e-05/0.1135, allocations: 8.031 kB / 334.8 MB, free: 13.54 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.975e-05/0.1136, allocations: 54.55 kB / 334.8 MB, free: 13.48 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001232/0.1137, allocations: 79.06 kB / 334.9 MB, free: 13.4 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004899/0.1142, allocations: 403.4 kB / 335.3 MB, free: 12.97 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.981e-05/0.1143, allocations: 23.94 kB / 335.3 MB, free: 12.95 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.936e-05/0.1143, allocations: 16 kB / 335.3 MB, free: 12.93 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006278/0.115, allocations: 301.2 kB / 335.6 MB, free: 12.63 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.068e-05/0.115, allocations: 0 / 335.6 MB, free: 12.63 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.541e-05/0.115, allocations: 16 kB / 335.7 MB, free: 12.61 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.165e-06/0.1151, allocations: 4 kB / 335.7 MB, free: 12.61 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004441/0.1155, allocations: 207.9 kB / 335.9 MB, free: 12.41 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001459/0.117, allocations: 0.8826 MB / 336.7 MB, free: 11.47 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004649/0.1175, allocations: 218.5 kB / 337 MB, free: 11.25 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002677/0.1177, allocations: 152.9 kB / 337.1 MB, free: 11.1 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.719e-05/0.1178, allocations: 7.938 kB / 337.1 MB, free: 11.09 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005922/0.1184, allocations: 389.8 kB / 337.5 MB, free: 10.67 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 2.225e-06/0.1184, allocations: 0 / 337.5 MB, free: 10.67 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.00142/0.1198, allocations: 0.7337 MB / 338.2 MB, free: 9.906 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001385/0.12, allocations: 182.2 kB / 338.4 MB, free: 9.691 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001521/0.1215, allocations: 0.9961 MB / 339.4 MB, free: 8.684 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.467e-05/0.1216, allocations: 37.7 kB / 339.4 MB, free: 8.641 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001474/0.1217, allocations: 153.9 kB / 339.6 MB, free: 8.488 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.291e-05/0.1218, allocations: 55.3 kB / 339.6 MB, free: 8.434 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.178e-05/0.1219, allocations: 8 kB / 339.7 MB, free: 8.426 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002014/0.1221, allocations: 342.8 kB / 340 MB, free: 8.082 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002701/0.1224, allocations: 119.9 kB / 340.1 MB, free: 7.965 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003109/0.1227, allocations: 164.2 kB / 340.3 MB, free: 7.789 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003604/0.123, allocations: 226.7 kB / 340.5 MB, free: 7.543 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.9e-06/0.1231, allocations: 4 kB / 340.5 MB, free: 7.539 MB / 286.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001101/0.1242, allocations: 0.578 MB / 341.1 MB, free: 6.93 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001097/0.1243, allocations: 134.8 kB / 341.2 MB, free: 6.773 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.829e-06/0.1243, allocations: 4 kB / 341.2 MB, free: 6.77 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.603e-05/0.1243, allocations: 3.938 kB / 341.2 MB, free: 6.766 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001048/0.1244, allocations: 15.98 kB / 341.2 MB, free: 6.75 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.939e-06/0.1245, allocations: 3.953 kB / 341.2 MB, free: 6.746 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003291/0.1248, allocations: 35.91 kB / 341.3 MB, free: 6.711 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001264/0.1249, allocations: 119.9 kB / 341.4 MB, free: 6.594 MB / 286.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,a.y,b.y,Adder.AND.G1.auxiliary_n,Adder.XOR.G1.auxiliary_n,$whenCondition1,$whenCondition2,$PRE.Adder.XOR.G1.auxiliary_n,$PRE.Adder.XOR.G2.x,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,$whenCondition3,$whenCondition4,$PRE.Adder.AND.G1.auxiliary_n,$PRE.Adder.AND.G2.x,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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007727/0.1257, allocations: 0.526 MB / 341.9 MB, free: 6.031 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.62e-05/0.1258, allocations: 83.05 kB / 342 MB, free: 5.949 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002318/0.1261, allocations: 130.4 kB / 342.1 MB, free: 5.812 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.951e-06/0.1261, allocations: 4 kB / 342.1 MB, free: 5.809 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.1261, allocations: 4 kB / 342.1 MB, free: 5.805 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.441e-06/0.1261, allocations: 3.953 kB / 342.1 MB, free: 5.801 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007742/0.1269, allocations: 0.618 MB / 342.7 MB, free: 5.133 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.983e-06/0.1269, allocations: 0 / 342.7 MB, free: 5.133 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.24e-05/0.1269, allocations: 15.92 kB / 342.8 MB, free: 5.117 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.887e-06/0.127, allocations: 0 / 342.8 MB, free: 5.117 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.946e-05/0.127, allocations: 27.98 kB / 342.8 MB, free: 5.09 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.925e-06/0.127, allocations: 0 / 342.8 MB, free: 5.09 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.127, allocations: 0 / 342.8 MB, free: 5.09 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001128/0.1282, allocations: 0.7101 MB / 343.5 MB, free: 4.336 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007191/0.1289, allocations: 0.4957 MB / 344 MB, free: 3.82 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001044/0.129, allocations: 20 kB / 344 MB, free: 3.801 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002371/0.1293, allocations: 27.92 kB / 344 MB, free: 3.773 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001759/0.1294, allocations: 55.92 kB / 344.1 MB, free: 3.719 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001283/0.1296, allocations: 119.9 kB / 344.2 MB, free: 3.602 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0009748/0.1306, allocations: 0.725 MB / 344.9 MB, free: 2.879 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1306, allocations: 0 / 344.9 MB, free: 2.879 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004358/0.131, allocations: 99.8 kB / 345 MB, free: 2.781 MB / 286.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00152/0.1325, allocations: 1.274 MB / 346.3 MB, free: 1.453 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0009702/0.1335, allocations: 0.658 MB / 347 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.1335, allocations: 0 / 347 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005667/0.1341, allocations: 0.5366 MB / 347.5 MB, free: 164 kB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000845/0.135, allocations: 175 kB / 347.7 MB, free: 15.99 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006388/0.1414, allocations: 3.1 MB / 350.8 MB, free: 12.82 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008/0.1422, allocations: 0.9717 MB / 351.7 MB, free: 11.82 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004216/0.1427, allocations: 161.1 kB / 351.9 MB, free: 11.67 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002754/0.143, allocations: 131.3 kB / 352 MB, free: 11.54 MB / 302.1 MB Notification: Performance of SimCode: time 1.363e-06/0.143, allocations: 0 / 352 MB, free: 11.54 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02327/0.1663, allocations: 9.051 MB / 361.1 MB, free: 2.453 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002073/0.1665, allocations: 183.6 kB / 361.3 MB, free: 2.211 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.084/2.251, allocations: 0 / 361.3 MB, free: 2.211 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Digital_Examples_HalfAdder_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_HalfAdder.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat does not exist to compare? outputFormat=mat