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.00157/0.00157, allocations: 107.1 kB / 16.92 MB, free: 5.777 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.001725/0.001725, allocations: 191.3 kB / 17.85 MB, free: 5.164 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.339/1.339, allocations: 222.9 MB / 241.5 MB, free: 15.23 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001133/0.001133, allocations: 45.7 kB / 300.7 MB, free: 5.773 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.1017, allocations: 49.43 MB / 350.2 MB, free: 4.328 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.004341/0.1061, allocations: 2.094 MB / 352.2 MB, free: 2.215 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002402/0.1085, allocations: 1.025 MB / 353.3 MB, free: 1.184 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002446/0.1088, allocations: 7.938 kB / 353.3 MB, free: 1.176 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002615/0.1091, allocations: 31.66 kB / 353.3 MB, free: 1.145 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002137/0.1093, allocations: 51.58 kB / 353.4 MB, free: 1.094 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005336/0.1099, allocations: 123.8 kB / 353.5 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006164/0.1105, allocations: 411.1 kB / 353.9 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002671/0.1108, allocations: 117.8 kB / 354 MB, free: 464 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009959/0.1118, allocations: 0.9357 MB / 354.9 MB, free: 15.52 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003231/0.1121, allocations: 199.2 kB / 355.1 MB, free: 15.32 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001218/0.1123, allocations: 32 kB / 355.2 MB, free: 15.29 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001054/0.1124, allocations: 36 kB / 355.2 MB, free: 15.25 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002131/0.1126, allocations: 171.2 kB / 355.4 MB, free: 15.09 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003501/0.1129, allocations: 278.1 kB / 355.6 MB, free: 14.81 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009437/0.1139, allocations: 0.9619 MB / 356.6 MB, free: 13.85 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.321e-06/0.1139, allocations: 0 / 356.6 MB, free: 13.85 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.1139, allocations: 0 / 356.6 MB, free: 13.85 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.985e-05/0.114, allocations: 4 kB / 356.6 MB, free: 13.84 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.001915/0.1159, allocations: 1.118 MB / 357.7 MB, free: 12.65 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.731e-05/0.1159, allocations: 12.03 kB / 357.7 MB, free: 12.64 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001199/0.1161, allocations: 58.67 kB / 357.8 MB, free: 12.57 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001732/0.1162, allocations: 80 kB / 357.9 MB, free: 12.49 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005745/0.1168, allocations: 432 kB / 358.3 MB, free: 12.03 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.43e-05/0.1169, allocations: 16.38 kB / 358.3 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.16e-05/0.117, allocations: 16.38 kB / 358.3 MB, free: 12 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006418/0.1176, allocations: 305.5 kB / 358.6 MB, free: 11.7 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.248e-06/0.1176, allocations: 0 / 358.6 MB, free: 11.7 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.976e-05/0.1177, allocations: 19.98 kB / 358.6 MB, free: 11.68 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.1177, allocations: 0 / 358.6 MB, free: 11.68 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004409/0.1181, allocations: 204.4 kB / 358.8 MB, free: 11.48 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001497/0.1196, allocations: 0.8978 MB / 359.7 MB, free: 10.53 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005096/0.1202, allocations: 222.4 kB / 360 MB, free: 10.3 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003058/0.1205, allocations: 155.6 kB / 360.1 MB, free: 10.15 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.164e-05/0.1205, allocations: 0 / 360.1 MB, free: 10.15 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005859/0.1211, allocations: 385.9 kB / 360.5 MB, free: 9.734 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.623e-06/0.1211, allocations: 0 / 360.5 MB, free: 9.734 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001372/0.1225, allocations: 0.741 MB / 361.2 MB, free: 8.965 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001092/0.1226, allocations: 174.2 kB / 361.4 MB, free: 8.758 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00152/0.1242, allocations: 1 MB / 362.4 MB, free: 7.746 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.083e-05/0.1242, allocations: 37.7 kB / 362.4 MB, free: 7.703 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001265/0.1244, allocations: 157.8 kB / 362.6 MB, free: 7.547 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.244e-05/0.1244, allocations: 63.19 kB / 362.6 MB, free: 7.484 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002436/0.1247, allocations: 161.1 kB / 362.8 MB, free: 7.32 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001259/0.1248, allocations: 342.8 kB / 363.1 MB, free: 6.977 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002832/0.1251, allocations: 123.9 kB / 363.3 MB, free: 6.855 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003002/0.1254, allocations: 164.7 kB / 363.4 MB, free: 6.68 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005953/0.126, allocations: 481.7 kB / 363.9 MB, free: 6.145 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.929e-06/0.1261, allocations: 4 kB / 363.9 MB, free: 6.141 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000936/0.127, allocations: 0.578 MB / 364.5 MB, free: 5.531 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.259e-05/0.1271, allocations: 134.8 kB / 364.6 MB, free: 5.375 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.822e-06/0.1271, allocations: 144 / 364.6 MB, free: 5.375 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.001e-05/0.1271, allocations: 11.92 kB / 364.6 MB, free: 5.363 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.266e-05/0.1272, allocations: 16.05 kB / 364.6 MB, free: 5.348 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.947e-06/0.1272, allocations: 11.94 kB / 364.6 MB, free: 5.336 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002204/0.1275, allocations: 19.89 kB / 364.7 MB, free: 5.316 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001161/0.1276, allocations: 111.9 kB / 364.8 MB, free: 5.207 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.0005761/0.1282, allocations: 0.5259 MB / 365.3 MB, free: 4.648 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001137/0.1283, allocations: 79.16 kB / 365.4 MB, free: 4.57 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001959/0.1285, allocations: 122.4 kB / 365.5 MB, free: 4.445 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/0.1285, allocations: 4 kB / 365.5 MB, free: 4.441 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.1285, allocations: 0 / 365.5 MB, free: 4.441 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.1285, allocations: 3.984 kB / 365.5 MB, free: 4.438 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007148/0.1293, allocations: 0.6296 MB / 366.1 MB, free: 3.758 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.05e-06/0.1293, allocations: 0 / 366.1 MB, free: 3.758 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.875e-05/0.1293, allocations: 15.92 kB / 366.1 MB, free: 3.742 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.546e-06/0.1293, allocations: 0 / 366.1 MB, free: 3.742 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.32e-05/0.1294, allocations: 27.98 kB / 366.2 MB, free: 3.715 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.1294, allocations: 3.938 kB / 366.2 MB, free: 3.711 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.1294, allocations: 4 kB / 366.2 MB, free: 3.707 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00109/0.1305, allocations: 0.698 MB / 366.9 MB, free: 2.965 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006223/0.1311, allocations: 0.4918 MB / 367.4 MB, free: 2.453 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001115/0.1313, allocations: 20 kB / 367.4 MB, free: 2.434 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001766/0.1314, allocations: 19.98 kB / 367.4 MB, free: 2.414 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001529/0.1316, allocations: 47.95 kB / 367.5 MB, free: 2.367 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001122/0.1317, allocations: 115.9 kB / 367.6 MB, free: 2.254 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0009749/0.1327, allocations: 0.7329 MB / 368.3 MB, free: 1.523 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.1327, allocations: 0 / 368.3 MB, free: 1.523 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003729/0.1331, allocations: 91.84 kB / 368.4 MB, free: 1.434 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.001499/0.1346, allocations: 1.295 MB / 369.7 MB, free: 84 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.1444/0.279, allocations: 0.6551 MB / 370.3 MB, free: 25.75 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.279, allocations: 0.8438 kB / 370.3 MB, free: 25.75 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005338/0.2796, allocations: 0.5304 MB / 370.9 MB, free: 25.5 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009464/0.2805, allocations: 195.9 kB / 371.1 MB, free: 25.49 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005753/0.2863, allocations: 4.506 MB / 375.6 MB, free: 22.92 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004954/0.2868, allocations: 0.9696 MB / 376.5 MB, free: 22.13 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000298/0.2871, allocations: 158.2 kB / 376.7 MB, free: 22.04 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000197/0.2873, allocations: 135.4 kB / 376.8 MB, free: 21.94 MB / 302.1 MB Notification: Performance of SimCode: time 7.01e-07/0.2873, allocations: 0 / 376.8 MB, free: 21.94 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02925/0.3166, allocations: 10.2 MB / 387 MB, free: 18.74 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.665/7.981, allocations: 5.859 kB / 387 MB, free: 18.73 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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_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.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_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches