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.0009715/0.0009716, allocations: 101.1 kB / 17.16 MB, free: 6.316 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.0009515/0.0009515, allocations: 190 kB / 18.07 MB, free: 5.414 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.502/1.502, allocations: 205.1 MB / 223.9 MB, free: 12.38 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.001074/0.001074, allocations: 55.92 kB / 280.1 MB, free: 3.477 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07984/0.08092, allocations: 46.62 MB / 326.7 MB, free: 4.781 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003215/0.08417, allocations: 2.156 MB / 328.9 MB, free: 2.605 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002044/0.08624, allocations: 1.077 MB / 329.9 MB, free: 1.52 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000153/0.08641, allocations: 3.938 kB / 329.9 MB, free: 1.516 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001855/0.08663, allocations: 27.78 kB / 330 MB, free: 1.488 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001454/0.08679, allocations: 43.64 kB / 330 MB, free: 1.445 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003651/0.08716, allocations: 111.9 kB / 330.1 MB, free: 1.336 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003861/0.08756, allocations: 343.1 kB / 330.4 MB, free: 1 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002024/0.08777, allocations: 103.1 kB / 330.5 MB, free: 0.9062 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000834/0.08861, allocations: 0.9201 MB / 331.5 MB, free: 15.98 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002285/0.08885, allocations: 175.2 kB / 331.6 MB, free: 15.81 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.124e-05/0.08894, allocations: 16 kB / 331.7 MB, free: 15.8 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.54e-05/0.08902, allocations: 12 kB / 331.7 MB, free: 15.79 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001563/0.08918, allocations: 159.3 kB / 331.8 MB, free: 15.63 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002427/0.08943, allocations: 262.1 kB / 332.1 MB, free: 15.37 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007028/0.09014, allocations: 0.9346 MB / 333 MB, free: 14.43 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.09016, allocations: 0 / 333 MB, free: 14.43 MB / 286.1 MB Notification: Performance of FrontEnd: time 6.51e-07/0.09016, allocations: 0 / 333 MB, free: 14.43 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.725e-05/0.09019, allocations: 4 kB / 333 MB, free: 14.43 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.001378/0.09157, allocations: 1.122 MB / 334.1 MB, free: 13.23 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.193e-05/0.09162, allocations: 12.03 kB / 334.1 MB, free: 13.22 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.407e-05/0.09171, allocations: 62.67 kB / 334.2 MB, free: 13.15 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001285/0.09185, allocations: 80 kB / 334.3 MB, free: 13.07 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004379/0.09229, allocations: 428 kB / 334.7 MB, free: 12.61 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.938e-05/0.09234, allocations: 16.38 kB / 334.7 MB, free: 12.6 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.2e-05/0.0924, allocations: 24.36 kB / 334.7 MB, free: 12.57 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00059/0.09299, allocations: 313.2 kB / 335.1 MB, free: 12.26 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.406e-06/0.09301, allocations: 4 kB / 335.1 MB, free: 12.26 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.144e-05/0.09306, allocations: 12 kB / 335.1 MB, free: 12.25 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.314e-06/0.09307, allocations: 4 kB / 335.1 MB, free: 12.24 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004092/0.09349, allocations: 203.8 kB / 335.3 MB, free: 12.04 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001211/0.09471, allocations: 0.894 MB / 336.2 MB, free: 11.1 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000419/0.09514, allocations: 214.5 kB / 336.4 MB, free: 10.88 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002646/0.09541, allocations: 160.8 kB / 336.5 MB, free: 10.72 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.438e-05/0.09545, allocations: 0 / 336.5 MB, free: 10.72 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005191/0.09597, allocations: 389.8 kB / 336.9 MB, free: 10.3 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.343e-06/0.09599, allocations: 0 / 336.9 MB, free: 10.3 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.001227/0.09722, allocations: 0.7297 MB / 337.6 MB, free: 9.539 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.835e-05/0.09731, allocations: 178.2 kB / 337.8 MB, free: 9.328 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001111/0.09842, allocations: 1.004 MB / 338.8 MB, free: 8.312 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.244e-05/0.09848, allocations: 37.7 kB / 338.9 MB, free: 8.27 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.428e-05/0.09858, allocations: 149.8 kB / 339 MB, free: 8.121 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.805e-05/0.09865, allocations: 67.28 kB / 339.1 MB, free: 8.055 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000186/0.09884, allocations: 165 kB / 339.2 MB, free: 7.887 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001036/0.09895, allocations: 342.8 kB / 339.6 MB, free: 7.543 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002639/0.09922, allocations: 123.9 kB / 339.7 MB, free: 7.422 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002567/0.09949, allocations: 160.2 kB / 339.8 MB, free: 7.25 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005223/0.1, allocations: 477.7 kB / 340.3 MB, free: 6.719 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.1, allocations: 0 / 340.3 MB, free: 6.719 MB / 286.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008447/0.1009, allocations: 0.5819 MB / 340.9 MB, free: 6.105 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.29e-05/0.101, allocations: 134.8 kB / 341 MB, free: 5.949 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.101, allocations: 0 / 341 MB, free: 5.949 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.243e-05/0.101, allocations: 0 / 341 MB, free: 5.949 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.663e-05/0.1011, allocations: 15.98 kB / 341 MB, free: 5.934 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.955e-06/0.1011, allocations: 8.062 kB / 341 MB, free: 5.926 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002459/0.1013, allocations: 35.83 kB / 341.1 MB, free: 5.891 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000106/0.1015, allocations: 115.9 kB / 341.2 MB, free: 5.777 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,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.0005115/0.102, allocations: 0.5298 MB / 341.7 MB, free: 5.211 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.281e-05/0.1021, allocations: 83.06 kB / 341.8 MB, free: 5.129 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001692/0.1023, allocations: 126.4 kB / 341.9 MB, free: 4.992 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.1023, allocations: 0 / 341.9 MB, free: 4.992 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.1023, allocations: 0 / 341.9 MB, free: 4.992 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.455e-06/0.1023, allocations: 4 kB / 341.9 MB, free: 4.988 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006139/0.1029, allocations: 0.6296 MB / 342.6 MB, free: 4.309 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.1029, allocations: 8.031 kB / 342.6 MB, free: 4.301 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.409e-05/0.103, allocations: 15.92 kB / 342.6 MB, free: 4.285 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.103, allocations: 0 / 342.6 MB, free: 4.285 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.674e-05/0.103, allocations: 28.11 kB / 342.6 MB, free: 4.258 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.626e-06/0.103, allocations: 7.984 kB / 342.6 MB, free: 4.25 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.103, allocations: 4 kB / 342.6 MB, free: 4.246 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009727/0.104, allocations: 0.694 MB / 343.3 MB, free: 3.508 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005484/0.1046, allocations: 0.4919 MB / 343.8 MB, free: 2.996 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.741e-05/0.1047, allocations: 23.94 kB / 343.8 MB, free: 2.973 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000194/0.1049, allocations: 27.89 kB / 343.9 MB, free: 2.945 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001404/0.105, allocations: 51.94 kB / 343.9 MB, free: 2.895 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001043/0.1051, allocations: 119.8 kB / 344 MB, free: 2.777 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0008097/0.106, allocations: 0.7329 MB / 344.8 MB, free: 2.047 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.106, allocations: 0 / 344.8 MB, free: 2.047 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000311/0.1063, allocations: 83.94 kB / 344.8 MB, free: 1.965 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 (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.001383/0.1077, allocations: 1.286 MB / 346.1 MB, free: 0.625 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0008304/0.1085, allocations: 0.6498 MB / 346.8 MB, free: 15.93 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.1085, allocations: 0 / 346.8 MB, free: 15.93 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005037/0.109, allocations: 0.5249 MB / 347.3 MB, free: 15.35 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007283/0.1098, allocations: 191.3 kB / 347.5 MB, free: 15.17 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005494/0.1153, allocations: 4.659 MB / 352.1 MB, free: 10.36 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006655/0.116, allocations: 0.9678 MB / 353.1 MB, free: 9.367 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003035/0.1163, allocations: 161.1 kB / 353.3 MB, free: 9.211 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000229/0.1165, allocations: 131.6 kB / 353.4 MB, free: 9.082 MB / 302.1 MB Notification: Performance of SimCode: time 3.6e-07/0.1165, allocations: 0 / 353.4 MB, free: 9.082 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.816/4.933, allocations: 9.709 MB / 363.1 MB, free: 15.3 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002956/4.933, allocations: 198.2 kB / 363.3 MB, free: 15.04 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.557/8.49, allocations: 3.938 kB / 363.3 MB, free: 15.04 MB / 318.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/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) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches