Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.0008736/0.0008736, allocations: 87.62 kB / 21.43 MB, free: 3.133 MB / 18.57 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.003837/0.003837, allocations: 164.6 kB / 24.69 MB, free: 9.43 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8301/0.8301, allocations: 158.6 MB / 186.5 MB, free: 3.035 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.443e-06/1.443e-06, allocations: 0 / 298.4 MB, free: 3.508 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.304e-05/1.449e-05, allocations: 2.281 kB / 298.4 MB, free: 3.504 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.001755/0.001769, allocations: 1.513 MB / 300 MB, free: 1.977 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00148/0.00325, allocations: 0.8514 MB / 300.8 MB, free: 1.117 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.719e-05/0.003307, allocations: 3.938 kB / 300.8 MB, free: 1.113 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 8.929e-05/0.003396, allocations: 15.86 kB / 300.8 MB, free: 1.098 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 7.43e-05/0.00347, allocations: 23.8 kB / 300.9 MB, free: 1.074 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002642/0.003735, allocations: 63.8 kB / 300.9 MB, free: 1.012 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001806/0.003915, allocations: 159.6 kB / 301.1 MB, free: 0.8555 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.592e-05/0.004011, allocations: 13.58 kB / 301.1 MB, free: 0.8438 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005902/0.004601, allocations: 0.6629 MB / 301.7 MB, free: 184 kB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000125/0.004726, allocations: 67.75 kB / 301.8 MB, free: 116 kB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.741e-05/0.004764, allocations: 15.94 kB / 301.8 MB, free: 100 kB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.83e-05/0.004792, allocations: 12 kB / 301.8 MB, free: 88 kB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.866e-05/0.004871, allocations: 83.69 kB / 301.9 MB, free: 4 kB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.1329/0.1377, allocations: 54.44 kB / 302 MB, free: 13.8 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000502/0.1382, allocations: 457.4 kB / 302.4 MB, free: 13.8 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.1382, allocations: 0 / 302.4 MB, free: 13.8 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.344e-06/0.1382, allocations: 0 / 302.4 MB, free: 13.8 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.406e-06/0.1382, allocations: 1.594 kB / 302.4 MB, free: 13.8 MB / 282.7 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.0006293/0.1389, allocations: 0.7542 MB / 303.2 MB, free: 13.21 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.212e-05/0.1389, allocations: 13.73 kB / 303.2 MB, free: 13.21 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.519e-05/0.139, allocations: 41.42 kB / 303.2 MB, free: 13.17 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.122e-05/0.139, allocations: 46.19 kB / 303.3 MB, free: 13.14 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002038/0.1392, allocations: 240.1 kB / 303.5 MB, free: 12.95 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.783e-05/0.1392, allocations: 6.969 kB / 303.5 MB, free: 12.95 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.475e-05/0.1393, allocations: 13.59 kB / 303.5 MB, free: 12.95 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003309/0.1396, allocations: 314.5 kB / 303.8 MB, free: 12.77 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.1396, allocations: 192 / 303.8 MB, free: 12.77 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.983e-05/0.1396, allocations: 5.875 kB / 303.8 MB, free: 12.77 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/0.1396, allocations: 8.688 kB / 303.9 MB, free: 12.76 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001496/0.1398, allocations: 232.3 kB / 304.1 MB, free: 12.61 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005893/0.1404, allocations: 453.1 kB / 304.5 MB, free: 12.35 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000195/0.1406, allocations: 251.1 kB / 304.8 MB, free: 12.16 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001385/0.1407, allocations: 235.5 kB / 305 MB, free: 12 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.094e-05/0.1407, allocations: 3 kB / 305 MB, free: 12 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003974/0.1411, allocations: 397.9 kB / 305.4 MB, free: 11.73 MB / 282.7 MB Notification: Performance of pre-optimization done (n=14): time 1.182e-06/0.1411, allocations: 2.438 kB / 305.4 MB, free: 11.73 MB / 282.7 MB Notification: Performance of matching and sorting (n=14): time 0.0007091/0.1418, allocations: 0.9142 MB / 306.3 MB, free: 11.21 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.091e-05/0.1419, allocations: 196.3 kB / 306.5 MB, free: 10.99 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004803/0.1423, allocations: 0.5614 MB / 307.1 MB, free: 10.8 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.061e-05/0.1424, allocations: 32.89 kB / 307.1 MB, free: 10.77 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.774e-05/0.1424, allocations: 119 kB / 307.2 MB, free: 10.68 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.038e-05/0.1424, allocations: 28.31 kB / 307.2 MB, free: 10.66 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.047e-05/0.1425, allocations: 96.73 kB / 307.3 MB, free: 10.62 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 4.761e-05/0.1426, allocations: 331 kB / 307.7 MB, free: 10.3 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001417/0.1427, allocations: 233.8 kB / 307.9 MB, free: 10.11 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001541/0.1429, allocations: 248.7 kB / 308.1 MB, free: 9.906 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002634/0.1431, allocations: 452.9 kB / 308.6 MB, free: 9.512 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.756e-06/0.1431, allocations: 0 / 308.6 MB, free: 9.512 MB / 282.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0005216/0.1437, allocations: 0.6584 MB / 309.2 MB, free: 9.082 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.878e-05/0.1437, allocations: 154.7 kB / 309.4 MB, free: 8.918 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.1437, allocations: 1.188 kB / 309.4 MB, free: 8.918 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.67e-05/0.1438, allocations: 1.125 kB / 309.4 MB, free: 8.918 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.585e-05/0.1438, allocations: 4.578 kB / 309.4 MB, free: 8.918 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.815e-06/0.1438, allocations: 1 kB / 309.4 MB, free: 8.918 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001179/0.1439, allocations: 17.45 kB / 309.4 MB, free: 8.918 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001091/0.144, allocations: 103.2 kB / 309.5 MB, free: 8.906 MB / 282.7 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.0002447/0.1443, allocations: 400.2 kB / 309.9 MB, free: 8.574 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.162e-05/0.1443, allocations: 47.19 kB / 309.9 MB, free: 8.551 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.891e-05/0.1444, allocations: 79.75 kB / 310 MB, free: 8.504 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.1444, allocations: 0.9688 kB / 310 MB, free: 8.504 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.97e-06/0.1444, allocations: 0 / 310 MB, free: 8.504 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.1444, allocations: 1.906 kB / 310 MB, free: 8.504 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007827/0.1452, allocations: 1.067 MB / 311.1 MB, free: 7.75 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.1452, allocations: 0 / 311.1 MB, free: 7.75 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.48e-06/0.1452, allocations: 6.438 kB / 311.1 MB, free: 7.746 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.1452, allocations: 3.938 kB / 311.1 MB, free: 7.742 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.844e-05/0.1452, allocations: 19.48 kB / 311.1 MB, free: 7.742 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.555e-06/0.1452, allocations: 1.406 kB / 311.1 MB, free: 7.742 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1452, allocations: 0 / 311.1 MB, free: 7.742 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005097/0.1457, allocations: 0.8262 MB / 311.9 MB, free: 7.172 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000262/0.146, allocations: 218.9 kB / 312.2 MB, free: 7.055 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.167e-05/0.146, allocations: 11.67 kB / 312.2 MB, free: 7.051 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.265e-05/0.1461, allocations: 12.77 kB / 312.2 MB, free: 7.051 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001294/0.1462, allocations: 57.84 kB / 312.2 MB, free: 7.039 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.535e-05/0.1463, allocations: 106.1 kB / 312.3 MB, free: 7.027 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003113/0.1466, allocations: 423.3 kB / 312.8 MB, free: 6.816 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1466, allocations: 0 / 312.8 MB, free: 6.816 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001963/0.1468, allocations: 53 kB / 312.8 MB, free: 6.812 MB / 282.7 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.0006971/0.1475, allocations: 1.374 MB / 314.2 MB, free: 5.719 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004266/0.148, allocations: 0.768 MB / 314.9 MB, free: 5.012 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.148, allocations: 0 / 314.9 MB, free: 5.012 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002276/0.1482, allocations: 0.5243 MB / 315.5 MB, free: 4.5 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005382/0.1487, allocations: 195.1 kB / 315.7 MB, free: 4.445 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002711/0.1514, allocations: 3.991 MB / 319.7 MB, free: 1.535 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000185/0.1516, allocations: 217.2 kB / 319.9 MB, free: 1.41 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 4.958e-05/0.1517, allocations: 11.45 kB / 319.9 MB, free: 1.402 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.378e-05/0.1517, allocations: 46.19 kB / 319.9 MB, free: 1.367 MB / 282.7 MB Notification: Performance of SimCode: time 8.41e-07/0.1517, allocations: 0 / 319.9 MB, free: 1.367 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02367/0.1754, allocations: 10.56 MB / 330.5 MB, free: 12.75 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.145/7.321, allocations: 17.23 kB / 330.5 MB, free: 12.73 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Electrical_Digital_Examples_MUX2x1.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/MUX2x1/MUX2x1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1_res.csv. Warning: Get data of variable Mux2x1.out from file Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.984635935164988]