Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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.MUX2x1,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_4_0_0_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.001312/0.001312, allocations: 109.3 kB / 17.06 MB, free: 5.992 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.00146/0.00146, allocations: 200 kB / 18.01 MB, free: 5.066 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.378/1.378, allocations: 222.9 MB / 241.7 MB, free: 15.1 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001066/0.001066, allocations: 47.94 kB / 350.8 MB, free: 3.742 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2863/0.2873, allocations: 49.43 MB / 400.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002932/0.2903, allocations: 1.563 MB / 401.8 MB, free: 7.18 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001886/0.2922, allocations: 0.8625 MB / 402.7 MB, free: 6.379 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.174e-05/0.2923, allocations: 0 / 402.7 MB, free: 6.379 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001013/0.2924, allocations: 15.86 kB / 402.7 MB, free: 6.363 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.439e-05/0.2925, allocations: 19.8 kB / 402.7 MB, free: 6.344 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002809/0.2928, allocations: 55.88 kB / 402.8 MB, free: 6.289 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002351/0.2931, allocations: 171.7 kB / 402.9 MB, free: 6.121 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001234/0.2932, allocations: 29.36 kB / 403 MB, free: 6.09 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006367/0.2938, allocations: 0.6356 MB / 403.6 MB, free: 5.453 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001539/0.294, allocations: 83.69 kB / 403.7 MB, free: 5.371 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.165e-05/0.2941, allocations: 12 kB / 403.7 MB, free: 5.359 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.44e-05/0.2941, allocations: 12 kB / 403.7 MB, free: 5.348 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.531e-05/0.2942, allocations: 79.62 kB / 403.8 MB, free: 5.27 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001444/0.2943, allocations: 127 kB / 403.9 MB, free: 5.145 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004403/0.2948, allocations: 457.1 kB / 404.3 MB, free: 4.699 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.2948, allocations: 4 kB / 404.3 MB, free: 4.695 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.2948, allocations: 0 / 404.3 MB, free: 4.695 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.999e-06/0.2948, allocations: 0 / 404.3 MB, free: 4.695 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0009345/0.2958, allocations: 0.8293 MB / 405.2 MB, free: 3.785 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.352e-05/0.2958, allocations: 8.031 kB / 405.2 MB, free: 3.777 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.725e-05/0.2959, allocations: 50.73 kB / 405.2 MB, free: 3.719 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.127e-05/0.296, allocations: 44.66 kB / 405.3 MB, free: 3.676 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003194/0.2963, allocations: 294.5 kB / 405.6 MB, free: 3.348 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.465e-05/0.2963, allocations: 12.38 kB / 405.6 MB, free: 3.336 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.941e-05/0.2964, allocations: 8.375 kB / 405.6 MB, free: 3.328 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003458/0.2967, allocations: 173.6 kB / 405.8 MB, free: 3.152 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.029e-05/0.2967, allocations: 3.984 kB / 405.8 MB, free: 3.148 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.601e-05/0.2968, allocations: 8 kB / 405.8 MB, free: 3.141 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.508e-06/0.2968, allocations: 0 / 405.8 MB, free: 3.141 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001746/0.2969, allocations: 87.89 kB / 405.8 MB, free: 3.055 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006958/0.2977, allocations: 0.5004 MB / 406.3 MB, free: 2.504 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002155/0.2979, allocations: 126.5 kB / 406.5 MB, free: 2.371 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001757/0.2981, allocations: 108.9 kB / 406.6 MB, free: 2.262 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.023e-05/0.2981, allocations: 0 / 406.6 MB, free: 2.262 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004038/0.2985, allocations: 246.6 kB / 406.8 MB, free: 1.996 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.393e-06/0.2985, allocations: 0 / 406.8 MB, free: 1.996 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.0009656/0.2995, allocations: 0.6227 MB / 407.4 MB, free: 1.336 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001048/0.2996, allocations: 187.9 kB / 407.6 MB, free: 1.109 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006296/0.3002, allocations: 0.564 MB / 408.2 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.145e-05/0.3003, allocations: 33.7 kB / 408.2 MB, free: 500 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.962e-05/0.3003, allocations: 113.1 kB / 408.3 MB, free: 384 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.885e-05/0.3004, allocations: 31.8 kB / 408.4 MB, free: 352 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001237/0.3005, allocations: 101.5 kB / 408.5 MB, free: 244 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001198/0.3006, allocations: 326.8 kB / 408.8 MB, free: 15.91 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001509/0.3008, allocations: 83.95 kB / 408.9 MB, free: 15.83 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001577/0.301, allocations: 97.75 kB / 409 MB, free: 15.73 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003669/0.3013, allocations: 438.6 kB / 409.4 MB, free: 15.23 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.3013, allocations: 0 / 409.4 MB, free: 15.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000643/0.302, allocations: 0.5131 MB / 409.9 MB, free: 14.68 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.007e-05/0.3021, allocations: 152.6 kB / 410.1 MB, free: 14.5 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.3021, allocations: 3.938 kB / 410.1 MB, free: 14.5 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.395e-05/0.3021, allocations: 0 / 410.1 MB, free: 14.5 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.963e-05/0.3021, allocations: 0 / 410.1 MB, free: 14.5 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.265e-06/0.3022, allocations: 4 kB / 410.1 MB, free: 14.5 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001349/0.3023, allocations: 12 kB / 410.1 MB, free: 14.48 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.632e-05/0.3024, allocations: 101.2 kB / 410.2 MB, free: 14.39 MB / 334.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.0003309/0.3027, allocations: 404.1 kB / 410.6 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.316e-05/0.3028, allocations: 51.75 kB / 410.6 MB, free: 13.9 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.329e-05/0.3029, allocations: 71.47 kB / 410.7 MB, free: 13.84 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.3029, allocations: 0 / 410.7 MB, free: 13.84 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.3029, allocations: 0 / 410.7 MB, free: 13.84 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.3029, allocations: 3.984 kB / 410.7 MB, free: 13.83 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001/0.3039, allocations: 0.9633 MB / 411.7 MB, free: 12.78 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.3039, allocations: 0 / 411.7 MB, free: 12.78 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.579e-06/0.304, allocations: 3.938 kB / 411.7 MB, free: 12.78 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.304, allocations: 0 / 411.7 MB, free: 12.78 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.419e-05/0.304, allocations: 23.98 kB / 411.7 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.477e-06/0.304, allocations: 3.938 kB / 411.7 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.304, allocations: 0 / 411.7 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007185/0.3047, allocations: 0.6735 MB / 412.4 MB, free: 12.03 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002824/0.305, allocations: 252.6 kB / 412.6 MB, free: 11.77 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.872e-05/0.3051, allocations: 8 kB / 412.6 MB, free: 11.76 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001411/0.3052, allocations: 23.92 kB / 412.6 MB, free: 11.73 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001344/0.3054, allocations: 55.92 kB / 412.7 MB, free: 11.68 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.085e-05/0.3055, allocations: 101.2 kB / 412.8 MB, free: 11.58 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004403/0.3059, allocations: 414.9 kB / 413.2 MB, free: 11.18 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3059, allocations: 0 / 413.2 MB, free: 11.18 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002853/0.3062, allocations: 52 kB / 413.2 MB, free: 11.13 MB / 334.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.001031/0.3073, allocations: 1.224 MB / 414.5 MB, free: 9.848 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005683/0.3079, allocations: 0.5399 MB / 415 MB, free: 9.246 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.3079, allocations: 0 / 415 MB, free: 9.246 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000347/0.3082, allocations: 461 kB / 415.5 MB, free: 8.734 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007734/0.309, allocations: 193.2 kB / 415.6 MB, free: 8.559 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003647/0.3127, allocations: 3.237 MB / 418.9 MB, free: 5.203 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000423/0.3131, allocations: 0.8221 MB / 419.7 MB, free: 4.355 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.579e-05/0.3132, allocations: 16.86 kB / 419.7 MB, free: 4.332 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.629e-05/0.3132, allocations: 39.42 kB / 419.8 MB, free: 4.293 MB / 334.1 MB Notification: Performance of SimCode: time 1.784e-06/0.3133, allocations: 0 / 419.8 MB, free: 4.293 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02952/0.3428, allocations: 9.243 MB / 429 MB, free: 11.01 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.009/8.352, allocations: 14.81 kB / 429 MB, free: 11 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Electrical_Digital_Examples_MUX2x1.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/MUX2x1/MUX2x1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches