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.000947/0.000947, allocations: 76.36 kB / 20.67 MB, free: 3.895 MB / 18.57 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.000945/0.000945, allocations: 160.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8672/0.8672, allocations: 177 MB / 204.1 MB, free: 5.762 MB / 186.7 MB " [Timeout remaining time 179] 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.673e-06/1.673e-06, allocations: 0 / 324.5 MB, free: 15.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.532e-05/2.699e-05, allocations: 2.984 kB / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002877/0.002904, allocations: 2.019 MB / 326.5 MB, free: 13.88 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0018/0.004703, allocations: 1.002 MB / 327.5 MB, free: 12.87 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.837e-05/0.004802, allocations: 3.938 kB / 327.5 MB, free: 12.87 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001515/0.004953, allocations: 35.66 kB / 327.6 MB, free: 12.83 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 8.817e-05/0.005041, allocations: 59.45 kB / 327.6 MB, free: 12.77 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004568/0.005498, allocations: 139.7 kB / 327.8 MB, free: 12.64 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000385/0.005883, allocations: 399 kB / 328.2 MB, free: 12.25 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001678/0.006051, allocations: 75.59 kB / 328.2 MB, free: 12.17 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007729/0.006824, allocations: 1.029 MB / 329.3 MB, free: 11.14 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00019/0.007014, allocations: 175.5 kB / 329.4 MB, free: 10.97 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.103e-05/0.007065, allocations: 32 kB / 329.5 MB, free: 10.94 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.397e-05/0.007119, allocations: 36 kB / 329.5 MB, free: 10.9 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000123/0.007242, allocations: 171.3 kB / 329.7 MB, free: 10.73 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001261/0.007368, allocations: 143.4 kB / 329.8 MB, free: 10.59 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007555/0.008123, allocations: 0.9891 MB / 330.8 MB, free: 9.602 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.795e-06/0.008126, allocations: 0 / 330.8 MB, free: 9.602 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.008127, allocations: 0 / 330.8 MB, free: 9.602 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.343e-05/0.008141, allocations: 0 / 330.8 MB, free: 9.602 MB / 298.7 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.0009828/0.009124, allocations: 1.063 MB / 331.9 MB, free: 8.48 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.8e-05/0.009162, allocations: 11.98 kB / 331.9 MB, free: 8.469 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.862e-05/0.00921, allocations: 58.67 kB / 331.9 MB, free: 8.402 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.028e-05/0.009301, allocations: 84.42 kB / 332 MB, free: 8.32 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000312/0.009613, allocations: 374.2 kB / 332.4 MB, free: 7.93 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.83e-05/0.009641, allocations: 20.38 kB / 332.4 MB, free: 7.91 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.35e-05/0.009674, allocations: 20.38 kB / 332.4 MB, free: 7.891 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004481/0.01012, allocations: 424.6 kB / 332.8 MB, free: 7.445 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.686e-06/0.01013, allocations: 192 / 332.8 MB, free: 7.445 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.76e-05/0.01016, allocations: 16.11 kB / 332.8 MB, free: 7.43 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.033e-06/0.01017, allocations: 7.984 kB / 332.9 MB, free: 7.422 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003299/0.0105, allocations: 350.6 kB / 333.2 MB, free: 7.055 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001279/0.01177, allocations: 0.7802 MB / 334 MB, free: 6.23 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003643/0.01214, allocations: 309.2 kB / 334.3 MB, free: 5.895 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000199/0.01234, allocations: 247.6 kB / 334.5 MB, free: 5.625 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.719e-05/0.01236, allocations: 0 / 334.5 MB, free: 5.625 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00046/0.01282, allocations: 0.5203 MB / 335 MB, free: 5.043 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.112e-06/0.01282, allocations: 0 / 335 MB, free: 5.043 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.0009143/0.01373, allocations: 1.002 MB / 336 MB, free: 3.961 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.784e-05/0.0138, allocations: 178.2 kB / 336.2 MB, free: 3.75 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008127/0.01461, allocations: 1.004 MB / 337.2 MB, free: 2.73 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.898e-05/0.01464, allocations: 33.7 kB / 337.2 MB, free: 2.691 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.104e-05/0.01472, allocations: 161.8 kB / 337.4 MB, free: 2.531 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.808e-05/0.01477, allocations: 59.53 kB / 337.5 MB, free: 2.473 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001432/0.01491, allocations: 165.3 kB / 337.6 MB, free: 2.305 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.736e-05/0.015, allocations: 330.8 kB / 338 MB, free: 1.973 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002067/0.01521, allocations: 262.7 kB / 338.2 MB, free: 1.691 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002123/0.01542, allocations: 291 kB / 338.5 MB, free: 1.367 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003682/0.01579, allocations: 497.7 kB / 339 MB, free: 0.8125 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.539e-06/0.01579, allocations: 7.938 kB / 339 MB, free: 0.8047 MB / 298.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006145/0.01641, allocations: 0.7293 MB / 339.7 MB, free: 20 kB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.971e-05/0.01649, allocations: 134.8 kB / 339.8 MB, free: 15.86 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.01649, allocations: 0 / 339.8 MB, free: 15.86 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.557e-05/0.01651, allocations: 4 kB / 339.8 MB, free: 15.86 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.784e-05/0.01657, allocations: 23.92 kB / 339.9 MB, free: 15.84 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.132e-06/0.01658, allocations: 0 / 339.9 MB, free: 15.84 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001378/0.01672, allocations: 24 kB / 339.9 MB, free: 15.81 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.25e-05/0.01679, allocations: 107.9 kB / 340 MB, free: 15.71 MB / 314.7 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.0003906/0.01718, allocations: 0.5418 MB / 340.5 MB, free: 15.13 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.882e-05/0.01725, allocations: 79.53 kB / 340.6 MB, free: 15.05 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001273/0.01738, allocations: 122.5 kB / 340.7 MB, free: 14.93 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.01738, allocations: 7.969 kB / 340.7 MB, free: 14.92 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.119e-06/0.01739, allocations: 4 kB / 340.8 MB, free: 14.91 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.01739, allocations: 0 / 340.8 MB, free: 14.91 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004516/0.01784, allocations: 0.5468 MB / 341.3 MB, free: 14.32 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.01784, allocations: 0 / 341.3 MB, free: 14.32 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.583e-05/0.01787, allocations: 8 kB / 341.3 MB, free: 14.32 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.01787, allocations: 0 / 341.3 MB, free: 14.32 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.222e-05/0.01791, allocations: 23.98 kB / 341.3 MB, free: 14.29 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.415e-06/0.01791, allocations: 0 / 341.3 MB, free: 14.29 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.676e-06/0.01791, allocations: 7.938 kB / 341.3 MB, free: 14.29 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007386/0.01865, allocations: 0.8417 MB / 342.2 MB, free: 13.38 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004862/0.01914, allocations: 0.5007 MB / 342.7 MB, free: 12.86 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.281e-05/0.0192, allocations: 24 kB / 342.7 MB, free: 12.84 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.07e-05/0.01929, allocations: 19.98 kB / 342.7 MB, free: 12.82 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000115/0.0194, allocations: 51.95 kB / 342.8 MB, free: 12.77 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.485e-05/0.01947, allocations: 112 kB / 342.9 MB, free: 12.66 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005755/0.02004, allocations: 0.729 MB / 343.6 MB, free: 11.93 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.02004, allocations: 3.938 kB / 343.6 MB, free: 11.93 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002409/0.02028, allocations: 91.94 kB / 343.7 MB, free: 11.84 MB / 314.7 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.001051/0.02134, allocations: 1.426 MB / 345.1 MB, free: 10.34 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006113/0.02195, allocations: 0.8114 MB / 345.9 MB, free: 9.426 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.02195, allocations: 0 / 345.9 MB, free: 9.426 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003179/0.02227, allocations: 0.5276 MB / 346.5 MB, free: 8.824 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004782/0.02275, allocations: 208.4 kB / 346.7 MB, free: 8.637 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004532/0.02728, allocations: 5.241 MB / 351.9 MB, free: 3.129 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003046/0.02758, allocations: 369.3 kB / 352.3 MB, free: 2.746 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002449/0.02783, allocations: 165.2 kB / 352.4 MB, free: 2.582 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001576/0.02798, allocations: 132.3 kB / 352.6 MB, free: 2.453 MB / 314.7 MB Notification: Performance of SimCode: time 1.122e-06/0.02799, allocations: 0 / 352.6 MB, free: 2.453 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02374/0.05172, allocations: 11.6 MB / 364.2 MB, free: 7.023 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.83/6.881, allocations: 11.48 kB / 364.2 MB, free: 7.016 MB / 330.7 MB " [Timeout remaining time 653] (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] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.491713079623878]