Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Blocks.MuxDemux.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Blocks.MuxDemux,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y1|y2|y3|y4|y5|clock.y|mux5.y.1.|mux5.y.2.|mux5.y.3.|mux5.y.4.|mux5.y.5.|demux5.y.1.|demux5.y.2.|demux5.y.3.|demux5.y.4.|demux5.y.5.|mux3.y.1.|mux3.y.2.|mux3.y.3.|mux2.y.1.|mux2.y.2.|demux2.y.1.|demux2.y.2.|demux3.y.1.|demux3.y.2.|demux3.y.3.",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Blocks.MuxDemux") translateModel(ModelicaTest.Blocks.MuxDemux,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y1|y2|y3|y4|y5|clock.y|mux5.y.1.|mux5.y.2.|mux5.y.3.|mux5.y.4.|mux5.y.5.|demux5.y.1.|demux5.y.2.|demux5.y.3.|demux5.y.4.|demux5.y.5.|mux3.y.1.|mux3.y.2.|mux3.y.3.|mux2.y.1.|mux2.y.2.|demux2.y.1.|demux2.y.2.|demux3.y.1.|demux3.y.2.|demux3.y.3.",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Blocks.MuxDemux") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001489/0.001489, allocations: 197 kB / 16.1 MB, free: 5.488 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.361/1.361, allocations: 226.6 MB / 243.4 MB, free: 13.96 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000893/0.0008929, allocations: 90.56 kB / 295.5 MB, free: 9.898 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.274/0.274, allocations: 44.83 MB / 392.3 MB, free: 9.152 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003033/0.0003034, allocations: 4 kB / 465.3 MB, free: 49.43 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.1135, allocations: 62.95 MB / 0.5159 GB, free: 2.43 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.001892/0.1155, allocations: 1.261 MB / 0.5171 GB, free: 1.148 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001748/0.1157, allocations: 47.83 kB / 0.5171 GB, free: 1.102 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.018e-05/0.1158, allocations: 7.938 kB / 0.5171 GB, free: 1.094 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001382/0.1159, allocations: 11.86 kB / 0.5172 GB, free: 1.082 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 3.629e-05/0.116, allocations: 3.938 kB / 0.5172 GB, free: 1.078 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 9.484e-05/0.1161, allocations: 19.92 kB / 0.5172 GB, free: 1.059 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001097/0.1162, allocations: 63.84 kB / 0.5172 GB, free: 0.9961 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002839/0.1165, allocations: 131.4 kB / 0.5174 GB, free: 0.8633 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.182e-05/0.1165, allocations: 19.88 kB / 0.5174 GB, free: 0.8438 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.907e-05/0.1166, allocations: 15.86 kB / 0.5174 GB, free: 0.8281 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.465e-05/0.1166, allocations: 0 / 0.5174 GB, free: 0.8281 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.159e-05/0.1166, allocations: 0 / 0.5174 GB, free: 0.8281 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 6.832e-05/0.1167, allocations: 51.89 kB / 0.5175 GB, free: 0.7773 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 7.245e-05/0.1168, allocations: 73.38 kB / 0.5175 GB, free: 0.6992 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00016/0.117, allocations: 99.81 kB / 0.5176 GB, free: 0.6016 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.117, allocations: 0 / 0.5176 GB, free: 0.6016 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.117, allocations: 4 kB / 0.5176 GB, free: 0.5977 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.743e-06/0.117, allocations: 0 / 0.5176 GB, free: 0.5977 MB / 346.7 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.0004804/0.1175, allocations: 407.8 kB / 0.518 GB, free: 156 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.272e-05/0.1175, allocations: 8.031 kB / 0.518 GB, free: 148 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.201e-05/0.1176, allocations: 20.66 kB / 0.518 GB, free: 128 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2365/0.3541, allocations: 215 kB / 0.5182 GB, free: 11.65 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.941e-05/0.3541, allocations: 13.91 kB / 0.5183 GB, free: 11.65 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.984e-05/0.3542, allocations: 17.88 kB / 0.5183 GB, free: 11.65 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004816/0.3547, allocations: 197.5 kB / 0.5185 GB, free: 11.62 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.137e-05/0.3547, allocations: 0 / 0.5185 GB, free: 11.62 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.303e-05/0.3547, allocations: 7.281 kB / 0.5185 GB, free: 11.62 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.032e-05/0.3547, allocations: 8.922 kB / 0.5185 GB, free: 11.62 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002675/0.355, allocations: 129.5 kB / 0.5186 GB, free: 11.61 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000685/0.3557, allocations: 0.4933 MB / 0.5191 GB, free: 11.3 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.451e-05/0.3558, allocations: 45.77 kB / 0.5191 GB, free: 11.27 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.131e-05/0.3559, allocations: 29.91 kB / 0.5192 GB, free: 11.27 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.779e-06/0.3559, allocations: 1.688 kB / 0.5192 GB, free: 11.27 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.513e-05/0.3559, allocations: 33.03 kB / 0.5192 GB, free: 11.23 MB / 346.7 MB Notification: Performance of pre-optimization done (n=5): time 1.563e-06/0.3559, allocations: 3.938 kB / 0.5192 GB, free: 11.22 MB / 346.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002565/0.3562, allocations: 83.44 kB / 0.5193 GB, free: 11.18 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.52e-05/0.3562, allocations: 53.58 kB / 0.5193 GB, free: 11.12 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.073e-05/0.3563, allocations: 107.2 kB / 0.5194 GB, free: 11.02 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.158e-06/0.3563, allocations: 28.11 kB / 0.5195 GB, free: 10.99 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.67e-05/0.3564, allocations: 137.1 kB / 0.5196 GB, free: 10.88 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.119e-05/0.3564, allocations: 13.78 kB / 0.5196 GB, free: 10.87 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.556e-06/0.3564, allocations: 1.344 kB / 0.5196 GB, free: 10.87 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.247e-05/0.3565, allocations: 320.2 kB / 0.5199 GB, free: 10.55 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.589e-05/0.3566, allocations: 15.28 kB / 0.5199 GB, free: 10.55 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.759e-05/0.3566, allocations: 11.22 kB / 0.5199 GB, free: 10.55 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.865e-05/0.3567, allocations: 46.05 kB / 0.52 GB, free: 10.54 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.3567, allocations: 1.438 kB / 0.52 GB, free: 10.54 MB / 346.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001114/0.3568, allocations: 71.17 kB / 0.52 GB, free: 10.5 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/0.3568, allocations: 4.906 kB / 0.52 GB, free: 10.5 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.693e-06/0.3569, allocations: 3.938 kB / 0.52 GB, free: 10.5 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.529e-05/0.3569, allocations: 0.6094 kB / 0.52 GB, free: 10.5 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.787e-05/0.357, allocations: 11.02 kB / 0.5201 GB, free: 10.5 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.701e-06/0.357, allocations: 0.8438 kB / 0.5201 GB, free: 10.5 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.666e-05/0.357, allocations: 5.438 kB / 0.5201 GB, free: 10.5 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.452e-06/0.357, allocations: 1.531 kB / 0.5201 GB, free: 10.5 MB / 346.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.801e-05/0.3571, allocations: 141 kB / 0.5202 GB, free: 10.38 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.119e-05/0.3572, allocations: 1.125 kB / 0.5202 GB, free: 10.38 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.401e-05/0.3572, allocations: 13.61 kB / 0.5202 GB, free: 10.37 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.3572, allocations: 1.641 kB / 0.5202 GB, free: 10.37 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.3572, allocations: 1.531 kB / 0.5202 GB, free: 10.37 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-06/0.3572, allocations: 0 / 0.5202 GB, free: 10.37 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003419/0.3576, allocations: 375 kB / 0.5206 GB, free: 10.06 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.3576, allocations: 0.75 kB / 0.5206 GB, free: 10.06 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.481e-05/0.3576, allocations: 14.98 kB / 0.5206 GB, free: 10.05 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.826e-06/0.3576, allocations: 5.422 kB / 0.5206 GB, free: 10.05 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.685e-06/0.3576, allocations: 0.5 kB / 0.5206 GB, free: 10.05 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.3577, allocations: 1.875 kB / 0.5206 GB, free: 10.05 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.3577, allocations: 0.8906 kB / 0.5206 GB, free: 10.05 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001578/0.3578, allocations: 171 kB / 0.5208 GB, free: 9.914 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.262e-05/0.3579, allocations: 82.72 kB / 0.5208 GB, free: 9.816 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.253e-05/0.3579, allocations: 3.984 kB / 0.5208 GB, free: 9.816 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.065e-05/0.3579, allocations: 4.172 kB / 0.5208 GB, free: 9.816 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.545e-05/0.358, allocations: 2.328 kB / 0.5209 GB, free: 9.816 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.797e-06/0.358, allocations: 2.844 kB / 0.5209 GB, free: 9.816 MB / 346.7 MB Notification: Performance of sorting global known variables: time 3.64e-05/0.358, allocations: 87.89 kB / 0.5209 GB, free: 9.742 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.358, allocations: 4 kB / 0.5209 GB, free: 9.738 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002085/0.3582, allocations: 21.44 kB / 0.521 GB, free: 9.73 MB / 346.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.404e-05/0.3583, allocations: 96.38 kB / 0.5211 GB, free: 9.637 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001457/0.3585, allocations: 38.39 kB / 0.5211 GB, free: 9.633 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.3585, allocations: 0 / 0.5211 GB, free: 9.633 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 5.164e-05/0.3586, allocations: 23.41 kB / 0.5211 GB, free: 9.629 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000278/0.3588, allocations: 16.89 kB / 0.5211 GB, free: 9.625 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005512/0.3594, allocations: 362.3 kB / 0.5215 GB, free: 9.367 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002066/0.3596, allocations: 0.729 MB / 0.5222 GB, free: 8.672 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.391e-05/0.3597, allocations: 11.34 kB / 0.5222 GB, free: 8.664 MB / 346.7 MB Notification: Performance of SimCode: time 3.01e-07/0.3597, allocations: 0 / 0.5222 GB, free: 8.664 MB / 346.7 MB Notification: Performance of Templates: time 0.003005/0.3627, allocations: 1.219 MB / 0.5234 GB, free: 8.586 MB / 346.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.MuxDemux.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.MuxDemux.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Blocks.MuxDemux.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Blocks.MuxDemux.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.MuxDemux.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Blocks.MuxDemux --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Blocks.MuxDemux.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Blocks.MuxDemux_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/MuxDemux/MuxDemux.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.MuxDemux.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches