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.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.0008233/0.0008233, allocations: 83.62 kB / 21.43 MB, free: 3.133 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.003804/0.003804, allocations: 165.6 kB / 24.7 MB, free: 8.887 MB / 18.57 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 0.8734/0.8734, allocations: 158.6 MB / 186.5 MB, free: 3.031 MB / 170.7 MB " [Timeout remaining time 179] 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.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_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: Performance of FrontEnd - loaded program: time 1.603e-06/1.603e-06, allocations: 0 / 298.4 MB, free: 3.508 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.666e-05/1.827e-05, allocations: 2.281 kB / 298.4 MB, free: 3.504 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002334/0.002352, allocations: 1.998 MB / 300.4 MB, free: 1.488 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001833/0.004185, allocations: 1.01 MB / 301.5 MB, free: 480 kB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001112/0.004296, allocations: 7.938 kB / 301.5 MB, free: 472 kB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002012/0.004498, allocations: 43.58 kB / 301.5 MB, free: 428 kB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 9.554e-05/0.004593, allocations: 55.52 kB / 301.6 MB, free: 372 kB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000408/0.005001, allocations: 131.7 kB / 301.7 MB, free: 240 kB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.1238/0.1288, allocations: 396.3 kB / 302.1 MB, free: 13.36 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002286/0.1291, allocations: 72.06 kB / 302.1 MB, free: 13.35 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0013/0.1304, allocations: 1.024 MB / 303.2 MB, free: 13.35 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002958/0.1307, allocations: 179.2 kB / 303.3 MB, free: 13.34 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 6.339e-05/0.1307, allocations: 34.12 kB / 303.4 MB, free: 13.34 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.905e-05/0.1308, allocations: 34.56 kB / 303.4 MB, free: 13.34 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001452/0.1309, allocations: 170.5 kB / 303.6 MB, free: 13.31 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001378/0.1311, allocations: 144.2 kB / 303.7 MB, free: 13.28 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009407/0.132, allocations: 0.9894 MB / 304.7 MB, free: 13.22 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.132, allocations: 0 / 304.7 MB, free: 13.22 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.864e-06/0.132, allocations: 0 / 304.7 MB, free: 13.22 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.494e-05/0.132, allocations: 2.438 kB / 304.7 MB, free: 13.22 MB / 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.001107/0.1331, allocations: 1.065 MB / 305.8 MB, free: 12.49 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.22e-05/0.1332, allocations: 13.11 kB / 305.8 MB, free: 12.48 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.246e-05/0.1332, allocations: 54.73 kB / 305.8 MB, free: 12.45 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.763e-05/0.1333, allocations: 87.45 kB / 305.9 MB, free: 12.4 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003685/0.1337, allocations: 374.8 kB / 306.3 MB, free: 12.16 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.34e-05/0.1338, allocations: 17.94 kB / 306.3 MB, free: 12.16 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.175e-05/0.1338, allocations: 20.66 kB / 306.3 MB, free: 12.16 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006581/0.1345, allocations: 434.3 kB / 306.8 MB, free: 11.99 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.36e-05/0.1345, allocations: 192 / 306.8 MB, free: 11.99 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.09e-05/0.1345, allocations: 12.38 kB / 306.8 MB, free: 11.99 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.788e-06/0.1345, allocations: 10.75 kB / 306.8 MB, free: 11.99 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004653/0.135, allocations: 339 kB / 307.1 MB, free: 11.79 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001186/0.1362, allocations: 0.781 MB / 307.9 MB, free: 11.32 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003939/0.1366, allocations: 308 kB / 308.2 MB, free: 11.1 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000198/0.1368, allocations: 251.8 kB / 308.4 MB, free: 10.91 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.923e-05/0.1368, allocations: 4.594 kB / 308.4 MB, free: 10.91 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005054/0.1373, allocations: 0.5122 MB / 309 MB, free: 10.54 MB / 282.7 MB Notification: Performance of pre-optimization done (n=24): time 1.723e-06/0.1373, allocations: 2.094 kB / 309 MB, free: 10.54 MB / 282.7 MB Notification: Performance of matching and sorting (n=24): time 0.0009938/0.1383, allocations: 1.006 MB / 310 MB, free: 9.887 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.023e-05/0.1383, allocations: 176.3 kB / 310.1 MB, free: 9.691 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001108/0.1394, allocations: 0.9963 MB / 311.1 MB, free: 9.188 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.429e-05/0.1395, allocations: 37.14 kB / 311.2 MB, free: 9.152 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.475e-05/0.1396, allocations: 166.2 kB / 311.3 MB, free: 9.02 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.96e-05/0.1396, allocations: 52.95 kB / 311.4 MB, free: 8.984 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001625/0.1398, allocations: 164.8 kB / 311.5 MB, free: 8.895 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 4.398e-05/0.1398, allocations: 337.3 kB / 311.9 MB, free: 8.57 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002059/0.14, allocations: 254.4 kB / 312.1 MB, free: 8.387 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002113/0.1402, allocations: 298.7 kB / 312.4 MB, free: 8.156 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000332/0.1406, allocations: 494.5 kB / 312.9 MB, free: 7.762 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.1406, allocations: 0 / 312.9 MB, free: 7.762 MB / 282.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006556/0.1412, allocations: 0.7391 MB / 313.6 MB, free: 7.309 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.31e-05/0.1413, allocations: 138.5 kB / 313.8 MB, free: 7.172 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.1413, allocations: 0.75 kB / 313.8 MB, free: 7.172 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.833e-05/0.1413, allocations: 3.891 kB / 313.8 MB, free: 7.172 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.788e-05/0.1414, allocations: 16.55 kB / 313.8 MB, free: 7.172 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.216e-06/0.1414, allocations: 6.062 kB / 313.8 MB, free: 7.168 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001641/0.1416, allocations: 22.86 kB / 313.8 MB, free: 7.164 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001056/0.1417, allocations: 114.5 kB / 313.9 MB, free: 7.156 MB / 282.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.0004113/0.1421, allocations: 0.5307 MB / 314.5 MB, free: 6.773 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.099e-05/0.1421, allocations: 83.95 kB / 314.5 MB, free: 6.73 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001444/0.1423, allocations: 139.4 kB / 314.7 MB, free: 6.641 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.948e-06/0.1423, allocations: 1.375 kB / 314.7 MB, free: 6.641 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.1423, allocations: 0.5625 kB / 314.7 MB, free: 6.641 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.1423, allocations: 0.5156 kB / 314.7 MB, free: 6.641 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005187/0.1428, allocations: 0.5387 MB / 315.2 MB, free: 6.293 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.1428, allocations: 1.094 kB / 315.2 MB, free: 6.293 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.398e-05/0.1429, allocations: 15.67 kB / 315.2 MB, free: 6.289 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.1429, allocations: 0 / 315.2 MB, free: 6.289 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.879e-05/0.1429, allocations: 28.33 kB / 315.3 MB, free: 6.285 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.265e-06/0.1429, allocations: 0.6562 kB / 315.3 MB, free: 6.285 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.1429, allocations: 1.25 kB / 315.3 MB, free: 6.285 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007079/0.1436, allocations: 0.8475 MB / 316.1 MB, free: 5.758 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005334/0.1441, allocations: 0.4917 MB / 316.6 MB, free: 5.457 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.211e-05/0.1442, allocations: 21.56 kB / 316.6 MB, free: 5.449 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001041/0.1443, allocations: 15.62 kB / 316.6 MB, free: 5.449 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001382/0.1445, allocations: 52.22 kB / 316.7 MB, free: 5.434 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001132/0.1446, allocations: 115.7 kB / 316.8 MB, free: 5.426 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0006941/0.1453, allocations: 0.728 MB / 317.5 MB, free: 5.062 MB / 282.7 MB Notification: Performance of sort global known variables: time 2e-07/0.1453, allocations: 1.25 kB / 317.5 MB, free: 5.062 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002836/0.1456, allocations: 93.03 kB / 317.6 MB, free: 5.055 MB / 282.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.0008892/0.1464, allocations: 1.429 MB / 319.1 MB, free: 3.98 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006099/0.1471, allocations: 0.8145 MB / 319.9 MB, free: 3.324 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.1471, allocations: 3.703 kB / 319.9 MB, free: 3.324 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003417/0.1474, allocations: 0.5253 MB / 320.4 MB, free: 2.867 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005613/0.148, allocations: 200.9 kB / 320.6 MB, free: 2.812 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005104/0.1531, allocations: 5.235 MB / 325.8 MB, free: 15.34 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003918/0.1535, allocations: 362.7 kB / 326.2 MB, free: 15.17 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0004015/0.1539, allocations: 164.5 kB / 326.3 MB, free: 15.07 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002067/0.1541, allocations: 140.6 kB / 326.5 MB, free: 14.96 MB / 298.7 MB Notification: Performance of SimCode: time 1.393e-06/0.1541, allocations: 0 / 326.5 MB, free: 14.96 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02542/0.1795, allocations: 11.59 MB / 338.1 MB, free: 5.535 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.529/7.708, allocations: 12 kB / 338.1 MB, free: 5.523 MB / 298.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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: 9.319892313331366]