Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001126/0.001126, allocations: 104.5 kB / 17.64 MB, free: 5.543 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001804/0.001804, allocations: 202.4 kB / 18.58 MB, free: 4.605 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.379/1.379, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001327/0.001328, allocations: 59.94 kB / 307 MB, free: 0.5312 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09928/0.1006, allocations: 50.53 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003383/0.1041, allocations: 2.118 MB / 359.7 MB, free: 11.87 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002371/0.1065, allocations: 1.056 MB / 360.7 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001723/0.1067, allocations: 4 kB / 360.8 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001925/0.1069, allocations: 35.59 kB / 360.8 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001476/0.107, allocations: 43.59 kB / 360.8 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004152/0.1075, allocations: 139.7 kB / 361 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004655/0.1079, allocations: 403.1 kB / 361.4 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003226/0.1083, allocations: 119 kB / 361.5 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009967/0.1093, allocations: 0.9318 MB / 362.4 MB, free: 9.145 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003017/0.1096, allocations: 199.2 kB / 362.6 MB, free: 8.949 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001237/0.1097, allocations: 32 kB / 362.6 MB, free: 8.918 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.47e-05/0.1098, allocations: 36 kB / 362.7 MB, free: 8.883 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001852/0.11, allocations: 167.3 kB / 362.8 MB, free: 8.719 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003206/0.1104, allocations: 286.1 kB / 363.1 MB, free: 8.438 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008642/0.1112, allocations: 0.9581 MB / 364.1 MB, free: 7.477 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.149e-06/0.1113, allocations: 0 / 364.1 MB, free: 7.477 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.1113, allocations: 0 / 364.1 MB, free: 7.477 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.603e-05/0.1113, allocations: 0 / 364.1 MB, free: 7.477 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.001466/0.1128, allocations: 1.118 MB / 365.2 MB, free: 6.281 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.449e-05/0.1128, allocations: 12.03 kB / 365.2 MB, free: 6.27 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.799e-05/0.1129, allocations: 54.73 kB / 365.3 MB, free: 6.207 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001362/0.1131, allocations: 80 kB / 365.3 MB, free: 6.129 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000483/0.1135, allocations: 436 kB / 365.8 MB, free: 5.664 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.458e-05/0.1136, allocations: 16.38 kB / 365.8 MB, free: 5.648 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.94e-05/0.1137, allocations: 20.38 kB / 365.8 MB, free: 5.629 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006246/0.1143, allocations: 301.3 kB / 366.1 MB, free: 5.328 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.227e-06/0.1143, allocations: 0 / 366.1 MB, free: 5.328 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.791e-05/0.1144, allocations: 27.92 kB / 366.1 MB, free: 5.301 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.543e-06/0.1144, allocations: 4 kB / 366.1 MB, free: 5.297 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004409/0.1148, allocations: 200.4 kB / 366.3 MB, free: 5.102 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001501/0.1164, allocations: 0.8979 MB / 367.2 MB, free: 4.152 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004877/0.1169, allocations: 218.5 kB / 367.4 MB, free: 3.93 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003052/0.1172, allocations: 156.8 kB / 367.6 MB, free: 3.773 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.815e-05/0.1172, allocations: 4 kB / 367.6 MB, free: 3.77 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007485/0.118, allocations: 389 kB / 368 MB, free: 3.355 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 2.464e-06/0.118, allocations: 0 / 368 MB, free: 3.355 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001664/0.1197, allocations: 0.7374 MB / 368.7 MB, free: 2.586 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000121/0.1198, allocations: 174.2 kB / 368.9 MB, free: 2.379 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001823/0.1216, allocations: 1.004 MB / 369.9 MB, free: 1.359 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.737e-05/0.1217, allocations: 33.7 kB / 369.9 MB, free: 1.32 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001565/0.1219, allocations: 153.8 kB / 370.1 MB, free: 1.168 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001069/0.122, allocations: 59.27 kB / 370.1 MB, free: 1.109 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003012/0.1223, allocations: 165 kB / 370.3 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001236/0.1224, allocations: 342.8 kB / 370.6 MB, free: 0.5977 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002645/0.1227, allocations: 123.9 kB / 370.7 MB, free: 488 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002781/0.123, allocations: 156.2 kB / 370.9 MB, free: 316 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1665/0.2895, allocations: 474.5 kB / 371.3 MB, free: 19.99 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.552e-06/0.2895, allocations: 0.75 kB / 371.3 MB, free: 19.99 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001184/0.2907, allocations: 0.5808 MB / 371.9 MB, free: 19.84 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.991e-05/0.2908, allocations: 135.1 kB / 372.1 MB, free: 19.71 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/0.2908, allocations: 1.484 kB / 372.1 MB, free: 19.71 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.825e-05/0.2908, allocations: 2.688 kB / 372.1 MB, free: 19.71 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.773e-05/0.2909, allocations: 15.64 kB / 372.1 MB, free: 19.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.578e-06/0.2909, allocations: 9.828 kB / 372.1 MB, free: 19.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002384/0.2912, allocations: 15.22 kB / 372.1 MB, free: 19.71 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001322/0.2913, allocations: 114.4 kB / 372.2 MB, free: 19.71 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.0005915/0.2919, allocations: 0.5364 MB / 372.8 MB, free: 19.42 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000106/0.292, allocations: 77.72 kB / 372.8 MB, free: 19.42 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001926/0.2922, allocations: 134.9 kB / 373 MB, free: 19.35 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-05/0.2923, allocations: 2.078 kB / 373 MB, free: 19.35 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.684e-06/0.2923, allocations: 1.844 kB / 373 MB, free: 19.35 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.997e-06/0.2923, allocations: 1.016 kB / 373 MB, free: 19.35 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00066/0.2929, allocations: 0.6245 MB / 373.6 MB, free: 19.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.293, allocations: 0 / 373.6 MB, free: 19.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.751e-05/0.293, allocations: 17.03 kB / 373.6 MB, free: 19.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.293, allocations: 2.156 kB / 373.6 MB, free: 19.09 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.808e-05/0.2931, allocations: 31.02 kB / 373.6 MB, free: 19.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.923e-06/0.2931, allocations: 1.031 kB / 373.6 MB, free: 19.09 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.2931, allocations: 0 / 373.6 MB, free: 19.09 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001049/0.2941, allocations: 0.7045 MB / 374.3 MB, free: 18.82 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005581/0.2947, allocations: 0.4939 MB / 374.8 MB, free: 18.49 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001033/0.2948, allocations: 20.47 kB / 374.9 MB, free: 18.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001786/0.295, allocations: 19.7 kB / 374.9 MB, free: 18.48 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001623/0.2952, allocations: 47.56 kB / 374.9 MB, free: 18.46 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001108/0.2953, allocations: 121.3 kB / 375 MB, free: 18.45 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0009289/0.2962, allocations: 0.7289 MB / 375.8 MB, free: 18.08 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.2963, allocations: 6.219 kB / 375.8 MB, free: 18.08 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003877/0.2966, allocations: 89.3 kB / 375.9 MB, free: 18.08 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.001249/0.2979, allocations: 1.278 MB / 377.1 MB, free: 17.17 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008431/0.2988, allocations: 0.6637 MB / 377.8 MB, free: 16.72 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.2988, allocations: 0 / 377.8 MB, free: 16.72 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004518/0.2992, allocations: 0.5348 MB / 378.3 MB, free: 16.31 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008343/0.3001, allocations: 211.6 kB / 378.5 MB, free: 16.25 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005946/0.306, allocations: 4.506 MB / 383.1 MB, free: 13.52 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005193/0.3066, allocations: 0.9634 MB / 384 MB, free: 12.75 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003272/0.3069, allocations: 166.8 kB / 384.2 MB, free: 12.64 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000206/0.3071, allocations: 129.9 kB / 384.3 MB, free: 12.55 MB / 302.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3071, allocations: 0 / 384.3 MB, free: 12.55 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02686/0.334, allocations: 10.19 MB / 394.5 MB, free: 8.953 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.696/8.03, allocations: 13.62 kB / 394.5 MB, free: 8.949 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_trunk_Modelica_Electrical_Digital_Examples_HalfAdder.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder_res.csv","/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_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches