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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001274/0.001274, allocations: 76.08 kB / 20.67 MB, free: 3.895 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009803/0.0009803, allocations: 153.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8765/0.8765, allocations: 173.4 MB / 200.5 MB, free: 9.43 MB / 186.7 MB " [Timeout remaining time 179] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.773e-06/1.773e-06, allocations: 0 / 318.4 MB, free: 6.375 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.09e-05/1.267e-05, allocations: 6.281 kB / 318.4 MB, free: 6.367 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002306/0.002319, allocations: 1.983 MB / 320.4 MB, free: 4.367 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001641/0.00396, allocations: 0.9706 MB / 321.4 MB, free: 3.391 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.811e-05/0.004058, allocations: 7.938 kB / 321.4 MB, free: 3.383 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001507/0.004209, allocations: 39.64 kB / 321.4 MB, free: 3.344 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 9.235e-05/0.004301, allocations: 63.44 kB / 321.5 MB, free: 3.281 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003803/0.004682, allocations: 131.7 kB / 321.6 MB, free: 3.152 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003706/0.005052, allocations: 403 kB / 322 MB, free: 2.758 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001755/0.005228, allocations: 75.61 kB / 322.1 MB, free: 2.68 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007376/0.005965, allocations: 1.025 MB / 323.1 MB, free: 1.652 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001769/0.006142, allocations: 179.5 kB / 323.3 MB, free: 1.477 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.227e-05/0.006195, allocations: 36 kB / 323.3 MB, free: 1.441 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.577e-05/0.00624, allocations: 36 kB / 323.4 MB, free: 1.406 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001123/0.006353, allocations: 163.4 kB / 323.5 MB, free: 1.246 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001207/0.006473, allocations: 143.4 kB / 323.7 MB, free: 1.105 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005961/0.007069, allocations: 0.9929 MB / 324.7 MB, free: 112 kB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.007073, allocations: 8 kB / 324.7 MB, free: 104 kB / 282.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.007074, allocations: 0 / 324.7 MB, free: 104 kB / 282.7 MB Notification: Performance of Transformations before backend: time 6.583e-06/0.007081, allocations: 0 / 324.7 MB, free: 104 kB / 282.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.0008053/0.007886, allocations: 1.05 MB / 325.7 MB, free: 14.99 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.82e-05/0.007924, allocations: 12.92 kB / 325.7 MB, free: 14.98 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.985e-05/0.007974, allocations: 58.73 kB / 325.8 MB, free: 14.91 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.231e-05/0.008056, allocations: 88.38 kB / 325.9 MB, free: 14.83 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003103/0.008367, allocations: 374.2 kB / 326.2 MB, free: 14.44 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.739e-05/0.008394, allocations: 16.38 kB / 326.2 MB, free: 14.42 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.164e-05/0.008426, allocations: 16.38 kB / 326.3 MB, free: 14.41 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004427/0.008868, allocations: 424.8 kB / 326.7 MB, free: 13.96 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.923e-06/0.008875, allocations: 192 / 326.7 MB, free: 13.96 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.676e-05/0.008902, allocations: 20.11 kB / 326.7 MB, free: 13.94 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.571e-06/0.008908, allocations: 4 kB / 326.7 MB, free: 13.94 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003175/0.009225, allocations: 342.6 kB / 327 MB, free: 13.58 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008405/0.01007, allocations: 0.788 MB / 327.8 MB, free: 12.75 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003277/0.01039, allocations: 309.2 kB / 328.1 MB, free: 12.41 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002029/0.0106, allocations: 247.6 kB / 328.4 MB, free: 12.14 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.945e-05/0.01062, allocations: 7.984 kB / 328.4 MB, free: 12.13 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003984/0.01101, allocations: 0.5102 MB / 328.9 MB, free: 11.56 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.302e-06/0.01102, allocations: 0 / 328.9 MB, free: 11.56 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.0009153/0.01193, allocations: 1.004 MB / 329.9 MB, free: 10.48 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.022e-05/0.01201, allocations: 178.2 kB / 330.1 MB, free: 10.27 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008558/0.01287, allocations: 1.008 MB / 331.1 MB, free: 9.25 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.147e-05/0.0129, allocations: 33.7 kB / 331.1 MB, free: 9.211 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.976e-05/0.01299, allocations: 153.9 kB / 331.3 MB, free: 9.059 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.438e-05/0.01304, allocations: 59.58 kB / 331.3 MB, free: 9 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001358/0.01318, allocations: 165.4 kB / 331.5 MB, free: 8.832 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.089e-05/0.01327, allocations: 338.8 kB / 331.8 MB, free: 8.492 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002151/0.01348, allocations: 254.7 kB / 332.1 MB, free: 8.219 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002488/0.01373, allocations: 314.3 kB / 332.4 MB, free: 7.875 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003963/0.01413, allocations: 489.7 kB / 332.8 MB, free: 7.332 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.24e-06/0.01413, allocations: 11.92 kB / 332.9 MB, free: 7.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006648/0.0148, allocations: 0.7254 MB / 333.6 MB, free: 6.539 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.431e-05/0.01486, allocations: 138.8 kB / 333.7 MB, free: 6.379 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.728e-06/0.01487, allocations: 0 / 333.7 MB, free: 6.379 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.29e-05/0.01488, allocations: 4 kB / 333.7 MB, free: 6.375 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.685e-05/0.01494, allocations: 15.92 kB / 333.7 MB, free: 6.359 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.23e-06/0.01494, allocations: 4 kB / 333.7 MB, free: 6.355 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001184/0.01506, allocations: 27.88 kB / 333.8 MB, free: 6.328 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.528e-05/0.01514, allocations: 107.9 kB / 333.9 MB, free: 6.223 MB / 298.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.0003774/0.01551, allocations: 0.5302 MB / 334.4 MB, free: 5.66 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.385e-05/0.01558, allocations: 83.53 kB / 334.5 MB, free: 5.578 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001224/0.0157, allocations: 130.5 kB / 334.6 MB, free: 5.449 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.774e-06/0.0157, allocations: 0 / 334.6 MB, free: 5.449 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.291e-06/0.01571, allocations: 3.984 kB / 334.6 MB, free: 5.445 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.01571, allocations: 0 / 334.6 MB, free: 5.445 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006103/0.01632, allocations: 0.5352 MB / 335.1 MB, free: 4.867 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.01633, allocations: 4 kB / 335.1 MB, free: 4.863 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.319e-05/0.01636, allocations: 11.94 kB / 335.2 MB, free: 4.852 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/0.01636, allocations: 128 / 335.2 MB, free: 4.852 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.474e-05/0.0164, allocations: 31.98 kB / 335.2 MB, free: 4.82 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.0164, allocations: 0 / 335.2 MB, free: 4.82 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.0164, allocations: 0 / 335.2 MB, free: 4.82 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00081/0.01721, allocations: 0.8494 MB / 336 MB, free: 3.902 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006256/0.01784, allocations: 0.493 MB / 336.5 MB, free: 3.398 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.609e-05/0.0179, allocations: 27.98 kB / 336.6 MB, free: 3.371 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.817e-05/0.018, allocations: 23.98 kB / 336.6 MB, free: 3.348 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000117/0.01812, allocations: 47.89 kB / 336.6 MB, free: 3.301 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.354e-05/0.0182, allocations: 123.8 kB / 336.8 MB, free: 3.18 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0006395/0.01884, allocations: 0.7328 MB / 337.5 MB, free: 2.449 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01884, allocations: 0 / 337.5 MB, free: 2.449 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.00023/0.01907, allocations: 87.95 kB / 337.6 MB, free: 2.363 MB / 298.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.0009758/0.02005, allocations: 1.428 MB / 339 MB, free: 0.8555 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007023/0.02075, allocations: 0.8115 MB / 339.8 MB, free: 15.94 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.02075, allocations: 0 / 339.8 MB, free: 15.94 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003724/0.02112, allocations: 0.5276 MB / 340.3 MB, free: 15.34 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005265/0.02165, allocations: 207.9 kB / 340.5 MB, free: 15.15 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004541/0.02619, allocations: 5.222 MB / 345.8 MB, free: 9.668 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003414/0.02653, allocations: 365.3 kB / 346.1 MB, free: 9.289 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.000219/0.02675, allocations: 169.1 kB / 346.3 MB, free: 9.121 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001657/0.02692, allocations: 136.3 kB / 346.4 MB, free: 8.988 MB / 314.7 MB Notification: Performance of SimCode: time 3.21e-07/0.02692, allocations: 0 / 346.4 MB, free: 8.988 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02352/0.05044, allocations: 11.59 MB / 358 MB, free: 13.62 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.049/7.1, allocations: 9.234 kB / 358 MB, free: 13.61 MB / 330.7 MB " [Timeout remaining time 653] (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 --stepSize=0.000998004 --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) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.766902945004404]