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.001211/0.001211, allocations: 100.2 kB / 17.58 MB, free: 5.418 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.001206/0.001206, allocations: 192 kB / 18.51 MB, free: 4.508 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.365/1.365, allocations: 205.1 MB / 224.4 MB, free: 12.32 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.001363/0.001363, allocations: 55.92 kB / 280.7 MB, free: 3.094 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09009/0.09146, allocations: 46.63 MB / 327.4 MB, free: 4.391 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003793/0.09529, allocations: 2.114 MB / 329.5 MB, free: 2.254 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002307/0.09763, allocations: 1.046 MB / 330.5 MB, free: 1.199 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001727/0.09783, allocations: 8 kB / 330.5 MB, free: 1.191 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002028/0.09806, allocations: 39.66 kB / 330.6 MB, free: 1.152 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001566/0.09823, allocations: 47.52 kB / 330.6 MB, free: 1.105 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004197/0.09866, allocations: 127.8 kB / 330.8 MB, free: 0.9805 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005424/0.09921, allocations: 415.1 kB / 331.2 MB, free: 0.5742 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002403/0.09946, allocations: 99.08 kB / 331.3 MB, free: 496 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000997/0.1005, allocations: 0.9436 MB / 332.2 MB, free: 15.54 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000271/0.1008, allocations: 195.2 kB / 332.4 MB, free: 15.35 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001047/0.1009, allocations: 32 kB / 332.4 MB, free: 15.32 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.114e-05/0.101, allocations: 36 kB / 332.5 MB, free: 15.28 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001781/0.1012, allocations: 179.3 kB / 332.6 MB, free: 15.11 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002823/0.1014, allocations: 278.1 kB / 332.9 MB, free: 14.83 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008227/0.1023, allocations: 0.9697 MB / 333.9 MB, free: 13.86 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.1023, allocations: 0 / 333.9 MB, free: 13.86 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1023, allocations: 0 / 333.9 MB, free: 13.86 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.263e-05/0.1023, allocations: 0 / 333.9 MB, free: 13.86 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.001431/0.1038, allocations: 1.122 MB / 335 MB, free: 12.66 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.714e-05/0.1038, allocations: 8.031 kB / 335 MB, free: 12.65 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.378e-05/0.1039, allocations: 50.73 kB / 335.1 MB, free: 12.59 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001455/0.104, allocations: 80 kB / 335.1 MB, free: 12.52 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004707/0.1045, allocations: 440 kB / 335.6 MB, free: 12.05 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.869e-05/0.1046, allocations: 16.38 kB / 335.6 MB, free: 12.03 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.235e-05/0.1046, allocations: 20.38 kB / 335.6 MB, free: 12.01 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000609/0.1052, allocations: 313.1 kB / 335.9 MB, free: 11.7 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.027e-05/0.1053, allocations: 0 / 335.9 MB, free: 11.7 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.517e-05/0.1053, allocations: 8 kB / 335.9 MB, free: 11.69 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.266e-06/0.1053, allocations: 7.938 kB / 335.9 MB, free: 11.68 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004508/0.1058, allocations: 211.9 kB / 336.1 MB, free: 11.48 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001345/0.1071, allocations: 0.8901 MB / 337 MB, free: 10.54 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004656/0.1076, allocations: 218.5 kB / 337.2 MB, free: 10.31 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002894/0.1079, allocations: 160.8 kB / 337.4 MB, free: 10.15 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.544e-05/0.108, allocations: 3.984 kB / 337.4 MB, free: 10.15 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000586/0.1086, allocations: 382 kB / 337.8 MB, free: 9.738 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.783e-06/0.1086, allocations: 0 / 337.8 MB, free: 9.738 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.001345/0.1099, allocations: 0.7297 MB / 338.5 MB, free: 8.977 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001125/0.11, allocations: 178.2 kB / 338.7 MB, free: 8.766 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001277/0.1113, allocations: 1.008 MB / 339.7 MB, free: 7.746 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.962e-05/0.1114, allocations: 37.64 kB / 339.7 MB, free: 7.703 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000116/0.1115, allocations: 157.8 kB / 339.9 MB, free: 7.547 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.936e-05/0.1116, allocations: 55.34 kB / 339.9 MB, free: 7.492 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002272/0.1118, allocations: 169 kB / 340.1 MB, free: 7.32 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001309/0.112, allocations: 338.8 kB / 340.4 MB, free: 6.98 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002726/0.1123, allocations: 131.9 kB / 340.5 MB, free: 6.852 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002878/0.1126, allocations: 160.2 kB / 340.7 MB, free: 6.68 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005711/0.1131, allocations: 473.7 kB / 341.2 MB, free: 6.152 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.1132, allocations: 4 kB / 341.2 MB, free: 6.148 MB / 286.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009327/0.1141, allocations: 0.582 MB / 341.7 MB, free: 5.535 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.931e-05/0.1142, allocations: 134.8 kB / 341.9 MB, free: 5.379 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.1142, allocations: 4 kB / 341.9 MB, free: 5.375 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.36e-05/0.1142, allocations: 0 / 341.9 MB, free: 5.375 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.277e-05/0.1143, allocations: 19.92 kB / 341.9 MB, free: 5.355 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.893e-06/0.1143, allocations: 0 / 341.9 MB, free: 5.355 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002192/0.1146, allocations: 23.89 kB / 341.9 MB, free: 5.332 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000116/0.1147, allocations: 115.9 kB / 342 MB, free: 5.219 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.0005536/0.1153, allocations: 0.5375 MB / 342.6 MB, free: 4.648 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.52e-05/0.1154, allocations: 71.16 kB / 342.6 MB, free: 4.578 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001976/0.1156, allocations: 130.4 kB / 342.8 MB, free: 4.438 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.1156, allocations: 0 / 342.8 MB, free: 4.438 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.1156, allocations: 0 / 342.8 MB, free: 4.438 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.1156, allocations: 0 / 342.8 MB, free: 4.438 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006656/0.1163, allocations: 0.6336 MB / 343.4 MB, free: 3.754 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.104e-05/0.1163, allocations: 4 kB / 343.4 MB, free: 3.75 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.528e-05/0.1163, allocations: 16 kB / 343.4 MB, free: 3.734 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.1163, allocations: 0 / 343.4 MB, free: 3.734 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.969e-05/0.1164, allocations: 27.98 kB / 343.5 MB, free: 3.707 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.963e-06/0.1164, allocations: 0 / 343.5 MB, free: 3.707 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.1164, allocations: 0 / 343.5 MB, free: 3.707 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001052/0.1175, allocations: 0.6985 MB / 344.2 MB, free: 2.965 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006273/0.1181, allocations: 0.4919 MB / 344.6 MB, free: 2.453 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001123/0.1182, allocations: 27.98 kB / 344.7 MB, free: 2.426 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001723/0.1184, allocations: 15.98 kB / 344.7 MB, free: 2.41 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000176/0.1186, allocations: 55.94 kB / 344.7 MB, free: 2.355 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001303/0.1187, allocations: 119.9 kB / 344.9 MB, free: 2.238 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.001028/0.1198, allocations: 0.7328 MB / 345.6 MB, free: 1.508 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1198, allocations: 0 / 345.6 MB, free: 1.508 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000378/0.1202, allocations: 87.94 kB / 345.7 MB, free: 1.422 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.001538/0.1217, allocations: 1.285 MB / 347 MB, free: 84 kB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0009429/0.1227, allocations: 0.6498 MB / 347.6 MB, free: 15.38 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.1227, allocations: 4.312 kB / 347.6 MB, free: 15.38 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005578/0.1232, allocations: 0.5326 MB / 348.1 MB, free: 14.8 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008208/0.1241, allocations: 199 kB / 348.3 MB, free: 14.61 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006215/0.1303, allocations: 4.509 MB / 352.9 MB, free: 9.953 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007312/0.131, allocations: 0.9713 MB / 353.8 MB, free: 8.953 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003291/0.1314, allocations: 165.2 kB / 354 MB, free: 8.793 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002356/0.1316, allocations: 131.3 kB / 354.1 MB, free: 8.664 MB / 302.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1316, allocations: 0 / 354.1 MB, free: 8.664 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0299/0.1615, allocations: 10.19 MB / 364.3 MB, free: 14.38 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.507/7.669, allocations: 15.48 kB / 364.3 MB, free: 14.36 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 & 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