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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00133/0.001331, allocations: 118.4 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001192/0.001192, allocations: 183 kB / 18.72 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.399/1.399, allocations: 222.9 MB / 242.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2339/0.2339, allocations: 44.18 MB / 336.8 MB, free: 2.656 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001811/0.001811, allocations: 67.83 kB / 470 MB, free: 13.66 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3672/0.369, allocations: 60.82 MB / 0.5184 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.002894/0.372, allocations: 1.545 MB / 0.5199 GB, free: 2.207 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001828/0.3722, allocations: 54.53 kB / 0.52 GB, free: 2.168 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.32e-05/0.3723, allocations: 2.656 kB / 0.52 GB, free: 2.168 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000159/0.3724, allocations: 18.42 kB / 0.52 GB, free: 2.156 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 3.311e-05/0.3725, allocations: 10.05 kB / 0.52 GB, free: 2.148 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.267e-05/0.3726, allocations: 22.67 kB / 0.52 GB, free: 2.137 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001332/0.3727, allocations: 67.78 kB / 0.5201 GB, free: 2.113 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003035/0.373, allocations: 127.9 kB / 0.5202 GB, free: 2.055 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.387e-05/0.3731, allocations: 42.75 kB / 0.5203 GB, free: 2.031 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.512e-05/0.3732, allocations: 39.61 kB / 0.5203 GB, free: 2.012 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.987e-05/0.3732, allocations: 8.25 kB / 0.5203 GB, free: 2.012 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.322e-05/0.3733, allocations: 8.375 kB / 0.5203 GB, free: 2.012 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.592e-05/0.3734, allocations: 66.52 kB / 0.5204 GB, free: 1.988 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.935e-05/0.3735, allocations: 64.27 kB / 0.5204 GB, free: 1.945 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002391/0.3737, allocations: 150.9 kB / 0.5206 GB, free: 1.883 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.3737, allocations: 0.6562 kB / 0.5206 GB, free: 1.883 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3737, allocations: 1 kB / 0.5206 GB, free: 1.883 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.496e-06/0.3737, allocations: 0 / 0.5206 GB, free: 1.883 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.0005398/0.3743, allocations: 446.1 kB / 0.521 GB, free: 1.465 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.418e-05/0.3743, allocations: 9.469 kB / 0.521 GB, free: 1.465 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.326e-05/0.3744, allocations: 64.41 kB / 0.5211 GB, free: 1.406 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.397e-05/0.3745, allocations: 23.27 kB / 0.5211 GB, free: 1.395 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001992/0.3747, allocations: 217.2 kB / 0.5213 GB, free: 1.176 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.29e-05/0.3747, allocations: 17.28 kB / 0.5213 GB, free: 1.168 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.371e-05/0.3748, allocations: 25.09 kB / 0.5214 GB, free: 1.156 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003857/0.3752, allocations: 213.7 kB / 0.5216 GB, free: 1.062 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.301e-05/0.3752, allocations: 1.031 kB / 0.5216 GB, free: 1.062 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.812e-05/0.3752, allocations: 6.156 kB / 0.5216 GB, free: 1.059 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.538e-06/0.3752, allocations: 4.5 kB / 0.5216 GB, free: 1.059 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002453/0.3755, allocations: 129.3 kB / 0.5217 GB, free: 1.027 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006444/0.3761, allocations: 0.519 MB / 0.5222 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001051/0.3762, allocations: 39.06 kB / 0.5222 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.732e-05/0.3763, allocations: 35.42 kB / 0.5223 GB, free: 0.5898 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.48e-05/0.3763, allocations: 1.188 kB / 0.5223 GB, free: 0.5898 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.773e-05/0.3764, allocations: 31.17 kB / 0.5223 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of pre-optimization done (n=5): time 1.142e-06/0.3764, allocations: 1.031 kB / 0.5223 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002457/0.3766, allocations: 76.75 kB / 0.5224 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.51e-05/0.3766, allocations: 52.34 kB / 0.5224 GB, free: 452 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.85e-05/0.3767, allocations: 111.8 kB / 0.5225 GB, free: 344 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.414e-06/0.3767, allocations: 26.86 kB / 0.5226 GB, free: 312 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.728e-05/0.3768, allocations: 142.8 kB / 0.5227 GB, free: 184 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.723e-05/0.3768, allocations: 15.45 kB / 0.5227 GB, free: 172 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.207e-05/0.3769, allocations: 17.94 kB / 0.5227 GB, free: 152 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001309/0.377, allocations: 327.4 kB / 0.523 GB, free: 15.82 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.934e-05/0.3771, allocations: 12.62 kB / 0.523 GB, free: 15.82 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.065e-05/0.3771, allocations: 13.27 kB / 0.5231 GB, free: 15.82 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.208e-05/0.3772, allocations: 32.94 kB / 0.5231 GB, free: 15.8 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.3772, allocations: 0 / 0.5231 GB, free: 15.8 MB / 398.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001298/0.3774, allocations: 56.91 kB / 0.5231 GB, free: 15.77 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.548e-05/0.3774, allocations: 8.656 kB / 0.5232 GB, free: 15.77 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.3774, allocations: 0 / 0.5232 GB, free: 15.77 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.406e-05/0.3774, allocations: 5.578 kB / 0.5232 GB, free: 15.76 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.048e-05/0.3775, allocations: 9.219 kB / 0.5232 GB, free: 15.76 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.3775, allocations: 4.594 kB / 0.5232 GB, free: 15.76 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.264e-05/0.3775, allocations: 15.33 kB / 0.5232 GB, free: 15.75 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.753e-06/0.3776, allocations: 1.625 kB / 0.5232 GB, free: 15.75 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.0001235/0.3777, allocations: 138 kB / 0.5233 GB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.359e-05/0.3777, allocations: 6.859 kB / 0.5233 GB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.183e-05/0.3777, allocations: 5.719 kB / 0.5233 GB, free: 15.61 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.3777, allocations: 1.156 kB / 0.5233 GB, free: 15.61 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/0.3778, allocations: 8.656 kB / 0.5233 GB, free: 15.61 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.494e-06/0.3778, allocations: 0 / 0.5233 GB, free: 15.61 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004522/0.3782, allocations: 373.6 kB / 0.5237 GB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.3782, allocations: 0 / 0.5237 GB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.297e-05/0.3783, allocations: 10.75 kB / 0.5237 GB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.761e-06/0.3783, allocations: 5.453 kB / 0.5237 GB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.472e-06/0.3783, allocations: 0.6562 kB / 0.5237 GB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.3783, allocations: 0 / 0.5237 GB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.055e-06/0.3783, allocations: 5.406 kB / 0.5237 GB, free: 15.26 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001746/0.3785, allocations: 165.1 kB / 0.5239 GB, free: 15.11 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.66e-05/0.3786, allocations: 83.3 kB / 0.524 GB, free: 15.02 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.317e-05/0.3786, allocations: 1.312 kB / 0.524 GB, free: 15.02 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.146e-05/0.3786, allocations: 2.25 kB / 0.524 GB, free: 15.02 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.819e-05/0.3787, allocations: 11.25 kB / 0.524 GB, free: 15.01 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.076e-06/0.3787, allocations: 1.406 kB / 0.524 GB, free: 15.01 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.618e-05/0.3788, allocations: 95.58 kB / 0.5241 GB, free: 14.92 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3788, allocations: 0 / 0.5241 GB, free: 14.92 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000241/0.379, allocations: 31.22 kB / 0.5241 GB, free: 14.91 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.0006529/0.3797, allocations: 0.697 MB / 0.5248 GB, free: 14.24 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000151/0.3798, allocations: 41.86 kB / 0.5248 GB, free: 14.22 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.3799, allocations: 0 / 0.5248 GB, free: 14.22 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.183e-05/0.3799, allocations: 23.41 kB / 0.5248 GB, free: 14.21 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003213/0.3802, allocations: 15.56 kB / 0.5248 GB, free: 14.21 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00173/0.382, allocations: 1.441 MB / 0.5263 GB, free: 12.94 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004018/0.3824, allocations: 0.7348 MB / 0.527 GB, free: 12.24 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.461e-05/0.3824, allocations: 6.969 kB / 0.527 GB, free: 12.23 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.651e-05/0.3825, allocations: 48.58 kB / 0.527 GB, free: 12.2 MB / 398.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3825, allocations: 3.938 kB / 0.527 GB, free: 12.19 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02643/0.409, allocations: 1.986 MB / 0.529 GB, free: 11.52 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.857/8.266, allocations: 13.88 kB / 0.529 GB, free: 11.51 MB / 398.1 MB (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 ModelicaTest_4_0_0_ModelicaTest_Blocks_MuxDemux.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux_res.csv","/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) Reference file matches