Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Blocks.MuxDemux.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.00189/0.00189, allocations: 113 kB / 18.49 MB, free: 4.539 MB / 14.72 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.002278/0.002278, allocations: 217.4 kB / 21.46 MB, free: 1.586 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.552/1.552, allocations: 230.6 MB / 254.8 MB, free: 15.23 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2335/0.2335, allocations: 46.92 MB / 357.8 MB, free: 10.32 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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(ModelicaTest.Blocks.MuxDemux,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_MuxDemux",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.MuxDemux,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_MuxDemux",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002797/0.002797, allocations: 59.91 kB / 0.4916 GB, free: 7.965 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.143/0.1458, allocations: 65.99 MB / 0.5561 GB, free: 5.844 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.003941/0.1497, allocations: 1.568 MB / 0.5576 GB, free: 4.262 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003143/0.15, allocations: 67.75 kB / 0.5576 GB, free: 4.195 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.759e-05/0.1501, allocations: 0 / 0.5576 GB, free: 4.195 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001666/0.1503, allocations: 15.86 kB / 0.5577 GB, free: 4.18 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 3.429e-05/0.1503, allocations: 3.938 kB / 0.5577 GB, free: 4.176 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001612/0.1505, allocations: 31.91 kB / 0.5577 GB, free: 4.145 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.000145/0.1506, allocations: 75.8 kB / 0.5578 GB, free: 4.07 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002862/0.1509, allocations: 113.6 kB / 0.5579 GB, free: 3.953 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.072e-05/0.151, allocations: 31.92 kB / 0.5579 GB, free: 3.922 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.71e-05/0.151, allocations: 43.83 kB / 0.558 GB, free: 3.879 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 3.003e-05/0.1511, allocations: 12 kB / 0.558 GB, free: 3.867 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.155e-05/0.1511, allocations: 8 kB / 0.558 GB, free: 3.859 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001043/0.1512, allocations: 67.81 kB / 0.558 GB, free: 3.793 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 8.783e-05/0.1513, allocations: 63.61 kB / 0.5581 GB, free: 3.73 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002264/0.1515, allocations: 151.3 kB / 0.5582 GB, free: 3.582 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.1515, allocations: 0 / 0.5582 GB, free: 3.582 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1515, allocations: 0 / 0.5582 GB, free: 3.582 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.584e-06/0.1515, allocations: 11.94 kB / 0.5583 GB, free: 3.57 MB / 414.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.0006868/0.1522, allocations: 443.1 kB / 0.5587 GB, free: 3.09 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.129e-05/0.1523, allocations: 12.03 kB / 0.5587 GB, free: 3.078 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.592e-05/0.1523, allocations: 12.62 kB / 0.5587 GB, free: 3.062 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001033/0.1524, allocations: 67.23 kB / 0.5588 GB, free: 2.988 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.669e-05/0.1525, allocations: 24.8 kB / 0.5588 GB, free: 2.965 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003249/0.1528, allocations: 232 kB / 0.559 GB, free: 2.699 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.46e-05/0.1528, allocations: 16.94 kB / 0.559 GB, free: 2.684 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.165e-05/0.1529, allocations: 20.38 kB / 0.559 GB, free: 2.664 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004395/0.1533, allocations: 225 kB / 0.5593 GB, free: 2.438 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.859e-05/0.1534, allocations: 0 / 0.5593 GB, free: 2.438 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.407e-05/0.1534, allocations: 12 kB / 0.5593 GB, free: 2.426 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.516e-06/0.1534, allocations: 4 kB / 0.5593 GB, free: 2.422 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002854/0.1537, allocations: 146.1 kB / 0.5594 GB, free: 2.277 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009094/0.1546, allocations: 0.5765 MB / 0.56 GB, free: 1.648 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000119/0.1547, allocations: 50.5 kB / 0.56 GB, free: 1.59 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.949e-05/0.1548, allocations: 32.78 kB / 0.5601 GB, free: 1.555 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.974e-05/0.1548, allocations: 0 / 0.5601 GB, free: 1.555 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.611e-05/0.1548, allocations: 42.56 kB / 0.5601 GB, free: 1.504 MB / 414.1 MB Notification: Performance of pre-optimization done (n=7): time 5.13e-06/0.1549, allocations: 3.984 kB / 0.5601 GB, free: 1.5 MB / 414.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006128/0.1555, allocations: 177.3 kB / 0.5603 GB, free: 1.32 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.901e-05/0.1555, allocations: 51.41 kB / 0.5603 GB, free: 1.258 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.78e-05/0.1556, allocations: 113.8 kB / 0.5604 GB, free: 1.137 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.824e-05/0.1556, allocations: 33.7 kB / 0.5605 GB, free: 1.098 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001013/0.1557, allocations: 144.1 kB / 0.5606 GB, free: 0.9531 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.647e-05/0.1558, allocations: 31.73 kB / 0.5606 GB, free: 0.9219 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.399e-05/0.1558, allocations: 17.72 kB / 0.5606 GB, free: 0.8984 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.156, allocations: 322.8 kB / 0.5609 GB, free: 0.5742 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.833e-05/0.156, allocations: 15.98 kB / 0.561 GB, free: 0.5586 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.089e-05/0.1561, allocations: 34.56 kB / 0.561 GB, free: 0.5195 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001458/0.1563, allocations: 61.62 kB / 0.5611 GB, free: 464 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.32e-07/0.1563, allocations: 0 / 0.5611 GB, free: 464 kB / 414.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002009/0.1565, allocations: 85.62 kB / 0.5611 GB, free: 372 kB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.687e-05/0.1565, allocations: 5.875 kB / 0.5611 GB, free: 368 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.1565, allocations: 4 kB / 0.5611 GB, free: 364 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.431e-05/0.1565, allocations: 4.031 kB / 0.5612 GB, free: 360 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001047/0.1566, allocations: 19.92 kB / 0.5612 GB, free: 340 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.7e-05/0.1567, allocations: 4 kB / 0.5612 GB, free: 336 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.64e-05/0.1567, allocations: 11.98 kB / 0.5612 GB, free: 324 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.588e-06/0.1567, allocations: 4 kB / 0.5612 GB, free: 320 kB / 414.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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.0001199/0.1568, allocations: 129.8 kB / 0.5613 GB, free: 180 kB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.185e-05/0.1569, allocations: 7.953 kB / 0.5613 GB, free: 172 kB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.16e-05/0.1569, allocations: 16.3 kB / 0.5613 GB, free: 156 kB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.1569, allocations: 8 kB / 0.5613 GB, free: 148 kB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.632e-06/0.1569, allocations: 3.938 kB / 0.5613 GB, free: 144 kB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.1569, allocations: 0 / 0.5613 GB, free: 144 kB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006234/0.1575, allocations: 426.6 kB / 0.5618 GB, free: 15.66 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/0.1575, allocations: 0 / 0.5618 GB, free: 15.66 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.607e-05/0.1576, allocations: 19.83 kB / 0.5618 GB, free: 15.65 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.991e-06/0.1576, allocations: 3.938 kB / 0.5618 GB, free: 15.64 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.029e-05/0.1576, allocations: 4 kB / 0.5618 GB, free: 15.64 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.1576, allocations: 7.938 kB / 0.5618 GB, free: 15.63 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.1576, allocations: 0 / 0.5618 GB, free: 15.63 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002457/0.1579, allocations: 179.5 kB / 0.562 GB, free: 15.44 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.6e-05/0.158, allocations: 81.05 kB / 0.562 GB, free: 15.34 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.181e-05/0.158, allocations: 11.98 kB / 0.562 GB, free: 15.33 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.327e-05/0.1581, allocations: 0 / 0.562 GB, free: 15.33 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.534e-05/0.1581, allocations: 8 kB / 0.5621 GB, free: 15.32 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.358e-06/0.1581, allocations: 0 / 0.5621 GB, free: 15.32 MB / 430.1 MB Notification: Performance of sorting global known variables: time 5.784e-05/0.1582, allocations: 95.25 kB / 0.5621 GB, free: 15.23 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1582, allocations: 0 / 0.5621 GB, free: 15.23 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002414/0.1584, allocations: 12 kB / 0.5622 GB, free: 15.22 MB / 430.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 (8): * Single equations (assignments): 8 * 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.0007797/0.1592, allocations: 0.7475 MB / 0.5629 GB, free: 14.45 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.000241/0.1594, allocations: 51.95 kB / 0.5629 GB, free: 14.39 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.1594, allocations: 0 / 0.5629 GB, free: 14.39 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 7.888e-05/0.1595, allocations: 23.98 kB / 0.563 GB, free: 14.37 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003593/0.1599, allocations: 12 kB / 0.563 GB, free: 14.36 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00206/0.1619, allocations: 1.544 MB / 0.5645 GB, free: 12.73 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000435/0.1623, allocations: 0.7471 MB / 0.5652 GB, free: 11.96 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 4.353e-05/0.1624, allocations: 12.42 kB / 0.5652 GB, free: 11.95 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.151e-05/0.1625, allocations: 47.42 kB / 0.5653 GB, free: 11.9 MB / 430.1 MB Notification: Performance of SimCode: time 7.41e-07/0.1625, allocations: 0 / 0.5653 GB, free: 11.9 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01894/0.1814, allocations: 2.232 MB / 0.5674 GB, free: 9.75 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.522/8.703, allocations: 4.062 kB / 0.5675 GB, free: 9.746 MB / 430.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.MuxDemux.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.MuxDemux.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.MuxDemux.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.MuxDemux.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Blocks.MuxDemux_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Blocks_MuxDemux_fmu --startTime=0 --stopTime=2 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Blocks_MuxDemux.fmu > ModelicaTest_4.1.0_ModelicaTest.Blocks.MuxDemux.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.MuxDemux_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/MuxDemux/MuxDemux.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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: 12.098946974962018]