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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001087/0.001087, allocations: 89.8 kB / 16.65 MB, free: 6.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001098/0.001098, allocations: 175.2 kB / 17.56 MB, free: 6.18 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.507/1.507, allocations: 223.3 MB / 241.6 MB, free: 14.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002839/0.000284, allocations: 8 kB / 301.5 MB, free: 5.789 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1179/0.1182, allocations: 50.41 MB / 351.9 MB, free: 3.375 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002604/0.1209, allocations: 1.802 MB / 353.7 MB, free: 1.559 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0023/0.1232, allocations: 1.029 MB / 354.8 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001825/0.1234, allocations: 7.938 kB / 354.8 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001979/0.1236, allocations: 27.78 kB / 354.8 MB, free: 500 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001916/0.1238, allocations: 39.7 kB / 354.8 MB, free: 460 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004727/0.1243, allocations: 111.8 kB / 355 MB, free: 348 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005308/0.1249, allocations: 339.1 kB / 355.3 MB, free: 8 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002935/0.1252, allocations: 95.16 kB / 355.4 MB, free: 15.91 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001116/0.1263, allocations: 0.9162 MB / 356.3 MB, free: 14.99 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003333/0.1266, allocations: 167.2 kB / 356.5 MB, free: 14.82 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.549e-05/0.1267, allocations: 8 kB / 356.5 MB, free: 14.82 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.631e-05/0.1268, allocations: 8 kB / 356.5 MB, free: 14.81 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001988/0.127, allocations: 159.3 kB / 356.6 MB, free: 14.65 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003285/0.1274, allocations: 271.8 kB / 356.9 MB, free: 14.38 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000968/0.1283, allocations: 0.9266 MB / 357.8 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.1283, allocations: 0 / 357.8 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.123e-06/0.1284, allocations: 0 / 357.8 MB, free: 13.45 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.183e-05/0.1284, allocations: 0 / 357.8 MB, free: 13.45 MB / 302.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.00158/0.13, allocations: 0.9669 MB / 358.8 MB, free: 12.41 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.376e-05/0.13, allocations: 12.03 kB / 358.8 MB, free: 12.39 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001424/0.1302, allocations: 54.73 kB / 358.9 MB, free: 12.33 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001724/0.1304, allocations: 87.91 kB / 358.9 MB, free: 12.25 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005707/0.1309, allocations: 432 kB / 359.4 MB, free: 11.79 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.91e-05/0.131, allocations: 12.38 kB / 359.4 MB, free: 11.77 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.688e-05/0.1311, allocations: 24.31 kB / 359.4 MB, free: 11.75 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000657/0.1317, allocations: 301.5 kB / 359.7 MB, free: 11.45 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.106e-05/0.1317, allocations: 0 / 359.7 MB, free: 11.45 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.654e-05/0.1318, allocations: 8 kB / 359.7 MB, free: 11.45 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.208e-06/0.1318, allocations: 4 kB / 359.7 MB, free: 11.44 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004747/0.1323, allocations: 215.9 kB / 359.9 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001817/0.1341, allocations: 0.8862 MB / 360.8 MB, free: 10.29 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000536/0.1347, allocations: 214.5 kB / 361 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000314/0.135, allocations: 156.8 kB / 361.2 MB, free: 9.918 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.343e-05/0.135, allocations: 4 kB / 361.2 MB, free: 9.914 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006181/0.1357, allocations: 389.9 kB / 361.5 MB, free: 9.496 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.653e-06/0.1357, allocations: 0 / 361.5 MB, free: 9.496 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001448/0.1371, allocations: 0.7373 MB / 362.3 MB, free: 8.727 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001083/0.1372, allocations: 174.2 kB / 362.5 MB, free: 8.52 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001663/0.1389, allocations: 1.004 MB / 363.5 MB, free: 7.504 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.345e-05/0.139, allocations: 33.7 kB / 363.5 MB, free: 7.465 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00014/0.1391, allocations: 157.8 kB / 363.6 MB, free: 7.309 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.222e-05/0.1392, allocations: 55.3 kB / 363.7 MB, free: 7.254 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.768e-05/0.1393, allocations: 45.69 kB / 363.7 MB, free: 7.203 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001435/0.1395, allocations: 342.8 kB / 364.1 MB, free: 6.859 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002809/0.1397, allocations: 120 kB / 364.2 MB, free: 6.742 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003114/0.1401, allocations: 164.2 kB / 364.4 MB, free: 6.566 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006716/0.1407, allocations: 477.7 kB / 364.8 MB, free: 6.035 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.005e-06/0.1408, allocations: 96 / 364.8 MB, free: 6.035 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001046/0.1418, allocations: 0.5897 MB / 365.4 MB, free: 5.414 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001066/0.1419, allocations: 130.8 kB / 365.5 MB, free: 5.262 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.1419, allocations: 128 / 365.5 MB, free: 5.262 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.979e-05/0.142, allocations: 8 kB / 365.6 MB, free: 5.254 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.809e-05/0.1421, allocations: 12 kB / 365.6 MB, free: 5.242 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.233e-05/0.1421, allocations: 3.984 kB / 365.6 MB, free: 5.238 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003409/0.1425, allocations: 39.83 kB / 365.6 MB, free: 5.199 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001301/0.1426, allocations: 116 kB / 365.7 MB, free: 5.086 MB / 302.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.0006978/0.1433, allocations: 0.5298 MB / 366.2 MB, free: 4.523 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001226/0.1434, allocations: 79.06 kB / 366.3 MB, free: 4.445 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002364/0.1437, allocations: 130.4 kB / 366.5 MB, free: 4.312 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.417e-06/0.1437, allocations: 0 / 366.5 MB, free: 4.312 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.1437, allocations: 4 kB / 366.5 MB, free: 4.309 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/0.1437, allocations: 4 kB / 366.5 MB, free: 4.305 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008578/0.1446, allocations: 0.6258 MB / 367.1 MB, free: 3.629 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.604e-05/0.1446, allocations: 4 kB / 367.1 MB, free: 3.625 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.728e-05/0.1447, allocations: 15.88 kB / 367.1 MB, free: 3.609 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.1447, allocations: 0 / 367.1 MB, free: 3.609 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.559e-05/0.1448, allocations: 27.98 kB / 367.1 MB, free: 3.582 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.1448, allocations: 0 / 367.1 MB, free: 3.582 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.1448, allocations: 0 / 367.1 MB, free: 3.582 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001173/0.1459, allocations: 0.704 MB / 367.8 MB, free: 2.836 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007564/0.1467, allocations: 0.4919 MB / 368.3 MB, free: 2.324 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000122/0.1469, allocations: 20 kB / 368.3 MB, free: 2.305 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002568/0.1471, allocations: 31.81 kB / 368.4 MB, free: 2.273 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001871/0.1473, allocations: 51.95 kB / 368.4 MB, free: 2.223 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001299/0.1474, allocations: 119.9 kB / 368.5 MB, free: 2.105 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001074/0.1485, allocations: 0.725 MB / 369.3 MB, free: 1.383 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1485, allocations: 0 / 369.3 MB, free: 1.383 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004294/0.149, allocations: 95.94 kB / 369.4 MB, free: 1.289 MB / 302.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.1925/0.3415, allocations: 1.289 MB / 370.7 MB, free: 24.62 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001315/0.3428, allocations: 0.6419 MB / 371.3 MB, free: 24.37 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.3429, allocations: 0 / 371.3 MB, free: 24.37 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005691/0.3434, allocations: 0.5276 MB / 371.8 MB, free: 24.12 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009955/0.3444, allocations: 180.3 kB / 372 MB, free: 24.12 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006979/0.3514, allocations: 4.664 MB / 376.7 MB, free: 21.96 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006461/0.3521, allocations: 0.9695 MB / 377.6 MB, free: 21.2 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003679/0.3525, allocations: 160.9 kB / 377.8 MB, free: 21.1 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002164/0.3527, allocations: 135.5 kB / 377.9 MB, free: 21 MB / 302.1 MB Notification: Performance of SimCode: time 7.81e-07/0.3527, allocations: 1.375 kB / 377.9 MB, free: 21 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02295/0.3757, allocations: 9.136 MB / 387.1 MB, free: 18.51 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002408/0.376, allocations: 198.5 kB / 387.3 MB, free: 18.25 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.163/2.539, allocations: 4 kB / 387.3 MB, free: 18.25 MB / 302.1 MB (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 --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) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches