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.001081/0.001081, allocations: 101.5 kB / 17.77 MB, free: 5.277 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.001216/0.001216, allocations: 188 kB / 18.71 MB, free: 4.348 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.367/1.367, allocations: 222.9 MB / 242.4 MB, free: 15.05 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.2219/0.2219, allocations: 44.18 MB / 336.7 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002054/0.002054, allocations: 68.08 kB / 470 MB, free: 13.67 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3942/0.3963, allocations: 60.83 MB / 0.5184 GB, free: 3.27 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.002403/0.3987, allocations: 1.537 MB / 0.5199 GB, free: 2.199 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.000117/0.3989, allocations: 51.77 kB / 0.52 GB, free: 2.164 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.456e-05/0.3989, allocations: 2.344 kB / 0.52 GB, free: 2.164 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001261/0.3991, allocations: 21.97 kB / 0.52 GB, free: 2.148 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.165e-05/0.3991, allocations: 7.875 kB / 0.52 GB, free: 2.141 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 7.803e-05/0.3992, allocations: 28.2 kB / 0.52 GB, free: 2.125 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 9.995e-05/0.3993, allocations: 70.2 kB / 0.5201 GB, free: 2.098 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002359/0.3995, allocations: 128.8 kB / 0.5202 GB, free: 2.039 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.127e-05/0.3996, allocations: 35.22 kB / 0.5202 GB, free: 2.023 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.891e-05/0.3997, allocations: 43.56 kB / 0.5203 GB, free: 2 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.238e-05/0.3997, allocations: 7.594 kB / 0.5203 GB, free: 2 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.562e-05/0.3997, allocations: 8.938 kB / 0.5203 GB, free: 2 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.768e-05/0.3998, allocations: 66.91 kB / 0.5204 GB, free: 1.977 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.933e-05/0.3998, allocations: 68.33 kB / 0.5204 GB, free: 1.93 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001661/0.4, allocations: 151.8 kB / 0.5206 GB, free: 1.863 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.4, allocations: 0 / 0.5206 GB, free: 1.863 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.4, allocations: 0 / 0.5206 GB, free: 1.863 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.191e-06/0.4001, allocations: 1.062 kB / 0.5206 GB, free: 1.863 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.0004078/0.4005, allocations: 435.9 kB / 0.521 GB, free: 1.457 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.249e-05/0.4005, allocations: 10 kB / 0.521 GB, free: 1.457 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.234e-05/0.4006, allocations: 68.33 kB / 0.5211 GB, free: 1.395 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.524e-05/0.4006, allocations: 17.81 kB / 0.5211 GB, free: 1.387 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001936/0.4008, allocations: 218.4 kB / 0.5213 GB, free: 1.168 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.536e-05/0.4009, allocations: 25.22 kB / 0.5213 GB, free: 1.152 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.356e-05/0.4009, allocations: 20.69 kB / 0.5213 GB, free: 1.145 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003527/0.4013, allocations: 209.8 kB / 0.5215 GB, free: 1.055 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.168e-05/0.4013, allocations: 1.125 kB / 0.5215 GB, free: 1.055 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.785e-05/0.4013, allocations: 9.094 kB / 0.5215 GB, free: 1.047 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.546e-06/0.4013, allocations: 6.719 kB / 0.5216 GB, free: 1.047 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002482/0.4016, allocations: 128 kB / 0.5217 GB, free: 1.016 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006374/0.4022, allocations: 0.5119 MB / 0.5222 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.107e-05/0.4023, allocations: 42.22 kB / 0.5222 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.775e-05/0.4024, allocations: 31.17 kB / 0.5222 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.352e-05/0.4024, allocations: 0.9688 kB / 0.5222 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.567e-05/0.4024, allocations: 40.22 kB / 0.5223 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of pre-optimization done (n=5): time 1.142e-06/0.4024, allocations: 0 / 0.5223 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002312/0.4027, allocations: 69.81 kB / 0.5224 GB, free: 0.5 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.632e-05/0.4027, allocations: 56.38 kB / 0.5224 GB, free: 444 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.63e-05/0.4028, allocations: 112.2 kB / 0.5225 GB, free: 336 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.564e-06/0.4028, allocations: 25.7 kB / 0.5225 GB, free: 304 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.666e-05/0.4028, allocations: 150.7 kB / 0.5227 GB, free: 168 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.928e-05/0.4029, allocations: 16.06 kB / 0.5227 GB, free: 156 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.803e-05/0.4029, allocations: 17.67 kB / 0.5227 GB, free: 136 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001113/0.403, allocations: 318.8 kB / 0.523 GB, free: 15.82 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.174e-05/0.4031, allocations: 12.75 kB / 0.523 GB, free: 15.81 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.593e-05/0.4031, allocations: 10.03 kB / 0.523 GB, free: 15.81 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.746e-05/0.4032, allocations: 32.52 kB / 0.5231 GB, free: 15.8 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.4032, allocations: 0 / 0.5231 GB, free: 15.8 MB / 398.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001257/0.4034, allocations: 65.7 kB / 0.5231 GB, free: 15.75 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.993e-05/0.4034, allocations: 11.22 kB / 0.5231 GB, free: 15.75 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.67e-06/0.4034, allocations: 1.031 kB / 0.5231 GB, free: 15.75 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.206e-05/0.4034, allocations: 0 / 0.5231 GB, free: 15.75 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.631e-05/0.4035, allocations: 11.02 kB / 0.5232 GB, free: 15.75 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.739e-06/0.4035, allocations: 0 / 0.5232 GB, free: 15.75 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.083e-05/0.4035, allocations: 11.45 kB / 0.5232 GB, free: 15.74 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.669e-06/0.4035, allocations: 0 / 0.5232 GB, free: 15.74 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.0001066/0.4037, allocations: 138.4 kB / 0.5233 GB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.375e-05/0.4037, allocations: 10.19 kB / 0.5233 GB, free: 15.61 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.377e-05/0.4037, allocations: 10.42 kB / 0.5233 GB, free: 15.6 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.4037, allocations: 1.094 kB / 0.5233 GB, free: 15.6 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.4037, allocations: 448 / 0.5233 GB, free: 15.6 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.4037, allocations: 1.781 kB / 0.5233 GB, free: 15.6 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003828/0.4041, allocations: 372.2 kB / 0.5237 GB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.4041, allocations: 1.75 kB / 0.5237 GB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.28e-05/0.4042, allocations: 9.625 kB / 0.5237 GB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.694e-06/0.4042, allocations: 0 / 0.5237 GB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.082e-06/0.4042, allocations: 9.734 kB / 0.5237 GB, free: 15.26 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.4042, allocations: 0 / 0.5237 GB, free: 15.26 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.4042, allocations: 5 kB / 0.5237 GB, free: 15.25 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000154/0.4044, allocations: 164.3 kB / 0.5239 GB, free: 15.11 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.938e-05/0.4044, allocations: 80.22 kB / 0.5239 GB, free: 15.01 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.32e-05/0.4045, allocations: 4.609 kB / 0.5239 GB, free: 15.01 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.451e-05/0.4045, allocations: 3.25 kB / 0.5239 GB, free: 15.01 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.496e-05/0.4046, allocations: 11.66 kB / 0.524 GB, free: 15 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.165e-06/0.4046, allocations: 1.094 kB / 0.524 GB, free: 15 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.212e-05/0.4046, allocations: 88.34 kB / 0.524 GB, free: 14.92 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4046, allocations: 0 / 0.524 GB, free: 14.92 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002345/0.4049, allocations: 29.84 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.0004961/0.4054, allocations: 0.7061 MB / 0.5248 GB, free: 14.23 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001333/0.4055, allocations: 37.11 kB / 0.5248 GB, free: 14.22 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.4055, allocations: 0 / 0.5248 GB, free: 14.22 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.466e-05/0.4056, allocations: 14.53 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.0003219/0.4059, allocations: 23.77 kB / 0.5248 GB, free: 14.2 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001373/0.4073, allocations: 1.447 MB / 0.5262 GB, free: 12.94 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002867/0.4076, allocations: 0.741 MB / 0.527 GB, free: 12.23 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.018e-05/0.4076, allocations: 4.797 kB / 0.527 GB, free: 12.23 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.458e-05/0.4077, allocations: 47.53 kB / 0.527 GB, free: 12.19 MB / 398.1 MB Notification: Performance of SimCode: time 2.31e-07/0.4077, allocations: 3.938 kB / 0.527 GB, free: 12.18 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01822/0.4259, allocations: 1.999 MB / 0.529 GB, free: 11.51 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.796/8.222, allocations: 17.47 kB / 0.529 GB, free: 11.5 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 & /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 --timeout=50 --tolerance=1e-06 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.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) Reference file matches