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) 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 4.0.0+maint.om/package.mo", uses=false) 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_4_0_0_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.001593/0.001593, allocations: 102.4 kB / 16.51 MB, free: 6.656 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.001225/0.001225, allocations: 195.1 kB / 17.42 MB, free: 6.062 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.489/1.489, allocations: 222.9 MB / 241.1 MB, free: 15.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001853/0.001853, allocations: 46.75 kB / 300.1 MB, free: 6.238 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1651/0.167, allocations: 49.46 MB / 349.5 MB, free: 4.77 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.004196/0.1713, allocations: 2.153 MB / 351.7 MB, free: 2.598 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002363/0.1736, allocations: 1.037 MB / 352.7 MB, free: 1.555 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001655/0.1738, allocations: 4 kB / 352.7 MB, free: 1.551 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001964/0.174, allocations: 23.78 kB / 352.7 MB, free: 1.527 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00016/0.1743, allocations: 47.64 kB / 352.8 MB, free: 1.48 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003931/0.1747, allocations: 107.9 kB / 352.9 MB, free: 1.375 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003978/0.1751, allocations: 351 kB / 353.2 MB, free: 1.031 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000225/0.1753, allocations: 103.1 kB / 353.3 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008929/0.1762, allocations: 0.9124 MB / 354.2 MB, free: 12 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002174/0.1764, allocations: 183.2 kB / 354.4 MB, free: 15.83 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.335e-05/0.1765, allocations: 12 kB / 354.4 MB, free: 15.82 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.072e-05/0.1766, allocations: 12 kB / 354.4 MB, free: 15.81 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001553/0.1768, allocations: 155.4 kB / 354.6 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002688/0.177, allocations: 266.1 kB / 354.8 MB, free: 15.39 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008078/0.1779, allocations: 0.9385 MB / 355.8 MB, free: 14.45 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.1779, allocations: 0 / 355.8 MB, free: 14.45 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.1779, allocations: 4 kB / 355.8 MB, free: 14.45 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.516e-05/0.1779, allocations: 0 / 355.8 MB, free: 14.45 MB / 302.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.001411/0.1793, allocations: 1.118 MB / 356.9 MB, free: 13.25 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.878e-05/0.1794, allocations: 8.031 kB / 356.9 MB, free: 13.25 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.891e-05/0.1795, allocations: 50.73 kB / 357 MB, free: 13.19 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001316/0.1796, allocations: 80 kB / 357 MB, free: 13.11 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004773/0.1801, allocations: 436 kB / 357.5 MB, free: 12.64 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.259e-05/0.1801, allocations: 12.38 kB / 357.5 MB, free: 12.63 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.324e-05/0.1802, allocations: 20.38 kB / 357.5 MB, free: 12.61 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006046/0.1808, allocations: 309.5 kB / 357.8 MB, free: 12.3 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.075e-05/0.1808, allocations: 0 / 357.8 MB, free: 12.3 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.437e-05/0.1809, allocations: 11.94 kB / 357.8 MB, free: 12.29 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.565e-06/0.1809, allocations: 7.984 kB / 357.8 MB, free: 12.29 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004682/0.1814, allocations: 207.9 kB / 358 MB, free: 12.08 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001308/0.1827, allocations: 0.8861 MB / 358.9 MB, free: 11.14 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004475/0.1831, allocations: 218.5 kB / 359.1 MB, free: 10.92 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002792/0.1834, allocations: 152.8 kB / 359.3 MB, free: 10.77 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.646e-05/0.1835, allocations: 8 kB / 359.3 MB, free: 10.76 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005595/0.184, allocations: 397.9 kB / 359.7 MB, free: 10.34 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.583e-06/0.184, allocations: 0 / 359.7 MB, free: 10.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001405/0.1855, allocations: 0.7335 MB / 360.4 MB, free: 9.57 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.668e-05/0.1856, allocations: 174.2 kB / 360.6 MB, free: 9.363 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001323/0.1869, allocations: 1 MB / 361.6 MB, free: 8.352 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.539e-05/0.1869, allocations: 37.64 kB / 361.6 MB, free: 8.309 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001295/0.1871, allocations: 157.8 kB / 361.8 MB, free: 8.152 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.681e-05/0.1872, allocations: 59.25 kB / 361.8 MB, free: 8.094 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002079/0.1874, allocations: 161.1 kB / 362 MB, free: 7.93 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001115/0.1875, allocations: 338.8 kB / 362.3 MB, free: 7.59 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002692/0.1878, allocations: 123.9 kB / 362.4 MB, free: 7.469 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000277/0.1881, allocations: 164.2 kB / 362.6 MB, free: 7.293 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005469/0.1886, allocations: 481.7 kB / 363.1 MB, free: 6.758 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.1886, allocations: 0 / 363.1 MB, free: 6.758 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009342/0.1896, allocations: 0.5781 MB / 363.6 MB, free: 6.148 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.53e-05/0.1897, allocations: 134.8 kB / 363.8 MB, free: 5.992 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.281e-06/0.1897, allocations: 0 / 363.8 MB, free: 5.992 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.382e-05/0.1897, allocations: 4 kB / 363.8 MB, free: 5.988 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.025e-05/0.1898, allocations: 23.98 kB / 363.8 MB, free: 5.965 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.57e-06/0.1898, allocations: 0 / 363.8 MB, free: 5.965 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002635/0.1901, allocations: 35.88 kB / 363.8 MB, free: 5.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001112/0.1902, allocations: 107.9 kB / 363.9 MB, free: 5.824 MB / 302.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.0005449/0.1907, allocations: 0.5375 MB / 364.5 MB, free: 5.254 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.695e-05/0.1908, allocations: 79.06 kB / 364.6 MB, free: 5.176 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001872/0.191, allocations: 126.4 kB / 364.7 MB, free: 5.047 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/0.191, allocations: 7.984 kB / 364.7 MB, free: 5.039 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.191, allocations: 0 / 364.7 MB, free: 5.039 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.1911, allocations: 0 / 364.7 MB, free: 5.039 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006636/0.1917, allocations: 0.6296 MB / 365.3 MB, free: 4.359 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.1917, allocations: 0 / 365.3 MB, free: 4.359 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.437e-05/0.1918, allocations: 11.98 kB / 365.3 MB, free: 4.348 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.1918, allocations: 0 / 365.3 MB, free: 4.348 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.934e-05/0.1918, allocations: 23.98 kB / 365.4 MB, free: 4.324 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.1919, allocations: 4 kB / 365.4 MB, free: 4.32 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.1919, allocations: 0 / 365.4 MB, free: 4.32 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001039/0.1929, allocations: 0.7149 MB / 366.1 MB, free: 3.562 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00061/0.1935, allocations: 499.7 kB / 366.6 MB, free: 3.055 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001038/0.1936, allocations: 20 kB / 366.6 MB, free: 3.035 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000209/0.1939, allocations: 27.88 kB / 366.6 MB, free: 3.008 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001505/0.194, allocations: 51.95 kB / 366.7 MB, free: 2.957 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001142/0.1941, allocations: 120 kB / 366.8 MB, free: 2.84 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0008964/0.195, allocations: 0.7212 MB / 367.5 MB, free: 2.121 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.195, allocations: 3.938 kB / 367.5 MB, free: 2.117 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003551/0.1954, allocations: 91.94 kB / 367.6 MB, free: 2.027 MB / 302.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.00136/0.1968, allocations: 1.289 MB / 368.9 MB, free: 0.6836 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.1557/0.3525, allocations: 0.6485 MB / 369.5 MB, free: 26.29 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.244e-06/0.3526, allocations: 0 / 369.5 MB, free: 26.29 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001013/0.3536, allocations: 0.53 MB / 370.1 MB, free: 26.04 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001249/0.3549, allocations: 182.5 kB / 370.2 MB, free: 26.04 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006791/0.3617, allocations: 4.668 MB / 374.9 MB, free: 23.47 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005573/0.3623, allocations: 0.9623 MB / 375.9 MB, free: 22.7 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003891/0.3627, allocations: 163.1 kB / 376 MB, free: 22.59 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002341/0.3629, allocations: 132.5 kB / 376.2 MB, free: 22.5 MB / 302.1 MB Notification: Performance of SimCode: time 1.152e-06/0.3629, allocations: 0 / 376.2 MB, free: 22.5 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02277/0.3857, allocations: 9.721 MB / 385.9 MB, free: 19.68 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001397/0.3859, allocations: 195.4 kB / 386.1 MB, free: 19.43 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.067/2.453, allocations: 1.688 kB / 386.1 MB, free: 19.43 MB / 302.1 MB (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 --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) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches