Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.MuxDemux,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_MuxDemux",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.MuxDemux,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_MuxDemux",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001552/0.001552, allocations: 117.6 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002104/0.002104, allocations: 200.7 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.435/1.435, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2357/0.2357, allocations: 46.11 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001567/0.001567, allocations: 75.88 kB / 480.8 MB, free: 4.555 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3705/0.3721, allocations: 62.43 MB / 0.5305 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.002965/0.3751, allocations: 1.561 MB / 0.532 GB, free: 12.19 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002783/0.3754, allocations: 68.66 kB / 0.5321 GB, free: 12.13 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.003e-05/0.3755, allocations: 0 / 0.5321 GB, free: 12.13 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001606/0.3756, allocations: 15.36 kB / 0.5321 GB, free: 12.12 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 3.115e-05/0.3757, allocations: 7.922 kB / 0.5321 GB, free: 12.11 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001731/0.3759, allocations: 30.58 kB / 0.5322 GB, free: 12.09 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001408/0.376, allocations: 63.47 kB / 0.5322 GB, free: 12.05 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003173/0.3763, allocations: 133.1 kB / 0.5323 GB, free: 11.98 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.135e-05/0.3764, allocations: 38.23 kB / 0.5324 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.305e-05/0.3765, allocations: 39.06 kB / 0.5324 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.96e-05/0.3765, allocations: 8.219 kB / 0.5324 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.527e-05/0.3766, allocations: 7.906 kB / 0.5324 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.894e-05/0.3767, allocations: 68.88 kB / 0.5325 GB, free: 11.89 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000107/0.3768, allocations: 63.61 kB / 0.5326 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002658/0.3771, allocations: 150.2 kB / 0.5327 GB, free: 11.74 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.3771, allocations: 0 / 0.5327 GB, free: 11.74 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.3771, allocations: 0 / 0.5327 GB, free: 11.74 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.143e-05/0.3771, allocations: 4 kB / 0.5327 GB, free: 11.74 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.0005843/0.3777, allocations: 446.2 kB / 0.5331 GB, free: 11.3 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.94e-05/0.3778, allocations: 13.98 kB / 0.5331 GB, free: 11.3 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001262/0.3779, allocations: 61.69 kB / 0.5332 GB, free: 11.23 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.984e-05/0.378, allocations: 17.44 kB / 0.5332 GB, free: 11.23 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002982/0.3783, allocations: 236 kB / 0.5334 GB, free: 10.98 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.214e-05/0.3783, allocations: 17.84 kB / 0.5335 GB, free: 10.97 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.893e-05/0.3784, allocations: 22.12 kB / 0.5335 GB, free: 10.96 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004123/0.3788, allocations: 208.6 kB / 0.5337 GB, free: 10.84 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.174e-05/0.3788, allocations: 0 / 0.5337 GB, free: 10.84 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.393e-05/0.3788, allocations: 10.75 kB / 0.5337 GB, free: 10.83 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.298e-06/0.3788, allocations: 4.125 kB / 0.5337 GB, free: 10.83 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002478/0.3791, allocations: 130.5 kB / 0.5338 GB, free: 10.78 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007247/0.3798, allocations: 0.5147 MB / 0.5343 GB, free: 10.32 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000102/0.3799, allocations: 41.62 kB / 0.5344 GB, free: 10.28 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.331e-05/0.38, allocations: 32.09 kB / 0.5344 GB, free: 10.26 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.72e-05/0.38, allocations: 0 / 0.5344 GB, free: 10.26 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.7e-05/0.3801, allocations: 31.94 kB / 0.5344 GB, free: 10.22 MB / 398.1 MB Notification: Performance of pre-optimization done (n=5): time 1.443e-06/0.3801, allocations: 0 / 0.5344 GB, free: 10.22 MB / 398.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002854/0.3804, allocations: 78.5 kB / 0.5345 GB, free: 10.17 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.213e-05/0.3804, allocations: 52.78 kB / 0.5345 GB, free: 10.11 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.391e-05/0.3805, allocations: 111.5 kB / 0.5347 GB, free: 9.996 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.875e-05/0.3806, allocations: 25.7 kB / 0.5347 GB, free: 9.965 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.344e-05/0.3807, allocations: 141.8 kB / 0.5348 GB, free: 9.832 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.344e-05/0.3807, allocations: 14.64 kB / 0.5348 GB, free: 9.82 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.272e-05/0.3808, allocations: 21.78 kB / 0.5349 GB, free: 9.797 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001348/0.3809, allocations: 324.2 kB / 0.5352 GB, free: 9.473 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.579e-05/0.381, allocations: 10.86 kB / 0.5352 GB, free: 9.469 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.762e-05/0.381, allocations: 10.88 kB / 0.5352 GB, free: 9.465 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.037e-05/0.3811, allocations: 29.72 kB / 0.5352 GB, free: 9.449 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.3811, allocations: 0 / 0.5352 GB, free: 9.449 MB / 398.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001435/0.3813, allocations: 71.62 kB / 0.5353 GB, free: 9.395 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.583e-05/0.3813, allocations: 5.5 kB / 0.5353 GB, free: 9.395 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.3813, allocations: 0 / 0.5353 GB, free: 9.395 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.823e-05/0.3813, allocations: 5.375 kB / 0.5353 GB, free: 9.391 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.577e-05/0.3814, allocations: 18.73 kB / 0.5353 GB, free: 9.379 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.08e-06/0.3814, allocations: 1.375 kB / 0.5353 GB, free: 9.379 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.072e-05/0.3815, allocations: 9.312 kB / 0.5353 GB, free: 9.371 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.393e-06/0.3815, allocations: 1.375 kB / 0.5353 GB, free: 9.371 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.0001103/0.3816, allocations: 143.4 kB / 0.5355 GB, free: 9.234 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.984e-05/0.3816, allocations: 6.578 kB / 0.5355 GB, free: 9.23 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.195e-05/0.3816, allocations: 5.281 kB / 0.5355 GB, free: 9.227 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.3817, allocations: 4 kB / 0.5355 GB, free: 9.223 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.3817, allocations: 1.344 kB / 0.5355 GB, free: 9.223 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.149e-06/0.3817, allocations: 3.984 kB / 0.5355 GB, free: 9.219 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003841/0.3821, allocations: 374.6 kB / 0.5358 GB, free: 8.855 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.3821, allocations: 0 / 0.5358 GB, free: 8.855 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.622e-05/0.3821, allocations: 8.75 kB / 0.5358 GB, free: 8.855 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.409e-06/0.3821, allocations: 7.922 kB / 0.5358 GB, free: 8.848 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.303e-06/0.3822, allocations: 1.344 kB / 0.5358 GB, free: 8.848 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.502e-06/0.3822, allocations: 0 / 0.5358 GB, free: 8.848 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.566e-06/0.3822, allocations: 4.781 kB / 0.5359 GB, free: 8.844 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001762/0.3823, allocations: 159.1 kB / 0.536 GB, free: 8.695 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.524e-05/0.3824, allocations: 86.14 kB / 0.5361 GB, free: 8.594 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.605e-05/0.3824, allocations: 1.406 kB / 0.5361 GB, free: 8.594 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.723e-05/0.3825, allocations: 5.531 kB / 0.5361 GB, free: 8.59 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.876e-05/0.3825, allocations: 5.312 kB / 0.5361 GB, free: 8.586 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.54e-06/0.3825, allocations: 5.25 kB / 0.5361 GB, free: 8.582 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.893e-05/0.3826, allocations: 93.8 kB / 0.5362 GB, free: 8.496 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.3826, allocations: 0 / 0.5362 GB, free: 8.496 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002535/0.3828, allocations: 31.19 kB / 0.5362 GB, free: 8.48 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.0004719/0.3833, allocations: 0.7021 MB / 0.5369 GB, free: 7.797 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001498/0.3835, allocations: 40.7 kB / 0.5369 GB, free: 7.777 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.3835, allocations: 0 / 0.5369 GB, free: 7.777 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.765e-05/0.3835, allocations: 16.08 kB / 0.537 GB, free: 7.773 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003366/0.3839, allocations: 15.69 kB / 0.537 GB, free: 7.766 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001516/0.3854, allocations: 1.444 MB / 0.5384 GB, free: 6.445 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003339/0.3858, allocations: 0.7381 MB / 0.5391 GB, free: 5.715 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.938e-05/0.3858, allocations: 7.25 kB / 0.5391 GB, free: 5.711 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.862e-05/0.3859, allocations: 51.09 kB / 0.5392 GB, free: 5.664 MB / 398.1 MB Notification: Performance of SimCode: time 2e-07/0.3859, allocations: 3.938 kB / 0.5392 GB, free: 5.66 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01794/0.4038, allocations: 1.94 MB / 0.5411 GB, free: 4.59 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.666/8.07, allocations: 5.312 kB / 0.5411 GB, free: 4.59 MB / 398.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_Blocks_MuxDemux.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Blocks.MuxDemux.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches