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.0009347/0.0009347, allocations: 87.62 kB / 21.43 MB, free: 3.137 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.005797/0.005797, allocations: 159.4 kB / 24.69 MB, free: 9.422 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.9795/0.9795, allocations: 158.6 MB / 186.5 MB, free: 3.039 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.903e-06/1.903e-06, allocations: 0 / 298.4 MB, free: 3.523 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.497e-05/2.687e-05, allocations: 6.281 kB / 298.4 MB, free: 3.516 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002189/0.002215, allocations: 1.509 MB / 299.9 MB, free: 1.992 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002168/0.004384, allocations: 0.8592 MB / 300.8 MB, free: 1.125 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.985e-05/0.004474, allocations: 7.938 kB / 300.8 MB, free: 1.117 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001243/0.004598, allocations: 7.922 kB / 300.8 MB, free: 1.109 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001119/0.00471, allocations: 31.78 kB / 300.9 MB, free: 1.078 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004179/0.005128, allocations: 59.8 kB / 300.9 MB, free: 1.02 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003418/0.00547, allocations: 151.6 kB / 301.1 MB, free: 0.8711 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001478/0.005617, allocations: 17.58 kB / 301.1 MB, free: 0.8555 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00071/0.006327, allocations: 0.659 MB / 301.7 MB, free: 200 kB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001896/0.006517, allocations: 87.67 kB / 301.8 MB, free: 112 kB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.251e-05/0.006569, allocations: 8 kB / 301.8 MB, free: 104 kB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.291e-05/0.006602, allocations: 12 kB / 301.8 MB, free: 92 kB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001155/0.006718, allocations: 75.72 kB / 301.9 MB, free: 16 kB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.1533/0.1601, allocations: 60.53 kB / 302 MB, free: 13.82 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006599/0.1607, allocations: 454.6 kB / 302.4 MB, free: 13.82 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.464e-06/0.1607, allocations: 0.5156 kB / 302.4 MB, free: 13.82 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.934e-06/0.1607, allocations: 0 / 302.4 MB, free: 13.82 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.728e-05/0.1607, allocations: 3.172 kB / 302.4 MB, free: 13.82 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.0009401/0.1617, allocations: 0.746 MB / 303.2 MB, free: 13.23 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.013e-05/0.1617, allocations: 14.58 kB / 303.2 MB, free: 13.23 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.583e-05/0.1618, allocations: 42.22 kB / 303.2 MB, free: 13.19 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.616e-05/0.1619, allocations: 46.22 kB / 303.3 MB, free: 13.16 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002562/0.1621, allocations: 249 kB / 303.5 MB, free: 12.97 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.02e-05/0.1622, allocations: 10.38 kB / 303.5 MB, free: 12.97 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.609e-05/0.1622, allocations: 8.406 kB / 303.5 MB, free: 12.97 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003977/0.1626, allocations: 315.7 kB / 303.8 MB, free: 12.79 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.417e-05/0.1626, allocations: 192 / 303.8 MB, free: 12.79 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.791e-05/0.1626, allocations: 4.797 kB / 303.8 MB, free: 12.79 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.197e-06/0.1626, allocations: 7.406 kB / 303.9 MB, free: 12.78 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002147/0.1629, allocations: 232.3 kB / 304.1 MB, free: 12.62 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008593/0.1637, allocations: 452.4 kB / 304.5 MB, free: 12.37 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002634/0.164, allocations: 249.9 kB / 304.8 MB, free: 12.18 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001752/0.1642, allocations: 234.4 kB / 305 MB, free: 12.02 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.537e-05/0.1642, allocations: 1.156 kB / 305 MB, free: 12.02 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004662/0.1646, allocations: 395.8 kB / 305.4 MB, free: 11.75 MB / 282.7 MB Notification: Performance of pre-optimization done (n=14): time 2.505e-06/0.1646, allocations: 0 / 305.4 MB, free: 11.75 MB / 282.7 MB Notification: Performance of matching and sorting (n=14): time 0.0008367/0.1655, allocations: 0.9183 MB / 306.3 MB, free: 11.23 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.668e-05/0.1655, allocations: 194.9 kB / 306.5 MB, free: 11.01 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006697/0.1662, allocations: 0.563 MB / 307.1 MB, free: 10.82 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.491e-05/0.1662, allocations: 36.23 kB / 307.1 MB, free: 10.79 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.255e-05/0.1663, allocations: 123.9 kB / 307.2 MB, free: 10.68 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.292e-05/0.1663, allocations: 26.17 kB / 307.2 MB, free: 10.67 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001215/0.1664, allocations: 98.22 kB / 307.3 MB, free: 10.62 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.355e-05/0.1665, allocations: 330.2 kB / 307.7 MB, free: 10.3 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001441/0.1667, allocations: 225.5 kB / 307.9 MB, free: 10.12 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001559/0.1668, allocations: 251.1 kB / 308.1 MB, free: 9.91 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002598/0.1671, allocations: 456.5 kB / 308.6 MB, free: 9.516 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.1671, allocations: 1.125 kB / 308.6 MB, free: 9.516 MB / 282.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000517/0.1676, allocations: 0.6528 MB / 309.2 MB, free: 9.086 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.752e-05/0.1677, allocations: 161.8 kB / 309.4 MB, free: 8.922 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.1677, allocations: 2.469 kB / 309.4 MB, free: 8.922 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.825e-05/0.1677, allocations: 0.7031 kB / 309.4 MB, free: 8.922 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.318e-05/0.1677, allocations: 1.188 kB / 309.4 MB, free: 8.922 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.055e-06/0.1677, allocations: 1.859 kB / 309.4 MB, free: 8.922 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001409/0.1679, allocations: 17.11 kB / 309.4 MB, free: 8.922 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001051/0.168, allocations: 99.86 kB / 309.5 MB, free: 8.914 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.0003085/0.1683, allocations: 402.8 kB / 309.9 MB, free: 8.578 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.943e-05/0.1683, allocations: 52.53 kB / 309.9 MB, free: 8.551 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.32e-05/0.1684, allocations: 71.91 kB / 310 MB, free: 8.508 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.518e-06/0.1684, allocations: 1.188 kB / 310 MB, free: 8.508 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.254e-06/0.1684, allocations: 0.5625 kB / 310 MB, free: 8.508 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.1684, allocations: 1.734 kB / 310 MB, free: 8.508 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008674/0.1693, allocations: 1.067 MB / 311.1 MB, free: 7.754 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.1693, allocations: 0 / 311.1 MB, free: 7.754 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.859e-06/0.1693, allocations: 5.188 kB / 311.1 MB, free: 7.75 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.898e-06/0.1693, allocations: 0.6094 kB / 311.1 MB, free: 7.75 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.264e-05/0.1694, allocations: 23.8 kB / 311.1 MB, free: 7.746 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.1694, allocations: 4 kB / 311.1 MB, free: 7.742 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.1694, allocations: 1.766 kB / 311.1 MB, free: 7.742 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006192/0.17, allocations: 0.8301 MB / 311.9 MB, free: 7.172 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002897/0.1703, allocations: 218 kB / 312.2 MB, free: 7.055 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.503e-05/0.1703, allocations: 12.41 kB / 312.2 MB, free: 7.051 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.531e-05/0.1704, allocations: 13.89 kB / 312.2 MB, free: 7.051 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001345/0.1705, allocations: 53.95 kB / 312.2 MB, free: 7.039 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001072/0.1707, allocations: 101.5 kB / 312.3 MB, free: 7.035 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003956/0.171, allocations: 424.4 kB / 312.8 MB, free: 6.824 MB / 282.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.171, allocations: 0.9688 kB / 312.8 MB, free: 6.824 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002625/0.1713, allocations: 57.19 kB / 312.8 MB, free: 6.816 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.0007506/0.1721, allocations: 1.372 MB / 314.2 MB, free: 5.723 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004612/0.1725, allocations: 0.7672 MB / 314.9 MB, free: 5.016 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.1725, allocations: 1.375 kB / 314.9 MB, free: 5.016 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002404/0.1728, allocations: 0.5264 MB / 315.5 MB, free: 4.504 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005845/0.1733, allocations: 185.1 kB / 315.7 MB, free: 4.457 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003273/0.1766, allocations: 3.999 MB / 319.7 MB, free: 1.539 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002363/0.1769, allocations: 216.6 kB / 319.9 MB, free: 1.414 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001317/0.177, allocations: 11.48 kB / 319.9 MB, free: 1.406 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.619e-05/0.1771, allocations: 47.5 kB / 319.9 MB, free: 1.371 MB / 282.7 MB Notification: Performance of SimCode: time 2.114e-06/0.1771, allocations: 0 / 319.9 MB, free: 1.371 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02827/0.2053, allocations: 10.56 MB / 330.5 MB, free: 12.74 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.108/7.314, allocations: 12.48 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Digital_Examples_MUX2x1_fmu --startTime=0 --stopTime=15 --stepSize=0.00299162 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.140759407542646]