Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001195/0.001195, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001493/0.001493, allocations: 216 kB / 23.73 MB, free: 4.164 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.434/1.434, allocations: 230.5 MB / 257.4 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002051/0.002051, allocations: 63.91 kB / 377.7 MB, free: 2.836 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2473/0.2493, allocations: 53.4 MB / 431.1 MB, free: 6.469 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.00295/0.2523, allocations: 1.526 MB / 432.7 MB, free: 4.938 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002049/0.2543, allocations: 0.8459 MB / 433.5 MB, free: 4.086 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.009e-05/0.2544, allocations: 4 kB / 433.5 MB, free: 4.082 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.063e-05/0.2545, allocations: 11.88 kB / 433.5 MB, free: 4.07 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.861e-05/0.2546, allocations: 19.86 kB / 433.5 MB, free: 4.051 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002739/0.2549, allocations: 55.86 kB / 433.6 MB, free: 3.996 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002427/0.2551, allocations: 163.6 kB / 433.8 MB, free: 3.836 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001108/0.2552, allocations: 17.59 kB / 433.8 MB, free: 3.812 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008184/0.256, allocations: 0.6317 MB / 434.4 MB, free: 3.18 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001665/0.2562, allocations: 83.61 kB / 434.5 MB, free: 3.098 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.253e-05/0.2562, allocations: 12 kB / 434.5 MB, free: 3.086 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.442e-05/0.2563, allocations: 12 kB / 434.5 MB, free: 3.074 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001122/0.2564, allocations: 79.69 kB / 434.6 MB, free: 2.996 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001233/0.2565, allocations: 91.23 kB / 434.7 MB, free: 2.906 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005107/0.257, allocations: 467.7 kB / 435.1 MB, free: 2.449 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.715e-06/0.257, allocations: 4 kB / 435.1 MB, free: 2.445 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.003e-06/0.257, allocations: 0 / 435.1 MB, free: 2.445 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.304e-06/0.2571, allocations: 3.938 kB / 435.1 MB, free: 2.441 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.0009273/0.258, allocations: 0.7502 MB / 435.9 MB, free: 1.629 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.986e-05/0.258, allocations: 11.98 kB / 435.9 MB, free: 1.617 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.346e-05/0.2581, allocations: 42.73 kB / 435.9 MB, free: 1.566 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.661e-05/0.2581, allocations: 48.66 kB / 436 MB, free: 1.52 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003511/0.2585, allocations: 236.8 kB / 436.2 MB, free: 1.262 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.693e-05/0.2585, allocations: 12.36 kB / 436.2 MB, free: 1.25 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.364e-05/0.2586, allocations: 12.31 kB / 436.2 MB, free: 1.238 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004595/0.259, allocations: 317.3 kB / 436.6 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.198e-06/0.259, allocations: 7.938 kB / 436.6 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.54e-05/0.2591, allocations: 4 kB / 436.6 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.2591, allocations: 4 kB / 436.6 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002684/0.2593, allocations: 232.5 kB / 436.8 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007946/0.2601, allocations: 455.5 kB / 437.2 MB, free: 136 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003142/0.2604, allocations: 247 kB / 437.5 MB, free: 15.85 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002575/0.2607, allocations: 233.4 kB / 437.7 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.096e-05/0.2607, allocations: 0 / 437.7 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005264/0.2612, allocations: 398.1 kB / 438.1 MB, free: 15.15 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.313e-06/0.2612, allocations: 0 / 438.1 MB, free: 15.15 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.001187/0.2624, allocations: 0.8963 MB / 439 MB, free: 14.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001297/0.2626, allocations: 199.9 kB / 439.2 MB, free: 13.92 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007286/0.2633, allocations: 0.564 MB / 439.8 MB, free: 13.34 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.822e-05/0.2633, allocations: 33.7 kB / 439.8 MB, free: 13.3 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001009/0.2634, allocations: 117.1 kB / 439.9 MB, free: 13.18 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.602e-05/0.2635, allocations: 31.8 kB / 439.9 MB, free: 13.15 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001343/0.2636, allocations: 97.5 kB / 440 MB, free: 13.05 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001854/0.2638, allocations: 334.8 kB / 440.4 MB, free: 12.71 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002531/0.264, allocations: 228.5 kB / 440.6 MB, free: 12.46 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002632/0.2643, allocations: 246.3 kB / 440.8 MB, free: 12.18 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004546/0.2648, allocations: 442.6 kB / 441.3 MB, free: 11.68 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.2648, allocations: 0 / 441.3 MB, free: 11.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0008057/0.2656, allocations: 0.6469 MB / 441.9 MB, free: 10.97 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001264/0.2657, allocations: 152.5 kB / 442.1 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.491e-06/0.2657, allocations: 0 / 442.1 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.506e-05/0.2657, allocations: 4.031 kB / 442.1 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.451e-05/0.2657, allocations: 7.938 kB / 442.1 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.625e-06/0.2657, allocations: 3.984 kB / 442.1 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001422/0.2659, allocations: 12.11 kB / 442.1 MB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001134/0.266, allocations: 101.2 kB / 442.2 MB, free: 10.66 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.0004391/0.2664, allocations: 412 kB / 442.6 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.414e-05/0.2665, allocations: 47.72 kB / 442.6 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001177/0.2666, allocations: 67.42 kB / 442.7 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.2666, allocations: 0 / 442.7 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.2666, allocations: 4 kB / 442.7 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.277e-06/0.2666, allocations: 0 / 442.7 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001393/0.268, allocations: 1.061 MB / 443.8 MB, free: 8.938 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.268, allocations: 0 / 443.8 MB, free: 8.938 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.772e-06/0.268, allocations: 3.984 kB / 443.8 MB, free: 8.934 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.268, allocations: 3.938 kB / 443.8 MB, free: 8.93 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.443e-05/0.2681, allocations: 16.12 kB / 443.8 MB, free: 8.914 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.887e-06/0.2681, allocations: 11.92 kB / 443.8 MB, free: 8.902 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.422e-06/0.2681, allocations: 7.984 kB / 443.8 MB, free: 8.895 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009983/0.2691, allocations: 0.8009 MB / 444.6 MB, free: 8.016 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004349/0.2695, allocations: 213.3 kB / 444.8 MB, free: 7.809 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.474e-05/0.2696, allocations: 16 kB / 444.8 MB, free: 7.793 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001482/0.2697, allocations: 19.92 kB / 444.8 MB, free: 7.773 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001641/0.2699, allocations: 55.94 kB / 444.9 MB, free: 7.719 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001086/0.27, allocations: 101.2 kB / 445 MB, free: 7.621 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005354/0.2705, allocations: 426.7 kB / 445.4 MB, free: 7.211 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2705, allocations: 0 / 445.4 MB, free: 7.211 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002996/0.2708, allocations: 52 kB / 445.5 MB, free: 7.16 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.001404/0.2722, allocations: 1.369 MB / 446.8 MB, free: 5.707 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009127/0.2732, allocations: 0.7713 MB / 447.6 MB, free: 4.812 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.2732, allocations: 0 / 447.6 MB, free: 4.812 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004922/0.2736, allocations: 0.521 MB / 448.1 MB, free: 4.199 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008853/0.2745, allocations: 188.6 kB / 448.3 MB, free: 4.027 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005052/0.2796, allocations: 3.967 MB / 452.3 MB, free: 15.79 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003387/0.2799, allocations: 215.6 kB / 452.5 MB, free: 15.56 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001001/0.28, allocations: 12.95 kB / 452.5 MB, free: 15.54 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.425e-05/0.2801, allocations: 47.42 kB / 452.5 MB, free: 15.5 MB / 366.1 MB Notification: Performance of SimCode: time 1.193e-06/0.2801, allocations: 0 / 452.5 MB, free: 15.5 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04274/0.3229, allocations: 10.49 MB / 463 MB, free: 4.988 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.4/11.72, allocations: 2.188 kB / 463 MB, free: 4.988 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Digital_Examples_MUX2x1.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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_trunk_Modelica.Electrical.Digital.Examples.MUX2x1_res.csv. Warning: Get data of variable Mux2x1.out from file Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.308676676359028]