Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008516/0.0008516, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009797/0.0009797, allocations: 174.3 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8663/0.8663, allocations: 177.1 MB / 204.3 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.854e-06/1.854e-06, allocations: 0 / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.65e-05/1.835e-05, allocations: 2.281 kB / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002187/0.002206, allocations: 2.017 MB / 326.6 MB, free: 13.9 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001921/0.004127, allocations: 1.01 MB / 327.6 MB, free: 12.88 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.484e-05/0.004211, allocations: 0 / 327.6 MB, free: 12.88 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001514/0.004363, allocations: 35.66 kB / 327.6 MB, free: 12.85 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 8.268e-05/0.004445, allocations: 59.5 kB / 327.7 MB, free: 12.79 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003273/0.004773, allocations: 131.7 kB / 327.8 MB, free: 12.66 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003398/0.005113, allocations: 411 kB / 328.2 MB, free: 12.26 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001653/0.005278, allocations: 71.59 kB / 328.3 MB, free: 12.19 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000697/0.005975, allocations: 1.029 MB / 329.3 MB, free: 11.16 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001783/0.006153, allocations: 175.5 kB / 329.5 MB, free: 10.98 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.497e-05/0.006208, allocations: 36 kB / 329.5 MB, free: 10.95 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.454e-05/0.006253, allocations: 36 kB / 329.6 MB, free: 10.91 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001158/0.006369, allocations: 163.4 kB / 329.7 MB, free: 10.75 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001189/0.006487, allocations: 143.4 kB / 329.9 MB, free: 10.61 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005944/0.007082, allocations: 0.9813 MB / 330.8 MB, free: 9.629 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.007086, allocations: 4 kB / 330.8 MB, free: 9.625 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.007088, allocations: 0 / 330.8 MB, free: 9.625 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.642e-06/0.007094, allocations: 4 kB / 330.8 MB, free: 9.621 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.0008164/0.007911, allocations: 1.066 MB / 331.9 MB, free: 8.5 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.618e-05/0.007947, allocations: 12.03 kB / 331.9 MB, free: 8.488 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.451e-05/0.008001, allocations: 54.73 kB / 332 MB, free: 8.426 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.602e-05/0.008077, allocations: 84.42 kB / 332.1 MB, free: 8.344 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000306/0.008383, allocations: 378.1 kB / 332.4 MB, free: 7.949 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.837e-05/0.008412, allocations: 20.31 kB / 332.4 MB, free: 7.93 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.354e-05/0.008445, allocations: 20.36 kB / 332.5 MB, free: 7.91 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004558/0.008901, allocations: 428.6 kB / 332.9 MB, free: 7.461 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.407e-06/0.00891, allocations: 4.172 kB / 332.9 MB, free: 7.457 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.72e-05/0.008938, allocations: 24.06 kB / 332.9 MB, free: 7.434 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.632e-06/0.008944, allocations: 4 kB / 332.9 MB, free: 7.43 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003377/0.009282, allocations: 342.7 kB / 333.3 MB, free: 7.07 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008438/0.01013, allocations: 0.7801 MB / 334 MB, free: 6.246 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005911/0.01072, allocations: 305.2 kB / 334.3 MB, free: 5.914 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002043/0.01092, allocations: 247.6 kB / 334.6 MB, free: 5.645 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.355e-05/0.01094, allocations: 8.031 kB / 334.6 MB, free: 5.637 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004514/0.0114, allocations: 0.5174 MB / 335.1 MB, free: 5.059 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.814e-06/0.0114, allocations: 0 / 335.1 MB, free: 5.059 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.000949/0.01235, allocations: 0.9997 MB / 336.1 MB, free: 3.98 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.806e-05/0.01242, allocations: 174.2 kB / 336.3 MB, free: 3.773 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008224/0.01324, allocations: 1.008 MB / 337.3 MB, free: 2.75 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.82e-05/0.01327, allocations: 33.7 kB / 337.3 MB, free: 2.711 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.377e-05/0.01335, allocations: 153.9 kB / 337.5 MB, free: 2.559 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.192e-05/0.0134, allocations: 59.58 kB / 337.5 MB, free: 2.5 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001355/0.01354, allocations: 161.3 kB / 337.7 MB, free: 2.336 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.009e-05/0.01363, allocations: 342.8 kB / 338 MB, free: 1.992 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002087/0.01384, allocations: 254.7 kB / 338.3 MB, free: 1.719 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002267/0.01406, allocations: 303 kB / 338.6 MB, free: 1.383 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003654/0.01443, allocations: 489.8 kB / 339 MB, free: 0.8359 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.01443, allocations: 7.875 kB / 339 MB, free: 0.8281 MB / 298.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006134/0.01505, allocations: 0.7254 MB / 339.8 MB, free: 48 kB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.967e-05/0.01513, allocations: 142.7 kB / 339.9 MB, free: 15.88 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.181e-06/0.01513, allocations: 0 / 339.9 MB, free: 15.88 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.554e-05/0.01515, allocations: 4 kB / 339.9 MB, free: 15.88 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.816e-05/0.01521, allocations: 11.98 kB / 339.9 MB, free: 15.87 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.601e-06/0.01522, allocations: 8.062 kB / 339.9 MB, free: 15.86 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001336/0.01535, allocations: 23.94 kB / 339.9 MB, free: 15.84 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.832e-05/0.01543, allocations: 107.9 kB / 340.1 MB, free: 15.73 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.0004095/0.01584, allocations: 0.5379 MB / 340.6 MB, free: 15.16 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.896e-05/0.01591, allocations: 79.53 kB / 340.7 MB, free: 15.08 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001306/0.01604, allocations: 134.5 kB / 340.8 MB, free: 14.94 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.01604, allocations: 4 kB / 340.8 MB, free: 14.94 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.688e-06/0.01605, allocations: 0 / 340.8 MB, free: 14.94 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.01605, allocations: 0 / 340.8 MB, free: 14.94 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006648/0.01672, allocations: 0.5351 MB / 341.3 MB, free: 14.36 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.01672, allocations: 4 kB / 341.3 MB, free: 14.36 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.966e-05/0.01675, allocations: 12.12 kB / 341.4 MB, free: 14.34 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.01675, allocations: 0 / 341.4 MB, free: 14.34 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.243e-05/0.01678, allocations: 27.98 kB / 341.4 MB, free: 14.32 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.522e-06/0.01679, allocations: 0 / 341.4 MB, free: 14.32 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.01679, allocations: 7.969 kB / 341.4 MB, free: 14.31 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007076/0.0175, allocations: 0.8524 MB / 342.2 MB, free: 13.39 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004946/0.01799, allocations: 0.4891 MB / 342.7 MB, free: 12.89 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.853e-05/0.01805, allocations: 24 kB / 342.8 MB, free: 12.87 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.729e-05/0.01815, allocations: 19.98 kB / 342.8 MB, free: 12.85 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001158/0.01826, allocations: 43.95 kB / 342.8 MB, free: 12.8 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.995e-05/0.01833, allocations: 124 kB / 342.9 MB, free: 12.68 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.00057/0.0189, allocations: 0.729 MB / 343.7 MB, free: 11.96 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.0189, allocations: 3.938 kB / 343.7 MB, free: 11.95 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000229/0.01913, allocations: 87.94 kB / 343.8 MB, free: 11.87 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.0009172/0.02005, allocations: 1.433 MB / 345.2 MB, free: 10.36 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006201/0.02067, allocations: 0.8153 MB / 346 MB, free: 9.441 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.02067, allocations: 3.938 kB / 346 MB, free: 9.438 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003315/0.021, allocations: 0.5159 MB / 346.5 MB, free: 8.848 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004902/0.02149, allocations: 201.6 kB / 346.7 MB, free: 8.664 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004431/0.02592, allocations: 5.236 MB / 352 MB, free: 3.16 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003191/0.02624, allocations: 365.3 kB / 352.3 MB, free: 2.781 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002457/0.02649, allocations: 161.1 kB / 352.5 MB, free: 2.621 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001644/0.02665, allocations: 140.3 kB / 352.6 MB, free: 2.484 MB / 314.7 MB Notification: Performance of SimCode: time 1.082e-06/0.02665, allocations: 0 / 352.6 MB, free: 2.484 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0237/0.05036, allocations: 11.6 MB / 364.2 MB, free: 7.105 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.79/6.841, allocations: 7.938 kB / 364.2 MB, free: 7.098 MB / 330.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Digital_Examples_HalfAdder_fmu --startTime=0 --stopTime=5 --stepSize=0.000998004 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Digital_Examples_HalfAdder.fmu > Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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.465228093788028]