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.001273/0.001273, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001404/0.001404, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.243/1.243, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2016/0.2016, allocations: 46.11 MB / 344.1 MB, free: 11.57 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001382/0.001382, allocations: 76.44 kB / 417.7 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0983/0.0997, allocations: 62.44 MB / 480.1 MB, free: 5.168 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.002622/0.1024, allocations: 1.553 MB / 481.7 MB, free: 3.602 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002015/0.1026, allocations: 63.75 kB / 481.7 MB, free: 3.539 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.386e-05/0.1026, allocations: 4 kB / 481.7 MB, free: 3.535 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001087/0.1028, allocations: 19.8 kB / 481.8 MB, free: 3.516 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.382e-05/0.1028, allocations: 3.938 kB / 481.8 MB, free: 3.512 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001146/0.1029, allocations: 31.91 kB / 481.8 MB, free: 3.48 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.881e-05/0.103, allocations: 63.89 kB / 481.9 MB, free: 3.418 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002199/0.1032, allocations: 131.4 kB / 482 MB, free: 3.285 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.371e-05/0.1033, allocations: 39.86 kB / 482 MB, free: 3.246 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.995e-05/0.1034, allocations: 39.83 kB / 482.1 MB, free: 3.207 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.228e-05/0.1034, allocations: 8 kB / 482.1 MB, free: 3.199 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.348e-05/0.1034, allocations: 8 kB / 482.1 MB, free: 3.191 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.131e-05/0.1035, allocations: 71.81 kB / 482.1 MB, free: 3.121 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.574e-05/0.1036, allocations: 67.61 kB / 482.2 MB, free: 3.055 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001547/0.1037, allocations: 131.6 kB / 482.3 MB, free: 2.926 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.1037, allocations: 4 kB / 482.3 MB, free: 2.922 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.245e-06/0.1037, allocations: 0 / 482.3 MB, free: 2.922 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.62e-06/0.1038, allocations: 7.938 kB / 482.4 MB, free: 2.914 MB / 350.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.0004556/0.1042, allocations: 439.7 kB / 482.8 MB, free: 2.438 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.99e-05/0.1043, allocations: 8.031 kB / 482.8 MB, free: 2.43 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.192e-05/0.1043, allocations: 63.08 kB / 482.9 MB, free: 2.359 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.905e-05/0.1044, allocations: 20.73 kB / 482.9 MB, free: 2.34 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000192/0.1046, allocations: 220.1 kB / 483.1 MB, free: 2.086 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.682e-05/0.1046, allocations: 12.81 kB / 483.1 MB, free: 2.074 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.393e-05/0.1046, allocations: 24.36 kB / 483.1 MB, free: 2.051 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003136/0.105, allocations: 215.6 kB / 483.3 MB, free: 1.832 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/0.105, allocations: 0 / 483.3 MB, free: 1.832 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.714e-05/0.105, allocations: 4 kB / 483.3 MB, free: 1.828 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.654e-06/0.105, allocations: 8 kB / 483.3 MB, free: 1.82 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002226/0.1052, allocations: 137.5 kB / 483.5 MB, free: 1.688 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005893/0.1058, allocations: 0.5255 MB / 484 MB, free: 1.109 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.656e-05/0.1059, allocations: 42.56 kB / 484 MB, free: 1.059 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.452e-05/0.106, allocations: 24.97 kB / 484.1 MB, free: 1.031 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.095e-05/0.106, allocations: 3.938 kB / 484.1 MB, free: 1.027 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.367e-05/0.106, allocations: 38.56 kB / 484.1 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 1.012e-06/0.106, allocations: 0 / 484.1 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002158/0.1063, allocations: 77.61 kB / 484.2 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.729e-05/0.1063, allocations: 51.41 kB / 484.2 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.539e-05/0.1064, allocations: 109.8 kB / 484.3 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.12e-05/0.1064, allocations: 25.7 kB / 484.4 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.647e-05/0.1065, allocations: 139.9 kB / 484.5 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.952e-05/0.1065, allocations: 23.73 kB / 484.5 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.991e-05/0.1065, allocations: 17.72 kB / 484.5 MB, free: 0.5 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001087/0.1066, allocations: 322.8 kB / 484.9 MB, free: 180 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.771e-05/0.1067, allocations: 8 kB / 484.9 MB, free: 172 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.769e-05/0.1067, allocations: 15.98 kB / 484.9 MB, free: 156 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.268e-05/0.1068, allocations: 32.84 kB / 484.9 MB, free: 120 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.1068, allocations: 384 / 484.9 MB, free: 120 kB / 350.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001137/0.1069, allocations: 65.62 kB / 485 MB, free: 48 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.053e-05/0.107, allocations: 8 kB / 485 MB, free: 40 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.857e-06/0.107, allocations: 0 / 485 MB, free: 40 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.437e-06/0.107, allocations: 4 kB / 485 MB, free: 36 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.838e-05/0.1071, allocations: 11.98 kB / 485 MB, free: 24 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.058e-06/0.1071, allocations: 0 / 485 MB, free: 24 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.52e-05/0.1071, allocations: 3.906 kB / 485 MB, free: 20 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.933e-06/0.1071, allocations: 4 kB / 485 MB, free: 16 kB / 350.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.000104/0.1072, allocations: 137.8 kB / 485.2 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.367e-05/0.1072, allocations: 8 kB / 485.2 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.676e-05/0.1073, allocations: 7.969 kB / 485.2 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.1073, allocations: 0 / 485.2 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.926e-06/0.1073, allocations: 0 / 485.2 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.003e-06/0.1073, allocations: 0 / 485.2 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003402/0.1076, allocations: 366.4 kB / 485.5 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-06/0.1076, allocations: 3.938 kB / 485.5 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.349e-05/0.1077, allocations: 15.98 kB / 485.5 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.1077, allocations: 4 kB / 485.5 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.24e-06/0.1077, allocations: 0 / 485.5 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.1077, allocations: 0 / 485.5 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/0.1077, allocations: 3.938 kB / 485.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001447/0.1079, allocations: 167.4 kB / 485.7 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.299e-05/0.1079, allocations: 77.11 kB / 485.8 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.17e-05/0.1079, allocations: 4 kB / 485.8 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.101e-05/0.108, allocations: 4 kB / 485.8 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.265e-05/0.108, allocations: 7.922 kB / 485.8 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.238e-06/0.108, allocations: 4.188 kB / 485.8 MB, free: 15.12 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.579e-05/0.1081, allocations: 87.22 kB / 485.9 MB, free: 15.04 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1081, allocations: 0 / 485.9 MB, free: 15.04 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002164/0.1083, allocations: 35.69 kB / 485.9 MB, free: 15 MB / 366.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.0004412/0.1087, allocations: 0.7162 MB / 486.6 MB, free: 14.26 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000115/0.1089, allocations: 32.05 kB / 486.7 MB, free: 14.23 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1089, allocations: 0 / 486.7 MB, free: 14.23 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.376e-05/0.1089, allocations: 23.92 kB / 486.7 MB, free: 14.2 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000259/0.1092, allocations: 18.27 kB / 486.7 MB, free: 14.19 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001272/0.1105, allocations: 1.437 MB / 488.2 MB, free: 12.68 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002845/0.1108, allocations: 0.7431 MB / 488.9 MB, free: 11.91 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.739e-05/0.1108, allocations: 11.97 kB / 488.9 MB, free: 11.89 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.666e-05/0.1109, allocations: 43.42 kB / 489 MB, free: 11.85 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1109, allocations: 0 / 489 MB, free: 11.85 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.441/1.552, allocations: 1.893 MB / 490.8 MB, free: 9.996 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.72/12.27, allocations: 15.53 kB / 490.9 MB, free: 9.988 MB / 366.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_MuxDemux_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_MuxDemux.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Blocks.MuxDemux.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches