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: "" <> buildModelFMU(ModelicaTest.Blocks.MuxDemux,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Blocks_MuxDemux",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.MuxDemux,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Blocks_MuxDemux",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001035/0.001035, allocations: 198 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.222/1.222, allocations: 226.5 MB / 243.4 MB, free: 6.371 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007987/0.0007987, allocations: 96.69 kB / 295.5 MB, free: 6.656 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2787/0.2787, allocations: 44.82 MB / 392.3 MB, free: 35.62 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002466/0.0002466, allocations: 11.98 kB / 465.4 MB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2775/0.2778, allocations: 62.96 MB / 0.516 GB, free: 37.13 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.001223/0.2791, allocations: 1.253 MB / 0.5172 GB, free: 36.2 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001064/0.2792, allocations: 44.12 kB / 0.5172 GB, free: 36.17 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.734e-05/0.2793, allocations: 2.812 kB / 0.5172 GB, free: 36.17 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001111/0.2794, allocations: 21.44 kB / 0.5172 GB, free: 36.16 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 1.847e-05/0.2794, allocations: 0 / 0.5172 GB, free: 36.16 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 6.784e-05/0.2795, allocations: 17.02 kB / 0.5173 GB, free: 36.15 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 7.976e-05/0.2796, allocations: 66.78 kB / 0.5173 GB, free: 36.13 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002344/0.2798, allocations: 124.7 kB / 0.5174 GB, free: 36.07 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.71e-05/0.2798, allocations: 25.02 kB / 0.5175 GB, free: 36.06 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.801e-05/0.2799, allocations: 20.84 kB / 0.5175 GB, free: 36.05 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.253e-05/0.2799, allocations: 0 / 0.5175 GB, free: 36.05 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.627e-06/0.2799, allocations: 3.031 kB / 0.5175 GB, free: 36.05 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 5.416e-05/0.28, allocations: 56.03 kB / 0.5175 GB, free: 36.03 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 4.96e-05/0.28, allocations: 68.83 kB / 0.5176 GB, free: 35.97 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 8.646e-05/0.2801, allocations: 101.1 kB / 0.5177 GB, free: 35.95 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.2801, allocations: 0 / 0.5177 GB, free: 35.95 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.2801, allocations: 0 / 0.5177 GB, free: 35.95 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.078e-06/0.2802, allocations: 0 / 0.5177 GB, free: 35.95 MB / 378.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.0003414/0.2805, allocations: 408.4 kB / 0.5181 GB, free: 35.55 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.743e-05/0.2805, allocations: 10.25 kB / 0.5181 GB, free: 35.55 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.886e-05/0.2806, allocations: 71.86 kB / 0.5182 GB, free: 35.49 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.458e-05/0.2807, allocations: 22.91 kB / 0.5182 GB, free: 35.48 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001459/0.2808, allocations: 210.5 kB / 0.5184 GB, free: 35.27 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.813e-05/0.2808, allocations: 17.19 kB / 0.5184 GB, free: 35.26 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.556e-05/0.2809, allocations: 24.19 kB / 0.5184 GB, free: 35.25 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002984/0.2812, allocations: 210.5 kB / 0.5186 GB, free: 35.16 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.896e-06/0.2812, allocations: 0 / 0.5186 GB, free: 35.16 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.796e-05/0.2812, allocations: 11.12 kB / 0.5186 GB, free: 35.15 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.74e-06/0.2812, allocations: 3.062 kB / 0.5186 GB, free: 35.15 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001949/0.2814, allocations: 134.6 kB / 0.5188 GB, free: 35.12 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004882/0.2819, allocations: 0.5235 MB / 0.5193 GB, free: 34.73 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.481e-05/0.282, allocations: 39.88 kB / 0.5193 GB, free: 34.7 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.584e-05/0.2821, allocations: 33.2 kB / 0.5194 GB, free: 34.68 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.031e-05/0.2821, allocations: 3.938 kB / 0.5194 GB, free: 34.68 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.48e-05/0.2821, allocations: 34.56 kB / 0.5194 GB, free: 34.64 MB / 378.7 MB Notification: Performance of pre-optimization done (n=5): time 1.163e-06/0.2821, allocations: 0 / 0.5194 GB, free: 34.64 MB / 378.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001975/0.2823, allocations: 79.34 kB / 0.5195 GB, free: 34.59 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.298e-05/0.2824, allocations: 51.41 kB / 0.5195 GB, free: 34.53 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.052e-05/0.2824, allocations: 112.9 kB / 0.5196 GB, free: 34.43 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.933e-06/0.2824, allocations: 29.7 kB / 0.5197 GB, free: 34.39 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.025e-05/0.2825, allocations: 138.8 kB / 0.5198 GB, free: 34.27 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.498e-05/0.2825, allocations: 13.81 kB / 0.5198 GB, free: 34.26 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.775e-06/0.2825, allocations: 0 / 0.5198 GB, free: 34.26 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.807e-05/0.2825, allocations: 321.7 kB / 0.5201 GB, free: 33.94 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.139e-05/0.2826, allocations: 16.14 kB / 0.5201 GB, free: 33.94 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.542e-05/0.2826, allocations: 23.78 kB / 0.5201 GB, free: 33.93 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.348e-05/0.2827, allocations: 35.7 kB / 0.5202 GB, free: 33.91 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.2827, allocations: 0 / 0.5202 GB, free: 33.91 MB / 378.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001064/0.2828, allocations: 73.28 kB / 0.5202 GB, free: 33.86 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.556e-05/0.2829, allocations: 8.594 kB / 0.5203 GB, free: 33.86 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.2829, allocations: 3.938 kB / 0.5203 GB, free: 33.86 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.29e-05/0.2829, allocations: 4 kB / 0.5203 GB, free: 33.86 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.401e-05/0.283, allocations: 8.125 kB / 0.5203 GB, free: 33.86 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.995e-06/0.283, allocations: 3.938 kB / 0.5203 GB, free: 33.85 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.608e-05/0.283, allocations: 12.3 kB / 0.5203 GB, free: 33.85 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.051e-06/0.283, allocations: 0 / 0.5203 GB, free: 33.85 MB / 378.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 7.415e-05/0.2831, allocations: 139 kB / 0.5204 GB, free: 33.72 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.195e-05/0.2831, allocations: 3.906 kB / 0.5204 GB, free: 33.72 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.841e-05/0.2832, allocations: 14.84 kB / 0.5204 GB, free: 33.71 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/0.2832, allocations: 0 / 0.5204 GB, free: 33.71 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.2832, allocations: 0 / 0.5204 GB, free: 33.71 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.2832, allocations: 3.984 kB / 0.5204 GB, free: 33.71 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002646/0.2835, allocations: 373.5 kB / 0.5208 GB, free: 33.38 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.2835, allocations: 0 / 0.5208 GB, free: 33.38 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.837e-05/0.2835, allocations: 14.75 kB / 0.5208 GB, free: 33.38 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.2835, allocations: 4 kB / 0.5208 GB, free: 33.37 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.541e-06/0.2835, allocations: 0 / 0.5208 GB, free: 33.37 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.2835, allocations: 0 / 0.5208 GB, free: 33.37 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.2835, allocations: 3.938 kB / 0.5208 GB, free: 33.37 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001219/0.2837, allocations: 167.2 kB / 0.521 GB, free: 33.22 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.55e-05/0.2837, allocations: 81.02 kB / 0.5211 GB, free: 33.12 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.161e-05/0.2837, allocations: 6.906 kB / 0.5211 GB, free: 33.12 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.078e-05/0.2838, allocations: 3.422 kB / 0.5211 GB, free: 33.12 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.85e-05/0.2838, allocations: 6.75 kB / 0.5211 GB, free: 33.12 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.137e-06/0.2838, allocations: 10.78 kB / 0.5211 GB, free: 33.11 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.458e-05/0.2839, allocations: 88.92 kB / 0.5212 GB, free: 33.03 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2839, allocations: 0 / 0.5212 GB, free: 33.03 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002095/0.2841, allocations: 34.06 kB / 0.5212 GB, free: 33.01 MB / 378.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 0.0003311/0.2844, allocations: 0.7078 MB / 0.5219 GB, free: 32.33 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001159/0.2845, allocations: 36.97 kB / 0.5219 GB, free: 32.32 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2845, allocations: 4 kB / 0.5219 GB, free: 32.32 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.19e-05/0.2846, allocations: 19.12 kB / 0.5219 GB, free: 32.32 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000253/0.2849, allocations: 13.27 kB / 0.522 GB, free: 32.31 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007699/0.2856, allocations: 0.6926 MB / 0.5226 GB, free: 31.79 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001358/0.2858, allocations: 0.7327 MB / 0.5234 GB, free: 31.09 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.825e-05/0.2858, allocations: 41.61 kB / 0.5234 GB, free: 31.05 MB / 378.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2858, allocations: 3.938 kB / 0.5234 GB, free: 31.05 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.63/2.916, allocations: 1.757 MB / 0.5251 GB, free: 30.91 MB / 378.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Blocks.MuxDemux_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Blocks_MuxDemux_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Blocks_MuxDemux.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Blocks.MuxDemux.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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","../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.MuxDemux.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches