Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001349/0.001349, allocations: 113.4 kB / 17.13 MB, free: 5.754 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001491/0.001491, allocations: 191.7 kB / 20.08 MB, free: 2.852 MB / 14.72 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 1.672/1.672, allocations: 207.6 MB / 230.5 MB, free: 4.035 MB / 174.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3932/0.3932, allocations: 44.23 MB / 326.5 MB, free: 6.781 MB / 254.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.MuxDemux,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_MuxDemux",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.MuxDemux,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_MuxDemux",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002259/0.002259, allocations: 76.41 kB / 462.2 MB, free: 0.9219 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3328/0.3351, allocations: 60.99 MB / 0.5109 GB, free: 13.19 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.00274/0.3378, allocations: 1.565 MB / 0.5124 GB, free: 11.96 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001692/0.338, allocations: 53.77 kB / 0.5125 GB, free: 11.92 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.176e-05/0.3381, allocations: 0 / 0.5125 GB, free: 11.92 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001605/0.3382, allocations: 26.75 kB / 0.5125 GB, free: 11.89 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.253e-05/0.3382, allocations: 3.938 kB / 0.5125 GB, free: 11.89 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.467e-05/0.3383, allocations: 22.48 kB / 0.5125 GB, free: 11.88 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001046/0.3384, allocations: 71.28 kB / 0.5126 GB, free: 11.83 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002555/0.3387, allocations: 114.8 kB / 0.5127 GB, free: 11.76 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.491e-05/0.3387, allocations: 34.58 kB / 0.5127 GB, free: 11.74 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.092e-05/0.3388, allocations: 43.22 kB / 0.5128 GB, free: 11.71 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.967e-05/0.3388, allocations: 7.875 kB / 0.5128 GB, free: 11.71 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.552e-05/0.3388, allocations: 8.125 kB / 0.5128 GB, free: 11.71 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.826e-05/0.3389, allocations: 68.19 kB / 0.5129 GB, free: 11.67 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.876e-05/0.339, allocations: 68.23 kB / 0.5129 GB, free: 11.62 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001595/0.3391, allocations: 151.2 kB / 0.5131 GB, free: 11.52 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.3391, allocations: 2.094 kB / 0.5131 GB, free: 11.52 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.3391, allocations: 4 kB / 0.5131 GB, free: 11.52 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.209e-05/0.3392, allocations: 0 / 0.5131 GB, free: 11.52 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0003978/0.3396, allocations: 437.5 kB / 0.5135 GB, free: 11.09 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.439e-05/0.3396, allocations: 13.11 kB / 0.5135 GB, free: 11.09 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.347e-05/0.3397, allocations: 67.91 kB / 0.5136 GB, free: 11.02 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.465e-05/0.3397, allocations: 21.14 kB / 0.5136 GB, free: 11.01 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000196/0.3399, allocations: 220.6 kB / 0.5138 GB, free: 10.78 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.812e-05/0.3399, allocations: 17.94 kB / 0.5138 GB, free: 10.77 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.879e-05/0.34, allocations: 22.88 kB / 0.5138 GB, free: 10.76 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003236/0.3403, allocations: 205.3 kB / 0.514 GB, free: 10.64 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.3403, allocations: 1.219 kB / 0.514 GB, free: 10.64 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.762e-05/0.3403, allocations: 9.094 kB / 0.514 GB, free: 10.63 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.01e-05/0.3403, allocations: 5.844 kB / 0.514 GB, free: 10.63 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002152/0.3405, allocations: 129.5 kB / 0.5142 GB, free: 10.57 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005427/0.3411, allocations: 0.5134 MB / 0.5147 GB, free: 10.12 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.151e-05/0.3412, allocations: 41.59 kB / 0.5147 GB, free: 10.08 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.579e-05/0.3412, allocations: 25.16 kB / 0.5147 GB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.361e-05/0.3412, allocations: 1.188 kB / 0.5147 GB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.213e-05/0.3413, allocations: 35.73 kB / 0.5148 GB, free: 10.02 MB / 382.1 MB Notification: Performance of pre-optimization done (n=5): time 2.225e-06/0.3413, allocations: 7.984 kB / 0.5148 GB, free: 10.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002254/0.3415, allocations: 73.39 kB / 0.5148 GB, free: 9.965 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.849e-05/0.3415, allocations: 60.42 kB / 0.5149 GB, free: 9.895 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.13e-05/0.3416, allocations: 103.2 kB / 0.515 GB, free: 9.793 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.012e-05/0.3416, allocations: 30.81 kB / 0.515 GB, free: 9.758 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.177e-05/0.3416, allocations: 141.9 kB / 0.5152 GB, free: 9.621 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.933e-05/0.3417, allocations: 18.75 kB / 0.5152 GB, free: 9.605 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.701e-05/0.3417, allocations: 20.69 kB / 0.5152 GB, free: 9.582 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.663e-05/0.3417, allocations: 320.3 kB / 0.5155 GB, free: 9.262 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.894e-05/0.3418, allocations: 15.05 kB / 0.5155 GB, free: 9.254 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.931e-05/0.3418, allocations: 7.75 kB / 0.5155 GB, free: 9.254 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.333e-05/0.3419, allocations: 36.94 kB / 0.5156 GB, free: 9.23 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.3419, allocations: 0 / 0.5156 GB, free: 9.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.853e-05/0.342, allocations: 67.11 kB / 0.5156 GB, free: 9.18 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.739e-05/0.342, allocations: 17.42 kB / 0.5156 GB, free: 9.168 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.342, allocations: 0 / 0.5156 GB, free: 9.168 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.566e-05/0.342, allocations: 1.375 kB / 0.5157 GB, free: 9.168 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.651e-05/0.3421, allocations: 6.875 kB / 0.5157 GB, free: 9.168 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/0.3421, allocations: 1.375 kB / 0.5157 GB, free: 9.168 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.282e-05/0.3421, allocations: 1.375 kB / 0.5157 GB, free: 9.168 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.199e-06/0.3421, allocations: 1.375 kB / 0.5157 GB, free: 9.168 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * 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 8.498e-05/0.3422, allocations: 143.4 kB / 0.5158 GB, free: 9.031 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.451e-05/0.3422, allocations: 6.703 kB / 0.5158 GB, free: 9.027 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.035e-05/0.3422, allocations: 11.97 kB / 0.5158 GB, free: 9.016 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.343e-06/0.3422, allocations: 1.375 kB / 0.5158 GB, free: 9.016 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.3422, allocations: 0 / 0.5158 GB, free: 9.016 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.3422, allocations: 1.375 kB / 0.5158 GB, free: 9.016 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002935/0.3425, allocations: 369.6 kB / 0.5162 GB, free: 8.656 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.3425, allocations: 0 / 0.5162 GB, free: 8.656 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.003e-05/0.3426, allocations: 12.23 kB / 0.5162 GB, free: 8.652 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.3426, allocations: 1.375 kB / 0.5162 GB, free: 8.652 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.962e-06/0.3426, allocations: 0 / 0.5162 GB, free: 8.652 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.534e-06/0.3426, allocations: 5.375 kB / 0.5162 GB, free: 8.648 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.3426, allocations: 3.938 kB / 0.5162 GB, free: 8.645 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001213/0.3427, allocations: 163 kB / 0.5163 GB, free: 8.492 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.575e-05/0.3427, allocations: 78.48 kB / 0.5164 GB, free: 8.398 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.389e-05/0.3428, allocations: 4 kB / 0.5164 GB, free: 8.395 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.017e-05/0.3428, allocations: 6.75 kB / 0.5164 GB, free: 8.391 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.584e-05/0.3428, allocations: 5.312 kB / 0.5164 GB, free: 8.387 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.647e-06/0.3428, allocations: 9.359 kB / 0.5164 GB, free: 8.379 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.172e-05/0.3429, allocations: 90.45 kB / 0.5165 GB, free: 8.297 MB / 382.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.3429, allocations: 0 / 0.5165 GB, free: 8.297 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002235/0.3431, allocations: 29.53 kB / 0.5166 GB, free: 8.281 MB / 382.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * 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.0003534/0.3435, allocations: 0.7112 MB / 0.5173 GB, free: 7.59 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000135/0.3436, allocations: 31.23 kB / 0.5173 GB, free: 7.578 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.3436, allocations: 1.375 kB / 0.5173 GB, free: 7.578 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.257e-05/0.3436, allocations: 17.61 kB / 0.5173 GB, free: 7.57 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003186/0.344, allocations: 14.81 kB / 0.5173 GB, free: 7.562 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001233/0.3452, allocations: 1.452 MB / 0.5187 GB, free: 6.227 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001868/0.3454, allocations: 0.7413 MB / 0.5195 GB, free: 5.492 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.385e-05/0.3454, allocations: 8.031 kB / 0.5195 GB, free: 5.488 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.296e-05/0.3455, allocations: 49.77 kB / 0.5195 GB, free: 5.441 MB / 382.1 MB Notification: Performance of SimCode: time 7.12e-07/0.3455, allocations: 0 / 0.5195 GB, free: 5.441 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02613/0.3716, allocations: 1.988 MB / 0.5215 GB, free: 3.707 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.153/8.525, allocations: 7.844 kB / 0.5215 GB, free: 3.699 MB / 382.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_MuxDemux_fmu --startTime=0 --stopTime=2 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_MuxDemux.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/MuxDemux/MuxDemux.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.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: 11.694739907979965]