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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001859/0.001859, allocations: 121.3 kB / 18.45 MB, free: 4.617 MB / 14.72 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.002295/0.002295, allocations: 193.2 kB / 21.4 MB, free: 1.684 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.452/1.452, allocations: 207.6 MB / 231.8 MB, free: 4.102 MB / 174.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "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.001908/0.001908, allocations: 63.91 kB / 342.3 MB, free: 10.02 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09428/0.09619, allocations: 49.12 MB / 391.4 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003926/0.1001, allocations: 2.118 MB / 393.5 MB, free: 6.613 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002457/0.1026, allocations: 1.065 MB / 394.6 MB, free: 5.539 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001627/0.1027, allocations: 4 kB / 394.6 MB, free: 5.535 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002037/0.1029, allocations: 35.59 kB / 394.6 MB, free: 5.5 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001636/0.1031, allocations: 55.58 kB / 394.7 MB, free: 5.445 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004493/0.1035, allocations: 127.8 kB / 394.8 MB, free: 5.32 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005478/0.1041, allocations: 391.1 kB / 395.2 MB, free: 4.938 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002189/0.1043, allocations: 83.05 kB / 395.2 MB, free: 4.855 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001079/0.1054, allocations: 0.9708 MB / 396.2 MB, free: 3.883 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003/0.1057, allocations: 199.2 kB / 396.4 MB, free: 3.688 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.642e-05/0.1058, allocations: 36 kB / 396.4 MB, free: 3.652 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.776e-05/0.1059, allocations: 36 kB / 396.5 MB, free: 3.617 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001896/0.1061, allocations: 175.2 kB / 396.6 MB, free: 3.445 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002982/0.1064, allocations: 290.1 kB / 396.9 MB, free: 3.16 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001014/0.1074, allocations: 0.9766 MB / 397.9 MB, free: 2.18 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.1074, allocations: 0 / 397.9 MB, free: 2.18 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.1074, allocations: 0 / 397.9 MB, free: 2.18 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.081e-05/0.1074, allocations: 0 / 397.9 MB, free: 2.18 MB / 318.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.001628/0.109, allocations: 1.15 MB / 399.1 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.836e-05/0.1091, allocations: 8.031 kB / 399.1 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.533e-05/0.1091, allocations: 54.73 kB / 399.1 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001401/0.1093, allocations: 84.42 kB / 399.2 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006069/0.1099, allocations: 436.7 kB / 399.6 MB, free: 340 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.585e-05/0.1099, allocations: 24.38 kB / 399.7 MB, free: 316 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.459e-05/0.11, allocations: 20.38 kB / 399.7 MB, free: 296 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006329/0.1106, allocations: 309.3 kB / 400 MB, free: 15.98 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.1e-05/0.1106, allocations: 0 / 400 MB, free: 15.98 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.01e-05/0.1107, allocations: 8 kB / 400 MB, free: 15.97 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.744e-06/0.1107, allocations: 4 kB / 400 MB, free: 15.97 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004521/0.1111, allocations: 207.9 kB / 400.2 MB, free: 15.77 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001577/0.1127, allocations: 0.8903 MB / 401.1 MB, free: 14.82 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004282/0.1131, allocations: 174.5 kB / 401.2 MB, free: 14.64 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002528/0.1134, allocations: 116.8 kB / 401.4 MB, free: 14.53 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.216e-05/0.1134, allocations: 0 / 401.4 MB, free: 14.53 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006317/0.1141, allocations: 390 kB / 401.7 MB, free: 14.11 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.553e-06/0.1141, allocations: 4 kB / 401.7 MB, free: 14.11 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001389/0.1154, allocations: 0.738 MB / 402.5 MB, free: 13.34 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001167/0.1156, allocations: 182.1 kB / 402.7 MB, free: 13.12 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001518/0.1171, allocations: 1.008 MB / 403.7 MB, free: 12.11 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.243e-05/0.1171, allocations: 29.7 kB / 403.7 MB, free: 12.07 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001436/0.1173, allocations: 157.9 kB / 403.9 MB, free: 11.91 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.997e-05/0.1174, allocations: 55.59 kB / 403.9 MB, free: 11.86 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002519/0.1176, allocations: 165.3 kB / 404.1 MB, free: 11.69 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001792/0.1178, allocations: 346.8 kB / 404.4 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000282/0.1181, allocations: 123.9 kB / 404.5 MB, free: 11.22 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002924/0.1184, allocations: 164.2 kB / 404.7 MB, free: 11.04 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006205/0.119, allocations: 473.7 kB / 405.2 MB, free: 10.52 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.119, allocations: 4 kB / 405.2 MB, free: 10.51 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001024/0.12, allocations: 0.5782 MB / 405.7 MB, free: 9.902 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001262/0.1201, allocations: 138.8 kB / 405.9 MB, free: 9.742 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.1201, allocations: 0 / 405.9 MB, free: 9.742 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.011e-05/0.1202, allocations: 7.938 kB / 405.9 MB, free: 9.734 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.206e-05/0.1203, allocations: 11.98 kB / 405.9 MB, free: 9.723 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.036e-05/0.1203, allocations: 4 kB / 405.9 MB, free: 9.719 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000227/0.1205, allocations: 15.98 kB / 405.9 MB, free: 9.703 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001384/0.1206, allocations: 119.9 kB / 406 MB, free: 9.586 MB / 334.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.0006366/0.1213, allocations: 0.5338 MB / 406.6 MB, free: 9.016 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001176/0.1214, allocations: 87.42 kB / 406.6 MB, free: 8.93 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002214/0.1216, allocations: 134.4 kB / 406.8 MB, free: 8.797 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-06/0.1216, allocations: 4 kB / 406.8 MB, free: 8.793 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.1216, allocations: 0 / 406.8 MB, free: 8.793 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.1216, allocations: 4 kB / 406.8 MB, free: 8.789 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007741/0.1224, allocations: 0.6256 MB / 407.4 MB, free: 8.113 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.1224, allocations: 0 / 407.4 MB, free: 8.113 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.396e-05/0.1224, allocations: 8 kB / 407.4 MB, free: 8.105 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.1224, allocations: 0 / 407.4 MB, free: 8.105 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.179e-05/0.1225, allocations: 28.11 kB / 407.4 MB, free: 8.078 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.057e-06/0.1225, allocations: 4 kB / 407.4 MB, free: 8.074 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1225, allocations: 0 / 407.4 MB, free: 8.074 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001131/0.1236, allocations: 0.7177 MB / 408.2 MB, free: 7.312 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007884/0.1244, allocations: 0.4961 MB / 408.7 MB, free: 6.797 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001166/0.1245, allocations: 24 kB / 408.7 MB, free: 6.773 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001762/0.1247, allocations: 15.98 kB / 408.7 MB, free: 6.758 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001682/0.1249, allocations: 51.95 kB / 408.8 MB, free: 6.707 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000134/0.125, allocations: 115.9 kB / 408.9 MB, free: 6.594 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0009943/0.126, allocations: 0.7289 MB / 409.6 MB, free: 5.871 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.126, allocations: 0 / 409.6 MB, free: 5.871 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003771/0.1264, allocations: 95.89 kB / 409.7 MB, free: 5.777 MB / 334.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.001529/0.1279, allocations: 1.29 MB / 411 MB, free: 4.43 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008487/0.1288, allocations: 0.5365 MB / 411.5 MB, free: 3.844 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1288, allocations: 0 / 411.5 MB, free: 3.844 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004745/0.1292, allocations: 397.5 kB / 411.9 MB, free: 3.406 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000796/0.13, allocations: 203.2 kB / 412.1 MB, free: 3.207 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006834/0.1369, allocations: 4.527 MB / 416.6 MB, free: 14.54 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007892/0.1377, allocations: 0.9753 MB / 417.6 MB, free: 13.54 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003612/0.138, allocations: 161.1 kB / 417.8 MB, free: 13.38 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002396/0.1383, allocations: 131.3 kB / 417.9 MB, free: 13.25 MB / 350.1 MB Notification: Performance of SimCode: time 1.242e-06/0.1383, allocations: 0 / 417.9 MB, free: 13.25 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0423/0.1806, allocations: 10.27 MB / 428.2 MB, free: 2.883 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.149/8.33, allocations: 7.859 kB / 428.2 MB, free: 2.875 MB / 350.1 MB " [Timeout remaining time 652] (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 --stepSize=0.000998004 --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) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 10.735904632136226]