Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002153/0.002153, allocations: 115.8 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002293/0.002293, allocations: 213.3 kB / 23.75 MB, free: 4.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.474/1.474, allocations: 230.6 MB / 257.5 MB, free: 7.984 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001542/0.001542, allocations: 47.92 kB / 377.8 MB, free: 3.125 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2737/0.2752, allocations: 53.36 MB / 431.1 MB, free: 6.848 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002799/0.278, allocations: 1.596 MB / 432.7 MB, free: 5.246 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002062/0.2801, allocations: 0.9043 MB / 433.6 MB, free: 4.336 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.242e-05/0.2801, allocations: 0 / 433.6 MB, free: 4.336 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001051/0.2802, allocations: 15.86 kB / 433.6 MB, free: 4.32 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000103/0.2803, allocations: 23.84 kB / 433.7 MB, free: 4.297 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002938/0.2806, allocations: 59.83 kB / 433.7 MB, free: 4.238 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002708/0.2809, allocations: 163.6 kB / 433.9 MB, free: 4.078 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001253/0.281, allocations: 17.58 kB / 433.9 MB, free: 4.055 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000743/0.2818, allocations: 0.6317 MB / 434.5 MB, free: 3.422 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001845/0.282, allocations: 87.62 kB / 434.6 MB, free: 3.336 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.671e-05/0.282, allocations: 12 kB / 434.6 MB, free: 3.324 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.546e-05/0.282, allocations: 8 kB / 434.6 MB, free: 3.316 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001084/0.2822, allocations: 75.7 kB / 434.7 MB, free: 3.242 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001583/0.2823, allocations: 139 kB / 434.8 MB, free: 3.105 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004909/0.2828, allocations: 462.3 kB / 435.3 MB, free: 2.656 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.2828, allocations: 0 / 435.3 MB, free: 2.656 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2828, allocations: 0 / 435.3 MB, free: 2.656 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.044e-06/0.2828, allocations: 0 / 435.3 MB, free: 2.656 MB / 334.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.0009322/0.2837, allocations: 0.7463 MB / 436 MB, free: 1.848 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.484e-05/0.2838, allocations: 12.03 kB / 436.1 MB, free: 1.836 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.18e-05/0.2839, allocations: 42.73 kB / 436.1 MB, free: 1.785 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.151e-05/0.2839, allocations: 44.66 kB / 436.1 MB, free: 1.742 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003539/0.2843, allocations: 232.8 kB / 436.4 MB, free: 1.488 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.757e-05/0.2843, allocations: 16.31 kB / 436.4 MB, free: 1.473 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.447e-05/0.2844, allocations: 12.38 kB / 436.4 MB, free: 1.461 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004015/0.2848, allocations: 165.7 kB / 436.6 MB, free: 1.293 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.189e-05/0.2848, allocations: 0 / 436.6 MB, free: 1.293 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.06e-05/0.2848, allocations: 8 kB / 436.6 MB, free: 1.285 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.025e-06/0.2848, allocations: 4 kB / 436.6 MB, free: 1.281 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001873/0.285, allocations: 79.95 kB / 436.7 MB, free: 1.203 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00099/0.286, allocations: 479.5 kB / 437.1 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000248/0.2862, allocations: 102.5 kB / 437.2 MB, free: 0.582 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001712/0.2864, allocations: 84.88 kB / 437.3 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.438e-05/0.2864, allocations: 0 / 437.3 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005255/0.287, allocations: 248.3 kB / 437.5 MB, free: 236 kB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.854e-06/0.287, allocations: 3.938 kB / 437.5 MB, free: 232 kB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.001117/0.2881, allocations: 0.6072 MB / 438.2 MB, free: 15.58 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00014/0.2882, allocations: 199.9 kB / 438.4 MB, free: 15.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007387/0.2889, allocations: 0.5601 MB / 438.9 MB, free: 14.77 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.104e-05/0.289, allocations: 29.7 kB / 438.9 MB, free: 14.74 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.33e-05/0.2891, allocations: 117.1 kB / 439.1 MB, free: 14.62 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.07e-05/0.2891, allocations: 35.78 kB / 439.1 MB, free: 14.58 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001483/0.2893, allocations: 101.5 kB / 439.2 MB, free: 14.48 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001555/0.2894, allocations: 330.8 kB / 439.5 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001698/0.2896, allocations: 87.89 kB / 439.6 MB, free: 14.06 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001712/0.2898, allocations: 104.4 kB / 439.7 MB, free: 13.95 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004507/0.2902, allocations: 430.6 kB / 440.1 MB, free: 13.46 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.744e-06/0.2902, allocations: 4.062 kB / 440.1 MB, free: 13.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0007042/0.2909, allocations: 0.4941 MB / 440.6 MB, free: 12.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001235/0.2911, allocations: 152.5 kB / 440.8 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.463e-06/0.2911, allocations: 0 / 440.8 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.563e-05/0.2911, allocations: 0 / 440.8 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.532e-05/0.2911, allocations: 15.95 kB / 440.8 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.239e-06/0.2911, allocations: 0 / 440.8 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001517/0.2913, allocations: 8 kB / 440.8 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001213/0.2914, allocations: 105.2 kB / 440.9 MB, free: 12.62 MB / 350.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.0004038/0.2918, allocations: 400.1 kB / 441.3 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.173e-05/0.2919, allocations: 43.72 kB / 441.3 MB, free: 12.15 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001069/0.292, allocations: 67.42 kB / 441.4 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.292, allocations: 3.984 kB / 441.4 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.292, allocations: 4 kB / 441.4 MB, free: 12.08 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.292, allocations: 4 kB / 441.4 MB, free: 12.08 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001247/0.2932, allocations: 0.9429 MB / 442.3 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.2932, allocations: 0 / 442.3 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.029e-06/0.2932, allocations: 0 / 442.3 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.433e-05/0.2932, allocations: 4 kB / 442.3 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.706e-05/0.2933, allocations: 19.98 kB / 442.4 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.17e-06/0.2933, allocations: 7.938 kB / 442.4 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.2933, allocations: 0 / 442.4 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008443/0.2941, allocations: 0.6631 MB / 443 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004257/0.2946, allocations: 213.3 kB / 443.2 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.722e-05/0.2946, allocations: 12 kB / 443.3 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001513/0.2948, allocations: 15.92 kB / 443.3 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001594/0.2949, allocations: 51.94 kB / 443.3 MB, free: 10.03 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001084/0.295, allocations: 113.1 kB / 443.4 MB, free: 9.922 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000555/0.2956, allocations: 418.9 kB / 443.8 MB, free: 9.52 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2956, allocations: 0 / 443.8 MB, free: 9.52 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003106/0.2959, allocations: 52 kB / 443.9 MB, free: 9.469 MB / 350.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.001257/0.2972, allocations: 1.228 MB / 445.1 MB, free: 8.184 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006336/0.2978, allocations: 480.8 kB / 445.6 MB, free: 7.652 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.2978, allocations: 0 / 445.6 MB, free: 7.652 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003853/0.2982, allocations: 385 kB / 446 MB, free: 7.215 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008349/0.299, allocations: 193.9 kB / 446.2 MB, free: 7.039 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004415/0.3034, allocations: 3.234 MB / 449.4 MB, free: 3.688 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000556/0.304, allocations: 0.8142 MB / 450.2 MB, free: 2.848 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.82e-05/0.3041, allocations: 16.97 kB / 450.2 MB, free: 2.828 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.002e-05/0.3041, allocations: 47.36 kB / 450.3 MB, free: 2.781 MB / 350.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3041, allocations: 0 / 450.3 MB, free: 2.781 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03927/0.3434, allocations: 9.433 MB / 459.7 MB, free: 9.359 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.03/11.38, allocations: 3.984 kB / 459.7 MB, free: 9.355 MB / 366.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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.00299162 Modelica_4_1_0_Modelica_Electrical_Digital_Examples_MUX2x1.fmu > Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Digital/Examples/MUX2x1/MUX2x1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable Mux2x1.out in file Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1_res.csv. Warning: Get data of variable Mux2x1.out from file Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.958039110002574]