Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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.001813/0.001813, allocations: 119 kB / 18.5 MB, free: 4.434 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.002125/0.002125, allocations: 190.9 kB / 21.44 MB, free: 1.504 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.482/1.482, allocations: 225.6 MB / 249.8 MB, free: 3.734 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.239/0.239, allocations: 44.92 MB / 349.6 MB, free: 1.746 MB / 270.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_ModelicaTest_Blocks_MuxDemux",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.MuxDemux,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_MuxDemux",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001921/0.001921, allocations: 67.58 kB / 491.8 MB, free: 30.2 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1459/0.1478, allocations: 64.27 MB / 0.543 GB, free: 4.113 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.003065/0.1509, allocations: 1.541 MB / 0.5445 GB, free: 2.555 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001503/0.151, allocations: 51.77 kB / 0.5446 GB, free: 2.504 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.817e-05/0.1511, allocations: 4 kB / 0.5446 GB, free: 2.5 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001453/0.1512, allocations: 11.86 kB / 0.5446 GB, free: 2.488 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.642e-05/0.1513, allocations: 11.86 kB / 0.5446 GB, free: 2.477 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.325e-05/0.1514, allocations: 27.97 kB / 0.5446 GB, free: 2.449 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001189/0.1515, allocations: 71.81 kB / 0.5447 GB, free: 2.379 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002914/0.1518, allocations: 107.7 kB / 0.5448 GB, free: 2.266 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.102e-05/0.1518, allocations: 35.84 kB / 0.5448 GB, free: 2.23 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.497e-05/0.1519, allocations: 47.83 kB / 0.5449 GB, free: 2.184 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.306e-05/0.1519, allocations: 8 kB / 0.5449 GB, free: 2.176 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.515e-05/0.1519, allocations: 8 kB / 0.5449 GB, free: 2.168 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.843e-05/0.152, allocations: 67.81 kB / 0.5449 GB, free: 2.102 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 8.473e-05/0.1521, allocations: 63.61 kB / 0.545 GB, free: 2.039 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002036/0.1523, allocations: 151.3 kB / 0.5451 GB, free: 1.891 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.1523, allocations: 3.938 kB / 0.5451 GB, free: 1.887 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1523, allocations: 4 kB / 0.5452 GB, free: 1.883 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.035e-05/0.1523, allocations: 0 / 0.5452 GB, free: 1.883 MB / 398.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.00059/0.1529, allocations: 443.2 kB / 0.5456 GB, free: 1.402 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.856e-05/0.153, allocations: 12.02 kB / 0.5456 GB, free: 1.391 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001118/0.1531, allocations: 63.12 kB / 0.5456 GB, free: 1.316 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.362e-05/0.1531, allocations: 20.8 kB / 0.5457 GB, free: 1.297 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002875/0.1534, allocations: 224.1 kB / 0.5459 GB, free: 1.039 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.264e-05/0.1534, allocations: 16.81 kB / 0.5459 GB, free: 1.023 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.426e-05/0.1535, allocations: 16.38 kB / 0.5459 GB, free: 1.008 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003989/0.1539, allocations: 219.5 kB / 0.5461 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.662e-05/0.1539, allocations: 0 / 0.5461 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.093e-05/0.1539, allocations: 8 kB / 0.5461 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.095e-06/0.1539, allocations: 8 kB / 0.5461 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002432/0.1542, allocations: 129.7 kB / 0.5463 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007462/0.1549, allocations: 0.5141 MB / 0.5468 GB, free: 80 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.854e-05/0.155, allocations: 34.56 kB / 0.5468 GB, free: 36 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.679e-05/0.1551, allocations: 28.97 kB / 0.5468 GB, free: 4 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.414e-05/0.1551, allocations: 0 / 0.5468 GB, free: 4 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.215e-05/0.1551, allocations: 34.5 kB / 0.5469 GB, free: 15.96 MB / 414.1 MB Notification: Performance of pre-optimization done (n=5): time 1.062e-06/0.1551, allocations: 4 kB / 0.5469 GB, free: 15.96 MB / 414.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002522/0.1554, allocations: 77.62 kB / 0.5469 GB, free: 15.88 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.324e-05/0.1554, allocations: 51.41 kB / 0.547 GB, free: 15.81 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001052/0.1555, allocations: 113.8 kB / 0.5471 GB, free: 15.69 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.542e-05/0.1556, allocations: 25.7 kB / 0.5471 GB, free: 15.66 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.772e-05/0.1557, allocations: 144.2 kB / 0.5473 GB, free: 15.52 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.325e-05/0.1557, allocations: 19.84 kB / 0.5473 GB, free: 15.5 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.455e-05/0.1557, allocations: 13.72 kB / 0.5473 GB, free: 15.48 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001496/0.1559, allocations: 326.8 kB / 0.5476 GB, free: 15.15 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.792e-05/0.1559, allocations: 8 kB / 0.5476 GB, free: 15.14 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.584e-05/0.1559, allocations: 23.86 kB / 0.5476 GB, free: 15.12 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.733e-05/0.156, allocations: 32.84 kB / 0.5477 GB, free: 15.08 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.156, allocations: 0 / 0.5477 GB, free: 15.08 MB / 414.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.00012/0.1561, allocations: 57.69 kB / 0.5477 GB, free: 15.02 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.524e-05/0.1562, allocations: 4 kB / 0.5477 GB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.1562, allocations: 8 kB / 0.5477 GB, free: 15.01 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.394e-05/0.1562, allocations: 0 / 0.5477 GB, free: 15.01 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.045e-05/0.1563, allocations: 11.98 kB / 0.5477 GB, free: 15 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.839e-06/0.1563, allocations: 0 / 0.5477 GB, free: 15 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.571e-05/0.1563, allocations: 3.953 kB / 0.5477 GB, free: 14.99 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.934e-06/0.1563, allocations: 4.438 kB / 0.5477 GB, free: 14.99 MB / 414.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 0.0001116/0.1564, allocations: 141.7 kB / 0.5479 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.303e-05/0.1564, allocations: 7.938 kB / 0.5479 GB, free: 14.83 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.598e-05/0.1565, allocations: 11.95 kB / 0.5479 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.1565, allocations: 4 kB / 0.5479 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.1565, allocations: 4 kB / 0.5479 GB, free: 14.81 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.1565, allocations: 0 / 0.5479 GB, free: 14.81 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004105/0.1569, allocations: 370.4 kB / 0.5483 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.1569, allocations: 0 / 0.5483 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.01e-05/0.1569, allocations: 11.98 kB / 0.5483 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.1569, allocations: 4 kB / 0.5483 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.652e-06/0.1569, allocations: 0 / 0.5483 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.1569, allocations: 0 / 0.5483 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.1569, allocations: 7.938 kB / 0.5483 GB, free: 14.37 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001723/0.1571, allocations: 159.5 kB / 0.5484 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.208e-05/0.1572, allocations: 85.05 kB / 0.5485 GB, free: 14.1 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.146e-05/0.1572, allocations: 0 / 0.5485 GB, free: 14.1 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.046e-05/0.1572, allocations: 4 kB / 0.5485 GB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.71e-05/0.1573, allocations: 7.938 kB / 0.5485 GB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.158e-06/0.1573, allocations: 4 kB / 0.5485 GB, free: 14.08 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.473e-05/0.1573, allocations: 91.56 kB / 0.5486 GB, free: 13.99 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1573, allocations: 3.938 kB / 0.5486 GB, free: 13.99 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002257/0.1575, allocations: 35.78 kB / 0.5487 GB, free: 13.95 MB / 414.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.0005671/0.1581, allocations: 0.693 MB / 0.5493 GB, free: 13.23 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001343/0.1583, allocations: 39.97 kB / 0.5494 GB, free: 13.2 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.1583, allocations: 0 / 0.5494 GB, free: 13.2 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.359e-05/0.1583, allocations: 20.25 kB / 0.5494 GB, free: 13.18 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003273/0.1586, allocations: 20.05 kB / 0.5494 GB, free: 13.16 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001646/0.1603, allocations: 1.44 MB / 0.5508 GB, free: 11.64 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004069/0.1607, allocations: 0.7391 MB / 0.5515 GB, free: 10.88 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 2.993e-05/0.1607, allocations: 4 kB / 0.5515 GB, free: 10.87 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.152e-05/0.1608, allocations: 51.41 kB / 0.5516 GB, free: 10.82 MB / 414.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1608, allocations: 0 / 0.5516 GB, free: 10.82 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02427/0.185, allocations: 1.995 MB / 0.5535 GB, free: 8.895 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.664/7.849, allocations: 3.938 kB / 0.5535 GB, free: 8.891 MB / 414.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_MuxDemux_fmu --startTime=0 --stopTime=2 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_MuxDemux.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/MuxDemux/MuxDemux.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_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.06008868990466]