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.001164/0.001164, allocations: 107.8 kB / 17.06 MB, free: 5.82 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.001172/0.001172, allocations: 195.9 kB / 18 MB, free: 4.965 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.318/1.318, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001097/0.001097, allocations: 47.92 kB / 350.8 MB, free: 3.746 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2907/0.2918, allocations: 49.43 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002672/0.2945, allocations: 1.56 MB / 401.8 MB, free: 7.184 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001975/0.2965, allocations: 0.8629 MB / 402.7 MB, free: 6.395 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.02e-05/0.2966, allocations: 0 / 402.7 MB, free: 6.395 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001084/0.2967, allocations: 11.86 kB / 402.7 MB, free: 6.383 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001125/0.2968, allocations: 27.84 kB / 402.7 MB, free: 6.355 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002838/0.2971, allocations: 51.89 kB / 402.7 MB, free: 6.305 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002616/0.2974, allocations: 179.6 kB / 402.9 MB, free: 6.129 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001244/0.2975, allocations: 29.33 kB / 402.9 MB, free: 6.098 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00069/0.2982, allocations: 0.6356 MB / 403.6 MB, free: 5.461 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001438/0.2984, allocations: 87.62 kB / 403.7 MB, free: 5.375 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.261e-05/0.2984, allocations: 8 kB / 403.7 MB, free: 5.367 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.379e-05/0.2985, allocations: 12 kB / 403.7 MB, free: 5.355 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.743e-05/0.2986, allocations: 71.7 kB / 403.8 MB, free: 5.285 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001607/0.2987, allocations: 139 kB / 403.9 MB, free: 5.148 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004332/0.2992, allocations: 457.1 kB / 404.3 MB, free: 4.703 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.004e-06/0.2992, allocations: 4 kB / 404.3 MB, free: 4.699 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.305e-06/0.2992, allocations: 0 / 404.3 MB, free: 4.699 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.903e-06/0.2992, allocations: 4 kB / 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.0009208/0.3001, allocations: 0.8254 MB / 405.2 MB, free: 3.789 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.729e-05/0.3002, allocations: 11.89 kB / 405.2 MB, free: 3.777 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.462e-05/0.3003, allocations: 42.75 kB / 405.2 MB, free: 3.727 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.773e-05/0.3003, allocations: 44.66 kB / 405.3 MB, free: 3.684 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003657/0.3007, allocations: 290.6 kB / 405.6 MB, free: 3.359 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.394e-05/0.3008, allocations: 12.38 kB / 405.6 MB, free: 3.348 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.826e-05/0.3008, allocations: 8.375 kB / 405.6 MB, free: 3.34 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003573/0.3012, allocations: 177.6 kB / 405.7 MB, free: 3.16 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.195e-06/0.3012, allocations: 0 / 405.7 MB, free: 3.16 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.211e-05/0.3012, allocations: 8 kB / 405.8 MB, free: 3.152 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.951e-06/0.3012, allocations: 3.984 kB / 405.8 MB, free: 3.148 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001717/0.3014, allocations: 83.95 kB / 405.8 MB, free: 3.066 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007604/0.3022, allocations: 0.4965 MB / 406.3 MB, free: 2.52 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002483/0.3024, allocations: 122.5 kB / 406.5 MB, free: 2.391 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001738/0.3026, allocations: 112.9 kB / 406.6 MB, free: 2.277 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.175e-05/0.3026, allocations: 4 kB / 406.6 MB, free: 2.273 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004074/0.303, allocations: 246.6 kB / 406.8 MB, free: 2.008 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.633e-06/0.3031, allocations: 0 / 406.8 MB, free: 2.008 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.0009678/0.304, allocations: 0.6172 MB / 407.4 MB, free: 1.355 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001481/0.3042, allocations: 191.9 kB / 407.6 MB, free: 1.125 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006719/0.3049, allocations: 0.564 MB / 408.2 MB, free: 0.543 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.635e-05/0.3049, allocations: 37.69 kB / 408.2 MB, free: 0.5 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.539e-05/0.305, allocations: 117.1 kB / 408.3 MB, free: 392 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.796e-05/0.3051, allocations: 31.8 kB / 408.4 MB, free: 360 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001276/0.3052, allocations: 101.5 kB / 408.5 MB, free: 252 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001388/0.3053, allocations: 326.8 kB / 408.8 MB, free: 15.92 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000156/0.3055, allocations: 83.95 kB / 408.9 MB, free: 15.84 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001638/0.3057, allocations: 97.75 kB / 409 MB, free: 15.73 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004052/0.3061, allocations: 445.4 kB / 409.4 MB, free: 15.23 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.3061, allocations: 0 / 409.4 MB, free: 15.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006398/0.3067, allocations: 0.4981 MB / 409.9 MB, free: 14.7 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.583e-05/0.3069, allocations: 156.4 kB / 410 MB, free: 14.52 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.775e-06/0.3069, allocations: 4 kB / 410 MB, free: 14.51 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.387e-05/0.3069, allocations: 0 / 410 MB, free: 14.51 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.202e-05/0.3069, allocations: 3.938 kB / 410.1 MB, free: 14.51 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.941e-06/0.3069, allocations: 0 / 410.1 MB, free: 14.51 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000151/0.3071, allocations: 24.02 kB / 410.1 MB, free: 14.48 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001009/0.3072, 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.0003669/0.3076, allocations: 400.1 kB / 410.6 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.104e-05/0.3076, allocations: 47.72 kB / 410.6 MB, free: 13.91 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001053/0.3077, allocations: 75.45 kB / 410.7 MB, free: 13.84 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.3078, allocations: 0 / 410.7 MB, free: 13.84 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.3078, allocations: 0 / 410.7 MB, free: 13.84 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-06/0.3078, allocations: 3.938 kB / 410.7 MB, free: 13.83 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001095/0.3089, allocations: 0.9711 MB / 411.7 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.3089, allocations: 0 / 411.7 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.258e-06/0.3089, allocations: 0 / 411.7 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.394e-06/0.3089, allocations: 0 / 411.7 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.478e-05/0.3089, allocations: 19.98 kB / 411.7 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.3089, allocations: 3.938 kB / 411.7 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.309, allocations: 0 / 411.7 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007817/0.3097, allocations: 0.6598 MB / 412.3 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003621/0.3101, allocations: 264.6 kB / 412.6 MB, free: 11.77 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.658e-05/0.3102, allocations: 8 kB / 412.6 MB, free: 11.76 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001615/0.3104, allocations: 23.92 kB / 412.6 MB, free: 11.73 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001415/0.3105, allocations: 51.94 kB / 412.7 MB, free: 11.68 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.991e-05/0.3106, allocations: 97.23 kB / 412.8 MB, free: 11.59 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004672/0.3111, allocations: 414.9 kB / 413.2 MB, free: 11.19 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3111, allocations: 3.938 kB / 413.2 MB, free: 11.18 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002964/0.3114, 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.001114/0.3125, allocations: 1.223 MB / 414.5 MB, free: 9.855 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006012/0.3131, allocations: 0.5399 MB / 415 MB, free: 9.254 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.3131, allocations: 0 / 415 MB, free: 9.254 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003761/0.3135, allocations: 457.2 kB / 415.4 MB, free: 8.746 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008374/0.3144, allocations: 205 kB / 415.6 MB, free: 8.562 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004158/0.3185, allocations: 3.248 MB / 418.9 MB, free: 5.199 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004654/0.319, allocations: 0.8143 MB / 419.7 MB, free: 4.359 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.428e-05/0.3191, allocations: 12.86 kB / 419.7 MB, free: 4.34 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.159e-05/0.3192, allocations: 47.42 kB / 419.8 MB, free: 4.293 MB / 334.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3192, allocations: 4 kB / 419.8 MB, free: 4.289 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02693/0.3461, allocations: 9.22 MB / 429 MB, free: 11.02 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.619/7.965, allocations: 3.984 kB / 429 MB, free: 11.02 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