Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.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.MUX2x1,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_MUX2x1",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.001531/0.001531, allocations: 102.9 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.001974/0.001974, allocations: 191.9 kB / 18.51 MB, free: 4.504 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.404/1.404, allocations: 205.1 MB / 224.4 MB, free: 12.3 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.001328/0.001329, allocations: 52.14 kB / 280.7 MB, free: 3.094 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08831/0.08965, allocations: 46.64 MB / 327.4 MB, free: 4.387 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002572/0.09226, allocations: 1.552 MB / 328.9 MB, free: 2.816 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001718/0.094, allocations: 0.8974 MB / 329.8 MB, free: 1.91 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.659e-05/0.09406, allocations: 0 / 329.8 MB, free: 1.91 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 8.066e-05/0.09415, allocations: 15.88 kB / 329.8 MB, free: 1.895 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 7.598e-05/0.09424, allocations: 27.78 kB / 329.9 MB, free: 1.867 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002154/0.09446, allocations: 51.89 kB / 329.9 MB, free: 1.816 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000205/0.09467, allocations: 171.7 kB / 330.1 MB, free: 1.648 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001038/0.09478, allocations: 25.41 kB / 330.1 MB, free: 1.621 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005695/0.09536, allocations: 0.6317 MB / 330.7 MB, free: 0.9883 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001228/0.09549, allocations: 75.64 kB / 330.8 MB, free: 0.9141 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.212e-05/0.09555, allocations: 12 kB / 330.8 MB, free: 0.9023 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.341e-05/0.0956, allocations: 12 kB / 330.8 MB, free: 0.8906 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 9.005e-05/0.0957, allocations: 75.69 kB / 330.9 MB, free: 0.8164 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001431/0.09584, allocations: 135 kB / 331.1 MB, free: 0.6836 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003581/0.09621, allocations: 450.6 kB / 331.5 MB, free: 248 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.09622, allocations: 0 / 331.5 MB, free: 248 kB / 270.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.09623, allocations: 0 / 331.5 MB, free: 248 kB / 270.1 MB Notification: Performance of Transformations before backend: time 8.847e-06/0.09624, allocations: 4 kB / 331.5 MB, free: 244 kB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0007646/0.09701, allocations: 0.8177 MB / 332.3 MB, free: 15.34 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.388e-05/0.09705, allocations: 8.031 kB / 332.3 MB, free: 15.33 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.821e-05/0.0971, allocations: 38.75 kB / 332.4 MB, free: 15.29 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.969e-05/0.09718, allocations: 44.47 kB / 332.4 MB, free: 15.24 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002864/0.09747, allocations: 298.1 kB / 332.7 MB, free: 14.91 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.878e-05/0.0975, allocations: 4.375 kB / 332.7 MB, free: 14.91 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.848e-05/0.09754, allocations: 12.38 kB / 332.7 MB, free: 14.89 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003259/0.09788, allocations: 170.5 kB / 332.9 MB, free: 14.72 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.294e-06/0.0979, allocations: 4 kB / 332.9 MB, free: 14.72 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.609e-05/0.09793, allocations: 4 kB / 332.9 MB, free: 14.71 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.938e-06/0.09794, allocations: 4 kB / 332.9 MB, free: 14.71 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001741/0.09812, allocations: 91.83 kB / 333 MB, free: 14.62 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006623/0.09879, allocations: 0.4887 MB / 333.5 MB, free: 14.08 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002211/0.09903, allocations: 130.5 kB / 333.6 MB, free: 13.95 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000178/0.09922, allocations: 109 kB / 333.7 MB, free: 13.84 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.036e-05/0.09924, allocations: 7.938 kB / 333.7 MB, free: 13.83 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003645/0.09961, allocations: 238.6 kB / 333.9 MB, free: 13.57 MB / 286.1 MB Notification: Performance of pre-optimization done (n=14): time 3.035e-06/0.09962, allocations: 3.984 kB / 333.9 MB, free: 13.57 MB / 286.1 MB Notification: Performance of matching and sorting (n=14): time 0.0009575/0.1006, allocations: 0.6108 MB / 334.6 MB, free: 12.92 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.488e-05/0.1007, allocations: 195.9 kB / 334.7 MB, free: 12.68 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000632/0.1013, allocations: 0.5678 MB / 335.3 MB, free: 12.11 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.183e-05/0.1014, allocations: 29.7 kB / 335.3 MB, free: 12.07 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.181e-05/0.1014, allocations: 113.1 kB / 335.5 MB, free: 11.96 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.359e-05/0.1015, allocations: 35.69 kB / 335.5 MB, free: 11.93 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001253/0.1016, allocations: 97.31 kB / 335.6 MB, free: 11.82 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000113/0.1017, allocations: 330.8 kB / 335.9 MB, free: 11.49 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002027/0.102, allocations: 80.09 kB / 336 MB, free: 11.41 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001657/0.1021, allocations: 113.5 kB / 336.1 MB, free: 11.3 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004354/0.1026, allocations: 430.7 kB / 336.5 MB, free: 10.81 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.1026, allocations: 3.938 kB / 336.5 MB, free: 10.8 MB / 286.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006327/0.1032, allocations: 0.4979 MB / 337 MB, free: 10.27 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.272e-05/0.1033, allocations: 152.5 kB / 337.2 MB, free: 10.09 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.1033, allocations: 0 / 337.2 MB, free: 10.09 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.582e-05/0.1034, allocations: 4 kB / 337.2 MB, free: 10.09 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.106e-05/0.1034, allocations: 8.016 kB / 337.2 MB, free: 10.08 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/0.1034, allocations: 0 / 337.2 MB, free: 10.08 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001446/0.1035, allocations: 12 kB / 337.2 MB, free: 10.07 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001053/0.1037, allocations: 105.2 kB / 337.3 MB, free: 9.961 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.Mux2x1.inertialDelaySensitive.y,Input0.y,Select.y,Input1.y,Mux2x1.inertialDelaySensitive.t_next,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.y_old,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.x,$PRE.Mux2x1.inertialDelaySensitive.x,Mux2x1.yy,Mux2x1.nextstate,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 5 * 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.0003488/0.104, allocations: 404.1 kB / 337.7 MB, free: 9.523 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.826e-05/0.1041, allocations: 43.53 kB / 337.7 MB, free: 9.48 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.827e-05/0.1042, allocations: 67.48 kB / 337.8 MB, free: 9.41 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.504e-06/0.1042, allocations: 0 / 337.8 MB, free: 9.41 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.077e-06/0.1042, allocations: 4 kB / 337.8 MB, free: 9.406 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.1042, allocations: 0 / 337.8 MB, free: 9.406 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001139/0.1054, allocations: 0.9792 MB / 338.8 MB, free: 8.34 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.1054, allocations: 4 kB / 338.8 MB, free: 8.336 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.759e-06/0.1054, allocations: 0 / 338.8 MB, free: 8.336 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.676e-06/0.1054, allocations: 0 / 338.8 MB, free: 8.336 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.707e-05/0.1054, allocations: 23.98 kB / 338.8 MB, free: 8.312 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.547e-06/0.1054, allocations: 3.938 kB / 338.8 MB, free: 8.309 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.1055, allocations: 0 / 338.8 MB, free: 8.309 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007804/0.1062, allocations: 0.6595 MB / 339.5 MB, free: 7.602 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00032/0.1066, allocations: 252.4 kB / 339.7 MB, free: 7.336 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.967e-05/0.1066, allocations: 12 kB / 339.7 MB, free: 7.324 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001459/0.1068, allocations: 15.92 kB / 339.7 MB, free: 7.309 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001516/0.107, allocations: 55.94 kB / 339.8 MB, free: 7.254 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.461e-05/0.1071, allocations: 105.2 kB / 339.9 MB, free: 7.152 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0004817/0.1075, allocations: 418.8 kB / 340.3 MB, free: 6.742 MB / 286.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1076, allocations: 0 / 340.3 MB, free: 6.742 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003008/0.1079, allocations: 52 kB / 340.4 MB, free: 6.691 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: 14 ($whenCondition1,$whenCondition2,Mux2x1.nextstate,Mux2x1.yy,Mux2x1.inertialDelaySensitive.x,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.y_old,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.t_next,Input1.y,Select.y,Input0.y) * Number of discrete states: 14 (Input1.y,Select.y,Input0.y,Mux2x1.yy,Mux2x1.nextstate,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.t_next,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,Mux2x1.inertialDelaySensitive.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 5 * 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.001143/0.109, allocations: 1.228 MB / 341.6 MB, free: 5.402 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0006864/0.1097, allocations: 0.5323 MB / 342.1 MB, free: 4.809 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.1097, allocations: 0 / 342.1 MB, free: 4.809 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004354/0.1102, allocations: 473 kB / 342.6 MB, free: 4.285 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008639/0.111, allocations: 188.9 kB / 342.8 MB, free: 4.105 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004399/0.1155, allocations: 3.235 MB / 346 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005126/0.116, allocations: 0.826 MB / 346.8 MB, free: 15.9 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.82e-05/0.1161, allocations: 12.86 kB / 346.8 MB, free: 15.89 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.439e-05/0.1161, allocations: 47.42 kB / 346.9 MB, free: 15.84 MB / 302.1 MB Notification: Performance of SimCode: time 7.61e-07/0.1162, allocations: 0 / 346.9 MB, free: 15.84 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02557/0.1417, allocations: 9.182 MB / 356.1 MB, free: 6.426 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.686/7.828, allocations: 0 / 356.1 MB, free: 6.426 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1_res.csv --start-time 0 --stop-time 15 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.006 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_MUX2x1.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/MUX2x1/MUX2x1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches