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.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.001713/0.001713, allocations: 113.2 kB / 20.43 MB, free: 1.449 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.002225/0.002225, allocations: 214.2 kB / 23.74 MB, free: 4.656 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.495/1.495, allocations: 230.6 MB / 257.5 MB, free: 8.02 MB / 206.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.2315/0.2315, allocations: 44.92 MB / 358.8 MB, free: 6.277 MB / 286.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.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_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: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002108/0.002108, allocations: 68.08 kB / 0.4931 GB, free: 10.71 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3312/0.3333, allocations: 65.47 MB / 0.557 GB, free: 7.523 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.003694/0.337, allocations: 1.574 MB / 0.5586 GB, free: 6.188 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.000316/0.3374, allocations: 59.75 kB / 0.5586 GB, free: 6.129 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.199e-05/0.3374, allocations: 7.938 kB / 0.5586 GB, free: 6.121 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001727/0.3376, allocations: 23.84 kB / 0.5586 GB, free: 6.098 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.701e-05/0.3376, allocations: 3.938 kB / 0.5586 GB, free: 6.094 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001635/0.3378, allocations: 19.98 kB / 0.5587 GB, free: 6.074 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001432/0.3379, allocations: 75.75 kB / 0.5587 GB, free: 6 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002787/0.3382, allocations: 93.42 kB / 0.5588 GB, free: 5.902 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.157e-05/0.3383, allocations: 35.92 kB / 0.5589 GB, free: 5.867 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.648e-05/0.3384, allocations: 43.83 kB / 0.5589 GB, free: 5.824 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.888e-05/0.3384, allocations: 8 kB / 0.5589 GB, free: 5.816 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.313e-05/0.3384, allocations: 8 kB / 0.5589 GB, free: 5.809 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001347/0.3386, allocations: 67.83 kB / 0.559 GB, free: 5.742 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 9.412e-05/0.3387, allocations: 71.59 kB / 0.5591 GB, free: 5.672 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002232/0.3389, allocations: 147.3 kB / 0.5592 GB, free: 5.527 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.3389, allocations: 0 / 0.5592 GB, free: 5.527 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3389, allocations: 4 kB / 0.5592 GB, free: 5.523 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.204e-05/0.3389, allocations: 0 / 0.5592 GB, free: 5.523 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.0006089/0.3395, allocations: 372.3 kB / 0.5596 GB, free: 5.133 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.163e-05/0.3396, allocations: 12.03 kB / 0.5596 GB, free: 5.121 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001305/0.3397, allocations: 67.11 kB / 0.5596 GB, free: 5.043 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.199e-05/0.3398, allocations: 20.84 kB / 0.5596 GB, free: 5.023 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002672/0.34, allocations: 158.3 kB / 0.5598 GB, free: 4.844 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.034e-05/0.34, allocations: 12.81 kB / 0.5598 GB, free: 4.832 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.478e-05/0.3401, allocations: 20.38 kB / 0.5598 GB, free: 4.812 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004297/0.3405, allocations: 215.5 kB / 0.56 GB, free: 4.594 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.755e-05/0.3405, allocations: 4 kB / 0.56 GB, free: 4.59 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.974e-05/0.3405, allocations: 4 kB / 0.56 GB, free: 4.586 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.815e-05/0.3406, allocations: 4 kB / 0.56 GB, free: 4.582 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002627/0.3408, allocations: 129.7 kB / 0.5602 GB, free: 4.457 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007855/0.3416, allocations: 490.8 kB / 0.5606 GB, free: 3.934 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001199/0.3417, allocations: 38.56 kB / 0.5607 GB, free: 3.887 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.163e-05/0.3418, allocations: 28.97 kB / 0.5607 GB, free: 3.855 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.691e-05/0.3418, allocations: 4 kB / 0.5607 GB, free: 3.852 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.475e-05/0.3419, allocations: 34.5 kB / 0.5607 GB, free: 3.809 MB / 398.1 MB Notification: Performance of pre-optimization done (n=5): time 1.192e-06/0.3419, allocations: 3.938 kB / 0.5607 GB, free: 3.805 MB / 398.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002795/0.3421, allocations: 77.61 kB / 0.5608 GB, free: 3.723 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.455e-05/0.3422, allocations: 55.39 kB / 0.5609 GB, free: 3.656 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00011/0.3423, allocations: 113.8 kB / 0.561 GB, free: 3.535 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.203e-05/0.3423, allocations: 25.7 kB / 0.561 GB, free: 3.504 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001134/0.3424, allocations: 152.1 kB / 0.5611 GB, free: 3.352 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.347e-05/0.3425, allocations: 11.91 kB / 0.5612 GB, free: 3.34 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.741e-05/0.3425, allocations: 13.72 kB / 0.5612 GB, free: 3.32 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001605/0.3427, allocations: 322.8 kB / 0.5615 GB, free: 2.996 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.697e-05/0.3427, allocations: 11.98 kB / 0.5615 GB, free: 2.984 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.496e-05/0.3427, allocations: 12 kB / 0.5615 GB, free: 2.973 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.873e-05/0.3428, allocations: 36.78 kB / 0.5615 GB, free: 2.934 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.3428, allocations: 4 kB / 0.5615 GB, free: 2.93 MB / 398.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001348/0.343, allocations: 65.62 kB / 0.5616 GB, free: 2.859 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.779e-05/0.343, allocations: 4 kB / 0.5616 GB, free: 2.855 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.002e-06/0.343, allocations: 0 / 0.5616 GB, free: 2.855 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.42e-05/0.343, allocations: 0 / 0.5616 GB, free: 2.855 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.569e-05/0.3431, allocations: 12.44 kB / 0.5616 GB, free: 2.844 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.4e-06/0.3431, allocations: 0 / 0.5616 GB, free: 2.844 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.357e-05/0.3431, allocations: 11.92 kB / 0.5616 GB, free: 2.832 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.961e-06/0.3431, allocations: 0 / 0.5616 GB, free: 2.832 MB / 398.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.0001242/0.3433, allocations: 145.6 kB / 0.5618 GB, free: 2.68 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.629e-05/0.3433, allocations: 8 kB / 0.5618 GB, free: 2.672 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.402e-05/0.3433, allocations: 8.047 kB / 0.5618 GB, free: 2.66 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.3433, allocations: 4 kB / 0.5618 GB, free: 2.656 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.3433, allocations: 0 / 0.5618 GB, free: 2.656 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.394e-06/0.3433, allocations: 0 / 0.5618 GB, free: 2.656 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004147/0.3437, allocations: 345.5 kB / 0.5621 GB, free: 2.27 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.3437, allocations: 0 / 0.5621 GB, free: 2.27 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.679e-05/0.3438, allocations: 15.94 kB / 0.5621 GB, free: 2.254 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.3438, allocations: 0 / 0.5621 GB, free: 2.254 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.881e-06/0.3438, allocations: 0 / 0.5621 GB, free: 2.254 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.388e-06/0.3438, allocations: 4 kB / 0.5621 GB, free: 2.25 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.3438, allocations: 3.938 kB / 0.5621 GB, free: 2.246 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001896/0.344, allocations: 155.5 kB / 0.5623 GB, free: 2.078 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.368e-05/0.344, allocations: 7.953 kB / 0.5623 GB, free: 2.07 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.239e-05/0.344, allocations: 3.938 kB / 0.5623 GB, free: 2.066 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.84e-05/0.3441, allocations: 11.98 kB / 0.5623 GB, free: 2.055 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.474e-05/0.3441, allocations: 3.938 kB / 0.5623 GB, free: 2.051 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.166e-06/0.3441, allocations: 0 / 0.5623 GB, free: 2.051 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.426e-05/0.3442, allocations: 91.27 kB / 0.5624 GB, free: 1.961 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3442, allocations: 0 / 0.5624 GB, free: 1.961 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002483/0.3444, allocations: 35.78 kB / 0.5624 GB, free: 1.926 MB / 398.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.0005702/0.345, allocations: 0.7046 MB / 0.5631 GB, free: 1.195 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001376/0.3451, allocations: 32.22 kB / 0.5632 GB, free: 1.164 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.3451, allocations: 3.938 kB / 0.5632 GB, free: 1.16 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.699e-05/0.3452, allocations: 16.12 kB / 0.5632 GB, free: 1.145 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003238/0.3455, allocations: 20.45 kB / 0.5632 GB, free: 1.125 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001739/0.3472, allocations: 1.446 MB / 0.5646 GB, free: 15.6 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004032/0.3476, allocations: 0.7353 MB / 0.5653 GB, free: 14.84 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.609e-05/0.3477, allocations: 7.781 kB / 0.5653 GB, free: 14.83 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.183e-05/0.3477, allocations: 47.41 kB / 0.5654 GB, free: 14.78 MB / 414.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3477, allocations: 0 / 0.5654 GB, free: 14.78 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02873/0.3765, allocations: 2.068 MB / 0.5674 GB, free: 12.84 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.22/11.6, allocations: 15.56 kB / 0.5674 GB, free: 12.84 MB / 414.1 MB " [Timeout remaining time 648] (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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/MuxDemux/MuxDemux.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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: 14.654893636005]