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) 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 3.2.3+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001289/0.001289, allocations: 113.3 kB / 17.28 MB, free: 6.312 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.001252/0.001253, allocations: 189.3 kB / 18.19 MB, free: 5.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.376/1.376, allocations: 205.1 MB / 224.1 MB, free: 12.43 MB / 190.1 MB 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.001285/0.001285, allocations: 56.12 kB / 280.3 MB, free: 3.387 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0863/0.08759, allocations: 46.62 MB / 326.9 MB, free: 4.691 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003332/0.09097, allocations: 2.168 MB / 329 MB, free: 2.508 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002086/0.09309, allocations: 1.03 MB / 330.1 MB, free: 1.469 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001038/0.09321, allocations: 7.938 kB / 330.1 MB, free: 1.461 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001861/0.09344, allocations: 23.78 kB / 330.1 MB, free: 1.438 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001166/0.09357, allocations: 47.69 kB / 330.1 MB, free: 1.391 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003718/0.09394, allocations: 115.8 kB / 330.3 MB, free: 1.277 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004325/0.09438, allocations: 411.1 kB / 330.7 MB, free: 0.875 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002157/0.09461, allocations: 103.1 kB / 330.8 MB, free: 0.7812 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008555/0.09547, allocations: 0.9436 MB / 331.7 MB, free: 15.84 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002172/0.0957, allocations: 195.2 kB / 331.9 MB, free: 15.64 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.191e-05/0.09578, allocations: 36 kB / 331.9 MB, free: 15.61 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.389e-05/0.09585, allocations: 36 kB / 332 MB, free: 15.57 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001447/0.096, allocations: 167.2 kB / 332.1 MB, free: 15.41 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002328/0.09624, allocations: 282.1 kB / 332.4 MB, free: 15.13 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006711/0.09692, allocations: 0.9658 MB / 333.4 MB, free: 14.16 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.66e-06/0.09693, allocations: 4 kB / 333.4 MB, free: 14.16 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.09694, allocations: 0 / 333.4 MB, free: 14.16 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.795e-06/0.09696, allocations: 0 / 333.4 MB, free: 14.16 MB / 286.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.001176/0.09814, allocations: 1.118 MB / 334.5 MB, free: 12.96 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.859e-05/0.09819, allocations: 8.031 kB / 334.5 MB, free: 12.96 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.864e-05/0.09828, allocations: 54.73 kB / 334.6 MB, free: 12.89 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001408/0.09843, allocations: 80 kB / 334.6 MB, free: 12.82 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005315/0.09896, allocations: 432 kB / 335.1 MB, free: 12.36 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.938e-05/0.09902, allocations: 24.25 kB / 335.1 MB, free: 12.33 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.25e-05/0.09908, allocations: 24.38 kB / 335.1 MB, free: 12.31 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006325/0.09972, allocations: 313.3 kB / 335.4 MB, free: 12 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/0.09974, allocations: 0 / 335.4 MB, free: 12 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.412e-05/0.09979, allocations: 12 kB / 335.4 MB, free: 11.98 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.029e-06/0.0998, allocations: 0 / 335.4 MB, free: 11.98 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003969/0.1002, allocations: 207.9 kB / 335.6 MB, free: 11.78 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001113/0.1013, allocations: 0.8823 MB / 336.5 MB, free: 10.85 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004064/0.1017, allocations: 218.5 kB / 336.7 MB, free: 10.62 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002604/0.102, allocations: 160.9 kB / 336.9 MB, free: 10.46 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.259e-05/0.102, allocations: 3.938 kB / 336.9 MB, free: 10.46 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005422/0.1026, allocations: 378 kB / 337.3 MB, free: 10.05 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.493e-06/0.1026, allocations: 0 / 337.3 MB, free: 10.05 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.001216/0.1038, allocations: 0.7413 MB / 338 MB, free: 9.281 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.204e-05/0.1039, allocations: 178.2 kB / 338.2 MB, free: 9.07 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001102/0.105, allocations: 1.004 MB / 339.2 MB, free: 8.055 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.459e-05/0.1051, allocations: 41.7 kB / 339.2 MB, free: 8.008 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.327e-05/0.1052, allocations: 149.8 kB / 339.4 MB, free: 7.859 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.604e-05/0.1053, allocations: 51.36 kB / 339.4 MB, free: 7.809 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001894/0.1054, allocations: 173 kB / 339.6 MB, free: 7.633 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001029/0.1056, allocations: 338.7 kB / 339.9 MB, free: 7.293 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002426/0.1058, allocations: 128 kB / 340 MB, free: 7.168 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002575/0.1061, allocations: 164.2 kB / 340.2 MB, free: 6.992 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005126/0.1066, allocations: 477.7 kB / 340.7 MB, free: 6.461 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.1066, allocations: 0 / 340.7 MB, free: 6.461 MB / 286.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008526/0.1075, allocations: 0.5819 MB / 341.2 MB, free: 5.848 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.229e-05/0.1076, allocations: 130.8 kB / 341.4 MB, free: 5.695 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.1076, allocations: 4.062 kB / 341.4 MB, free: 5.691 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.428e-05/0.1076, allocations: 4 kB / 341.4 MB, free: 5.688 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.701e-05/0.1077, allocations: 12 kB / 341.4 MB, free: 5.676 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.653e-06/0.1077, allocations: 0 / 341.4 MB, free: 5.676 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002624/0.108, allocations: 39.81 kB / 341.4 MB, free: 5.637 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001089/0.1081, allocations: 115.9 kB / 341.5 MB, free: 5.523 MB / 286.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.000519/0.1086, allocations: 0.5415 MB / 342.1 MB, free: 4.945 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.946e-05/0.1087, allocations: 75.06 kB / 342.2 MB, free: 4.871 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001783/0.1089, allocations: 130.4 kB / 342.3 MB, free: 4.73 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.405e-06/0.1089, allocations: 0 / 342.3 MB, free: 4.73 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.1089, allocations: 0 / 342.3 MB, free: 4.73 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.055e-06/0.1089, allocations: 96 / 342.3 MB, free: 4.73 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006318/0.1095, allocations: 0.6335 MB / 342.9 MB, free: 4.047 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.1096, allocations: 0 / 342.9 MB, free: 4.047 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.507e-05/0.1096, allocations: 15.94 kB / 342.9 MB, free: 4.031 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.1096, allocations: 0 / 342.9 MB, free: 4.031 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.513e-05/0.1097, allocations: 27.98 kB / 343 MB, free: 4.004 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.1097, allocations: 0 / 343 MB, free: 4.004 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.1097, allocations: 0 / 343 MB, free: 4.004 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009993/0.1107, allocations: 0.7063 MB / 343.7 MB, free: 3.254 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005631/0.1113, allocations: 499.8 kB / 344.2 MB, free: 2.746 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.723e-05/0.1114, allocations: 24 kB / 344.2 MB, free: 2.723 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002018/0.1116, allocations: 35.81 kB / 344.2 MB, free: 2.688 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001478/0.1117, allocations: 55.89 kB / 344.3 MB, free: 2.633 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001098/0.1118, allocations: 119.9 kB / 344.4 MB, free: 2.516 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0009014/0.1127, allocations: 0.7251 MB / 345.1 MB, free: 1.793 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1128, allocations: 0 / 345.1 MB, free: 1.793 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003438/0.1131, allocations: 87.94 kB / 345.2 MB, free: 1.707 MB / 286.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.001381/0.1145, allocations: 1.289 MB / 346.5 MB, free: 372 kB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0009009/0.1154, allocations: 0.6499 MB / 347.1 MB, free: 15.66 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.1154, allocations: 0 / 347.1 MB, free: 15.66 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005078/0.1159, allocations: 0.5327 MB / 347.7 MB, free: 15.08 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007773/0.1167, allocations: 195.2 kB / 347.9 MB, free: 14.89 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005869/0.1226, allocations: 4.669 MB / 352.5 MB, free: 10.07 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006054/0.1232, allocations: 0.9713 MB / 353.5 MB, free: 9.074 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003551/0.1236, allocations: 161.5 kB / 353.7 MB, free: 8.918 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002176/0.1238, allocations: 135.2 kB / 353.8 MB, free: 8.785 MB / 302.1 MB Notification: Performance of SimCode: time 7.71e-07/0.1238, allocations: 0 / 353.8 MB, free: 8.785 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01966/0.1435, allocations: 10.03 MB / 363.8 MB, free: 14.7 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001692/0.1437, allocations: 206.2 kB / 364 MB, free: 14.44 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.89/2.034, allocations: 0 / 364 MB, free: 14.44 MB / 318.1 MB (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 --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) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches