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.001318/0.001318, allocations: 111.7 kB / 17.73 MB, free: 5.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.001236/0.001236, allocations: 188.2 kB / 18.67 MB, free: 4.387 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.455/1.455, allocations: 205.1 MB / 224.5 MB, free: 12.22 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.001624/0.001624, allocations: 55.92 kB / 328 MB, free: 3.793 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08989/0.09153, allocations: 46.62 MB / 374.7 MB, free: 5.059 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003768/0.09535, allocations: 2.115 MB / 376.8 MB, free: 2.934 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002263/0.09765, allocations: 1.061 MB / 377.8 MB, free: 1.863 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001076/0.09778, allocations: 7.938 kB / 377.8 MB, free: 1.855 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001736/0.09799, allocations: 31.66 kB / 377.9 MB, free: 1.824 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000113/0.09811, allocations: 51.58 kB / 377.9 MB, free: 1.773 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003672/0.09848, allocations: 123.8 kB / 378 MB, free: 1.652 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004929/0.09899, allocations: 411.1 kB / 378.4 MB, free: 1.25 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002087/0.0992, allocations: 115 kB / 378.6 MB, free: 1.137 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009887/0.1002, allocations: 0.9357 MB / 379.5 MB, free: 204 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002574/0.1005, allocations: 199.2 kB / 379.7 MB, free: 4 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.1703/0.2708, allocations: 31.77 kB / 379.7 MB, free: 10.1 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001259/0.271, allocations: 35.28 kB / 379.7 MB, free: 10.1 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001904/0.2712, allocations: 161.8 kB / 379.9 MB, free: 10.1 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002592/0.2714, allocations: 288.1 kB / 380.2 MB, free: 9.992 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001024/0.2725, allocations: 0.9786 MB / 381.2 MB, free: 9.875 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.2725, allocations: 0 / 381.2 MB, free: 9.875 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.005e-06/0.2725, allocations: 0 / 381.2 MB, free: 9.875 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.082e-05/0.2725, allocations: 3.938 kB / 381.2 MB, free: 9.871 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.00114/0.2736, allocations: 1.139 MB / 382.3 MB, free: 9.047 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.2737, allocations: 9.625 kB / 382.3 MB, free: 9.047 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.946e-05/0.2738, allocations: 54.22 kB / 382.4 MB, free: 9.008 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001325/0.2739, allocations: 84.55 kB / 382.5 MB, free: 8.965 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004161/0.2743, allocations: 445.7 kB / 382.9 MB, free: 8.645 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.693e-05/0.2744, allocations: 15.45 kB / 382.9 MB, free: 8.645 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.039e-05/0.2744, allocations: 24.88 kB / 382.9 MB, free: 8.645 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000632/0.2751, allocations: 301.4 kB / 383.2 MB, free: 8.605 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.2751, allocations: 0 / 383.2 MB, free: 8.605 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.394e-05/0.2751, allocations: 8.641 kB / 383.2 MB, free: 8.605 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.315e-06/0.2752, allocations: 3.438 kB / 383.2 MB, free: 8.605 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004576/0.2756, allocations: 214.9 kB / 383.4 MB, free: 8.602 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001259/0.2769, allocations: 0.8813 MB / 384.3 MB, free: 8.27 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004485/0.2773, allocations: 216.5 kB / 384.5 MB, free: 8.246 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000319/0.2777, allocations: 159.7 kB / 384.7 MB, free: 8.238 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.267e-05/0.2777, allocations: 1.156 kB / 384.7 MB, free: 8.238 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006616/0.2784, allocations: 388.6 kB / 385.1 MB, free: 8.062 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 2.434e-06/0.2784, allocations: 0 / 385.1 MB, free: 8.062 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001399/0.2798, allocations: 0.7437 MB / 385.8 MB, free: 7.824 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.181e-05/0.2799, allocations: 173.9 kB / 386 MB, free: 7.629 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001371/0.2813, allocations: 1.003 MB / 387 MB, free: 7.125 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.783e-05/0.2813, allocations: 36.64 kB / 387 MB, free: 7.09 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.771e-05/0.2814, allocations: 159.2 kB / 387.2 MB, free: 6.961 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.625e-05/0.2815, allocations: 57.75 kB / 387.2 MB, free: 6.922 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002406/0.2818, allocations: 169 kB / 387.4 MB, free: 6.832 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.488e-05/0.2818, allocations: 339.7 kB / 387.7 MB, free: 6.508 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002595/0.2821, allocations: 120.8 kB / 387.9 MB, free: 6.465 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002744/0.2824, allocations: 166.9 kB / 388 MB, free: 6.375 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005237/0.2829, allocations: 479 kB / 388.5 MB, free: 5.988 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.2829, allocations: 1.344 kB / 388.5 MB, free: 5.988 MB / 318.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009509/0.2839, allocations: 0.5788 MB / 389.1 MB, free: 5.699 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.332e-05/0.284, allocations: 137.1 kB / 389.2 MB, free: 5.562 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.787e-06/0.284, allocations: 1.219 kB / 389.2 MB, free: 5.562 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.163e-05/0.284, allocations: 3.047 kB / 389.2 MB, free: 5.562 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.156e-05/0.2841, allocations: 12.91 kB / 389.2 MB, free: 5.562 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.836e-06/0.2841, allocations: 9.594 kB / 389.2 MB, free: 5.559 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002428/0.2844, allocations: 23.56 kB / 389.2 MB, free: 5.551 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001475/0.2845, allocations: 121 kB / 389.4 MB, free: 5.539 MB / 318.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.000695/0.2852, allocations: 0.5329 MB / 389.9 MB, free: 5.152 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000115/0.2854, allocations: 88.11 kB / 390 MB, free: 5.105 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000226/0.2856, allocations: 126.4 kB / 390.1 MB, free: 5.027 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.2856, allocations: 1.25 kB / 390.1 MB, free: 5.027 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.2856, allocations: 1.406 kB / 390.1 MB, free: 5.027 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.2856, allocations: 0.5625 kB / 390.1 MB, free: 5.027 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007996/0.2864, allocations: 0.6289 MB / 390.7 MB, free: 4.625 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.2864, allocations: 3.375 kB / 390.7 MB, free: 4.625 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.162e-05/0.2865, allocations: 11.44 kB / 390.8 MB, free: 4.625 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.2865, allocations: 96 / 390.8 MB, free: 4.625 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.916e-05/0.2866, allocations: 30.95 kB / 390.8 MB, free: 4.617 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.587e-06/0.2866, allocations: 8.484 kB / 390.8 MB, free: 4.613 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.2866, allocations: 0 / 390.8 MB, free: 4.613 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001103/0.2877, allocations: 0.7023 MB / 391.5 MB, free: 4.238 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006177/0.2883, allocations: 0.4947 MB / 392 MB, free: 3.902 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001027/0.2884, allocations: 23.31 kB / 392 MB, free: 3.891 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000165/0.2886, allocations: 15.27 kB / 392 MB, free: 3.891 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001479/0.2888, allocations: 51.98 kB / 392.1 MB, free: 3.875 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000117/0.2889, allocations: 114.8 kB / 392.2 MB, free: 3.867 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008729/0.2898, allocations: 0.733 MB / 392.9 MB, free: 3.504 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2898, allocations: 0 / 392.9 MB, free: 3.504 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003683/0.2901, allocations: 94.98 kB / 393 MB, free: 3.492 MB / 318.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.001293/0.2914, allocations: 1.285 MB / 394.3 MB, free: 2.578 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009048/0.2924, allocations: 0.6575 MB / 395 MB, free: 2.129 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.2924, allocations: 0 / 395 MB, free: 2.129 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005038/0.2929, allocations: 0.5268 MB / 395.5 MB, free: 1.719 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009282/0.2938, allocations: 198.8 kB / 395.7 MB, free: 1.656 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006762/0.3006, allocations: 4.533 MB / 400.2 MB, free: 14.92 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000911/0.3015, allocations: 0.9575 MB / 401.2 MB, free: 14.14 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0005424/0.3021, allocations: 170.4 kB / 401.3 MB, free: 14.03 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002491/0.3023, allocations: 138.7 kB / 401.5 MB, free: 13.93 MB / 334.1 MB Notification: Performance of SimCode: time 7.11e-07/0.3024, allocations: 0 / 401.5 MB, free: 13.93 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03406/0.3364, allocations: 10.25 MB / 411.7 MB, free: 9.727 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.142/8.478, allocations: 15.33 kB / 411.7 MB, free: 9.711 MB / 334.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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_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.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches