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.001143/0.001143, allocations: 113.2 kB / 17.78 MB, free: 5.129 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.001854/0.001854, allocations: 181 kB / 18.71 MB, free: 4.207 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.442/1.442, allocations: 222.9 MB / 242.4 MB, free: 15.04 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.2267/0.2267, allocations: 44.19 MB / 336.8 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001467/0.001467, allocations: 63.91 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4262/0.4276, allocations: 60.81 MB / 0.5184 GB, free: 3.281 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.003135/0.4308, allocations: 1.545 MB / 0.5199 GB, free: 2.203 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001771/0.431, allocations: 50.3 kB / 0.52 GB, free: 2.168 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.191e-05/0.4311, allocations: 0.6562 kB / 0.52 GB, free: 2.168 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001577/0.4313, allocations: 24.14 kB / 0.52 GB, free: 2.152 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.009e-05/0.4314, allocations: 15.42 kB / 0.52 GB, free: 2.141 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.437e-05/0.4315, allocations: 23.89 kB / 0.52 GB, free: 2.129 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001191/0.4316, allocations: 68.22 kB / 0.5201 GB, free: 2.102 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002938/0.4319, allocations: 120.9 kB / 0.5202 GB, free: 2.051 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.641e-05/0.432, allocations: 43.55 kB / 0.5203 GB, free: 2.027 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.031e-05/0.432, allocations: 39.75 kB / 0.5203 GB, free: 2.008 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.401e-05/0.4321, allocations: 7.25 kB / 0.5203 GB, free: 2.008 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.8e-05/0.4321, allocations: 12.81 kB / 0.5203 GB, free: 2.004 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.276e-05/0.4322, allocations: 70.91 kB / 0.5204 GB, free: 1.977 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.655e-05/0.4323, allocations: 63.06 kB / 0.5204 GB, free: 1.934 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002322/0.4325, allocations: 156 kB / 0.5206 GB, free: 1.867 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.4325, allocations: 0 / 0.5206 GB, free: 1.867 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.4325, allocations: 0 / 0.5206 GB, free: 1.867 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.941e-06/0.4325, allocations: 0 / 0.5206 GB, free: 1.867 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.0005019/0.433, allocations: 438.7 kB / 0.521 GB, free: 1.457 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.407e-05/0.4331, allocations: 9.938 kB / 0.521 GB, free: 1.457 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.855e-05/0.4332, allocations: 63.34 kB / 0.5211 GB, free: 1.398 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.509e-05/0.4332, allocations: 23.27 kB / 0.5211 GB, free: 1.387 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002016/0.4334, allocations: 221.6 kB / 0.5213 GB, free: 1.164 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.103e-05/0.4335, allocations: 24.94 kB / 0.5213 GB, free: 1.148 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.775e-05/0.4335, allocations: 17.44 kB / 0.5213 GB, free: 1.145 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003871/0.4339, allocations: 210.3 kB / 0.5215 GB, free: 1.055 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.116e-05/0.4339, allocations: 0 / 0.5215 GB, free: 1.055 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.785e-05/0.4339, allocations: 5.922 kB / 0.5216 GB, free: 1.051 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.524e-06/0.434, allocations: 5.531 kB / 0.5216 GB, free: 1.051 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002416/0.4342, allocations: 129.6 kB / 0.5217 GB, free: 1.02 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006403/0.4349, allocations: 0.5156 MB / 0.5222 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.856e-05/0.435, allocations: 46.27 kB / 0.5222 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.381e-05/0.435, allocations: 27.33 kB / 0.5223 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.417e-05/0.4351, allocations: 1.094 kB / 0.5223 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.941e-05/0.4351, allocations: 35.45 kB / 0.5223 GB, free: 0.543 MB / 382.1 MB Notification: Performance of pre-optimization done (n=5): time 1.222e-06/0.4351, allocations: 1.188 kB / 0.5223 GB, free: 0.543 MB / 382.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002403/0.4353, allocations: 77.28 kB / 0.5224 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.065e-05/0.4354, allocations: 52.44 kB / 0.5224 GB, free: 444 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.136e-05/0.4354, allocations: 106.7 kB / 0.5225 GB, free: 340 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.606e-06/0.4355, allocations: 26.77 kB / 0.5225 GB, free: 308 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.445e-05/0.4355, allocations: 144.3 kB / 0.5227 GB, free: 180 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.877e-05/0.4356, allocations: 23.17 kB / 0.5227 GB, free: 160 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.983e-05/0.4356, allocations: 17.92 kB / 0.5227 GB, free: 140 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001121/0.4357, allocations: 318 kB / 0.523 GB, free: 15.82 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.705e-05/0.4358, allocations: 12.66 kB / 0.523 GB, free: 15.82 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.859e-05/0.4358, allocations: 14.27 kB / 0.5231 GB, free: 15.81 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.322e-05/0.4359, allocations: 31.86 kB / 0.5231 GB, free: 15.8 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.4359, allocations: 1.344 kB / 0.5231 GB, free: 15.8 MB / 398.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001256/0.436, allocations: 68.94 kB / 0.5231 GB, free: 15.75 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.734e-05/0.4361, allocations: 5.031 kB / 0.5232 GB, free: 15.75 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.99e-06/0.4361, allocations: 0 / 0.5232 GB, free: 15.75 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.782e-05/0.4361, allocations: 1.781 kB / 0.5232 GB, free: 15.75 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.394e-05/0.4362, allocations: 13.16 kB / 0.5232 GB, free: 15.75 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.001e-06/0.4362, allocations: 4.453 kB / 0.5232 GB, free: 15.74 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.069e-05/0.4362, allocations: 10.59 kB / 0.5232 GB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.404e-06/0.4362, allocations: 1.953 kB / 0.5232 GB, free: 15.73 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.0001183/0.4364, allocations: 141.9 kB / 0.5233 GB, free: 15.61 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.44e-05/0.4364, allocations: 7.297 kB / 0.5233 GB, free: 15.6 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.294e-05/0.4364, allocations: 8.625 kB / 0.5233 GB, free: 15.59 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.4364, allocations: 1.219 kB / 0.5233 GB, free: 15.59 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.4364, allocations: 0.6094 kB / 0.5233 GB, free: 15.59 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.4365, allocations: 1.062 kB / 0.5233 GB, free: 15.59 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004079/0.4369, allocations: 365.2 kB / 0.5237 GB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.4369, allocations: 0 / 0.5237 GB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.462e-05/0.4369, allocations: 10.28 kB / 0.5237 GB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.4369, allocations: 5.062 kB / 0.5237 GB, free: 15.26 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.028e-05/0.437, allocations: 5.375 kB / 0.5237 GB, free: 15.26 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.376e-06/0.437, allocations: 4.891 kB / 0.5237 GB, free: 15.25 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.437, allocations: 3.938 kB / 0.5237 GB, free: 15.25 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000161/0.4371, allocations: 157.8 kB / 0.5239 GB, free: 15.11 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.989e-05/0.4372, allocations: 83.23 kB / 0.5239 GB, free: 15.01 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.308e-05/0.4372, allocations: 4.688 kB / 0.5239 GB, free: 15.01 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.587e-05/0.4373, allocations: 7.672 kB / 0.524 GB, free: 15 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.761e-05/0.4373, allocations: 10.77 kB / 0.524 GB, free: 15 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.105e-06/0.4373, allocations: 1.25 kB / 0.524 GB, free: 15 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.968e-05/0.4374, allocations: 83.34 kB / 0.524 GB, free: 14.92 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4374, allocations: 0 / 0.524 GB, free: 14.92 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002362/0.4376, allocations: 34.47 kB / 0.5241 GB, free: 14.9 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.000517/0.4381, allocations: 0.7019 MB / 0.5248 GB, free: 14.23 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001504/0.4383, allocations: 34.12 kB / 0.5248 GB, free: 14.22 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.4383, allocations: 0 / 0.5248 GB, free: 14.22 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.06e-05/0.4384, allocations: 18.62 kB / 0.5248 GB, free: 14.22 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003268/0.4387, allocations: 20.5 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.001485/0.4402, allocations: 1.453 MB / 0.5263 GB, free: 12.93 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003242/0.4405, allocations: 0.7329 MB / 0.527 GB, free: 12.23 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.769e-05/0.4406, allocations: 4.609 kB / 0.527 GB, free: 12.23 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.423e-05/0.4407, allocations: 51.67 kB / 0.527 GB, free: 12.19 MB / 398.1 MB Notification: Performance of SimCode: time 2.31e-07/0.4407, allocations: 3.938 kB / 0.527 GB, free: 12.18 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01928/0.46, allocations: 1.987 MB / 0.529 GB, free: 11.52 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.786/8.246, allocations: 12.94 kB / 0.529 GB, free: 11.52 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