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.001456/0.001456, allocations: 120.4 kB / 20.44 MB, free: 1.461 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.001415/0.001415, allocations: 212.1 kB / 23.74 MB, free: 4.695 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.422/1.422, allocations: 230.5 MB / 257.4 MB, free: 8.191 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.00192/0.00192, allocations: 63.89 kB / 377.8 MB, free: 3.027 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3153/0.3172, allocations: 53.41 MB / 431.2 MB, free: 6.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.004157/0.3213, allocations: 1.576 MB / 432.8 MB, free: 5.082 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003027/0.3244, allocations: 0.9121 MB / 433.7 MB, free: 4.164 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.177e-05/0.3245, allocations: 4 kB / 433.7 MB, free: 4.16 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001123/0.3246, allocations: 11.86 kB / 433.7 MB, free: 4.148 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001148/0.3247, allocations: 23.8 kB / 433.7 MB, free: 4.125 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003303/0.325, allocations: 59.81 kB / 433.8 MB, free: 4.066 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003124/0.3253, allocations: 163.7 kB / 433.9 MB, free: 3.906 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001168/0.3254, allocations: 17.58 kB / 433.9 MB, free: 3.883 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000963/0.3264, allocations: 0.6356 MB / 434.6 MB, free: 3.246 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002094/0.3266, allocations: 87.67 kB / 434.7 MB, free: 3.16 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.571e-05/0.3267, allocations: 12 kB / 434.7 MB, free: 3.148 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.694e-05/0.3267, allocations: 12 kB / 434.7 MB, free: 3.137 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001294/0.3268, allocations: 79.62 kB / 434.8 MB, free: 3.059 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001746/0.327, allocations: 127 kB / 434.9 MB, free: 2.934 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006242/0.3276, allocations: 458.5 kB / 435.3 MB, free: 2.488 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.194e-06/0.3276, allocations: 3.984 kB / 435.3 MB, free: 2.484 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.3277, allocations: 4 kB / 435.3 MB, free: 2.48 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.044e-06/0.3277, allocations: 0 / 435.3 MB, free: 2.48 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.0008479/0.3285, allocations: 0.7502 MB / 436.1 MB, free: 1.668 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.067e-05/0.3285, allocations: 8.031 kB / 436.1 MB, free: 1.66 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.441e-05/0.3286, allocations: 38.75 kB / 436.1 MB, free: 1.613 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.216e-05/0.3287, allocations: 44.66 kB / 436.2 MB, free: 1.57 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003388/0.329, allocations: 248.7 kB / 436.4 MB, free: 1.301 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.601e-05/0.329, allocations: 4.375 kB / 436.4 MB, free: 1.297 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.346e-05/0.3291, allocations: 8.375 kB / 436.4 MB, free: 1.289 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003487/0.3294, allocations: 180.8 kB / 436.6 MB, free: 1.109 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.387e-06/0.3294, allocations: 0 / 436.6 MB, free: 1.109 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.726e-05/0.3295, allocations: 4 kB / 436.6 MB, free: 1.105 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.16e-06/0.3295, allocations: 0 / 436.6 MB, free: 1.105 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000176/0.3296, allocations: 87.89 kB / 436.7 MB, free: 1.02 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000781/0.3304, allocations: 471.5 kB / 437.2 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001985/0.3306, allocations: 102.5 kB / 437.3 MB, free: 416 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001586/0.3308, allocations: 84.89 kB / 437.4 MB, free: 328 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.177e-05/0.3308, allocations: 7.984 kB / 437.4 MB, free: 320 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004273/0.3312, allocations: 245.6 kB / 437.6 MB, free: 52 kB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.373e-06/0.3312, allocations: 112 / 437.6 MB, free: 52 kB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0009922/0.3322, allocations: 0.6145 MB / 438.2 MB, free: 15.4 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001268/0.3323, allocations: 199.9 kB / 438.4 MB, free: 15.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007872/0.3331, allocations: 0.5601 MB / 439 MB, free: 14.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.567e-05/0.3332, allocations: 33.7 kB / 439 MB, free: 14.55 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001036/0.3333, allocations: 117.1 kB / 439.1 MB, free: 14.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.4e-05/0.3333, allocations: 27.81 kB / 439.1 MB, free: 14.41 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001853/0.3335, allocations: 101.5 kB / 439.2 MB, free: 14.3 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001627/0.3337, allocations: 330.8 kB / 439.6 MB, free: 13.97 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001575/0.3338, allocations: 87.84 kB / 439.7 MB, free: 13.88 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001614/0.334, allocations: 97.8 kB / 439.7 MB, free: 13.78 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004527/0.3344, allocations: 438.6 kB / 440.2 MB, free: 13.29 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.3344, allocations: 0 / 440.2 MB, free: 13.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0007095/0.3351, allocations: 0.494 MB / 440.7 MB, free: 12.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001226/0.3353, allocations: 152.5 kB / 440.8 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.735e-06/0.3353, allocations: 4 kB / 440.8 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.053e-05/0.3353, allocations: 0 / 440.8 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.217e-05/0.3353, allocations: 0 / 440.8 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.229e-06/0.3353, allocations: 64 / 440.8 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001478/0.3355, allocations: 24.02 kB / 440.8 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001151/0.3356, allocations: 101.2 kB / 440.9 MB, free: 12.45 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.0004129/0.336, allocations: 404 kB / 441.3 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.466e-05/0.3361, allocations: 47.72 kB / 441.4 MB, free: 11.97 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000113/0.3362, allocations: 71.42 kB / 441.5 MB, free: 11.9 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.3362, allocations: 3.938 kB / 441.5 MB, free: 11.9 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.3362, allocations: 0 / 441.5 MB, free: 11.9 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.3362, allocations: 3.984 kB / 441.5 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001313/0.3375, allocations: 0.9313 MB / 442.4 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.3375, allocations: 4 kB / 442.4 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.861e-06/0.3375, allocations: 0 / 442.4 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.858e-06/0.3375, allocations: 0 / 442.4 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.477e-05/0.3376, allocations: 19.98 kB / 442.4 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.21e-06/0.3376, allocations: 3.938 kB / 442.4 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.3376, allocations: 0 / 442.4 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009154/0.3385, allocations: 0.6636 MB / 443.1 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004211/0.3389, allocations: 217.3 kB / 443.3 MB, free: 9.934 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.59e-05/0.339, allocations: 8 kB / 443.3 MB, free: 9.926 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001504/0.3391, allocations: 19.92 kB / 443.3 MB, free: 9.906 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001636/0.3393, allocations: 55.94 kB / 443.4 MB, free: 9.852 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001251/0.3394, allocations: 105.2 kB / 443.5 MB, free: 9.75 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005602/0.34, allocations: 418.8 kB / 443.9 MB, free: 9.344 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.34, allocations: 0 / 443.9 MB, free: 9.344 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003165/0.3403, allocations: 52 kB / 443.9 MB, free: 9.293 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.001245/0.3415, allocations: 1.228 MB / 445.2 MB, free: 8.008 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006277/0.3422, allocations: 480.9 kB / 445.6 MB, free: 7.477 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.3422, allocations: 0 / 445.6 MB, free: 7.477 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003707/0.3425, allocations: 384.9 kB / 446 MB, free: 7.039 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008408/0.3434, allocations: 202.7 kB / 446.2 MB, free: 6.859 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004595/0.348, allocations: 3.23 MB / 449.4 MB, free: 3.512 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005577/0.3485, allocations: 0.8181 MB / 450.3 MB, free: 2.668 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.731e-05/0.3486, allocations: 12.95 kB / 450.3 MB, free: 2.652 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.607e-05/0.3487, allocations: 47.42 kB / 450.3 MB, free: 2.605 MB / 350.1 MB Notification: Performance of SimCode: time 7.61e-07/0.3487, allocations: 7.938 kB / 450.3 MB, free: 2.598 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03676/0.3855, allocations: 9.411 MB / 459.7 MB, free: 9.129 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.98/11.36, allocations: 2.344 kB / 459.7 MB, free: 9.129 MB / 366.1 MB " [Timeout remaining time 649] (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: 13.901717775999714]