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.0009019/0.0009019, allocations: 92.05 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00103/0.00103, allocations: 203.4 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.284/1.284, allocations: 227.7 MB / 246.8 MB, free: 11.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1807/0.1807, allocations: 46.18 MB / 345.2 MB, free: 11.41 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002274/0.0002275, allocations: 8.375 kB / 419.6 MB, free: 19.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08867/0.08891, allocations: 63.57 MB / 483.2 MB, free: 4.086 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.001393/0.09034, allocations: 1.275 MB / 484.4 MB, free: 2.801 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001827/0.09054, allocations: 67.75 kB / 484.5 MB, free: 2.734 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.388e-05/0.09059, allocations: 3.938 kB / 484.5 MB, free: 2.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001041/0.0907, allocations: 11.92 kB / 484.5 MB, free: 2.719 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.356e-05/0.09073, allocations: 3.938 kB / 484.5 MB, free: 2.715 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001125/0.09085, allocations: 27.92 kB / 484.6 MB, free: 2.688 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.509e-05/0.09095, allocations: 67.88 kB / 484.6 MB, free: 2.621 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002147/0.09117, allocations: 119.4 kB / 484.7 MB, free: 2.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.877e-05/0.09121, allocations: 19.86 kB / 484.8 MB, free: 2.48 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.23e-05/0.09125, allocations: 15.88 kB / 484.8 MB, free: 2.465 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.441e-05/0.09128, allocations: 0 / 484.8 MB, free: 2.465 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.16e-05/0.09129, allocations: 4 kB / 484.8 MB, free: 2.461 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.972e-05/0.09136, allocations: 51.83 kB / 484.8 MB, free: 2.41 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.94e-05/0.09142, allocations: 77.31 kB / 484.9 MB, free: 2.328 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001236/0.09155, allocations: 123.6 kB / 485 MB, free: 2.207 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.795e-06/0.09156, allocations: 0 / 485 MB, free: 2.207 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.09157, allocations: 0 / 485 MB, free: 2.207 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.677e-06/0.09158, allocations: 4 kB / 485 MB, free: 2.203 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.0003758/0.09196, allocations: 407.7 kB / 485.4 MB, free: 1.758 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.973e-05/0.09201, allocations: 16.81 kB / 485.4 MB, free: 1.742 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.815e-05/0.09209, allocations: 67.08 kB / 485.5 MB, free: 1.668 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.299e-05/0.09213, allocations: 16.75 kB / 485.5 MB, free: 1.652 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001746/0.09231, allocations: 224 kB / 485.7 MB, free: 1.395 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.662e-05/0.09234, allocations: 16.81 kB / 485.8 MB, free: 1.379 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.78e-05/0.09237, allocations: 24.38 kB / 485.8 MB, free: 1.355 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003245/0.0927, allocations: 207.6 kB / 486 MB, free: 1.145 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.043e-06/0.09272, allocations: 0 / 486 MB, free: 1.145 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.854e-05/0.09274, allocations: 12 kB / 486 MB, free: 1.133 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.777e-06/0.09275, allocations: 4 kB / 486 MB, free: 1.129 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002279/0.09299, allocations: 133.7 kB / 486.1 MB, free: 1 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005756/0.09357, allocations: 0.5178 MB / 486.7 MB, free: 440 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.531e-05/0.09367, allocations: 46.5 kB / 486.7 MB, free: 384 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.373e-05/0.09374, allocations: 32.97 kB / 486.7 MB, free: 348 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.145e-06/0.09376, allocations: 3.938 kB / 486.7 MB, free: 344 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.741e-05/0.09378, allocations: 34.56 kB / 486.8 MB, free: 300 kB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 1.122e-06/0.09379, allocations: 0 / 486.8 MB, free: 300 kB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002208/0.09401, allocations: 81.58 kB / 486.8 MB, free: 212 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.553e-05/0.09405, allocations: 55.41 kB / 486.9 MB, free: 144 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.148e-05/0.09412, allocations: 109.8 kB / 487 MB, free: 24 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.336e-05/0.09415, allocations: 29.7 kB / 487 MB, free: 15.99 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.822e-05/0.09421, allocations: 140 kB / 487.2 MB, free: 15.85 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.903e-05/0.09424, allocations: 23.64 kB / 487.2 MB, free: 15.82 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.335e-05/0.09427, allocations: 13.72 kB / 487.2 MB, free: 15.8 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.438e-05/0.09436, allocations: 314.8 kB / 487.5 MB, free: 15.49 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.827e-05/0.09441, allocations: 23.98 kB / 487.5 MB, free: 15.46 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.557e-05/0.09445, allocations: 12.23 kB / 487.6 MB, free: 15.45 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.574e-05/0.09454, allocations: 40.97 kB / 487.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.09455, allocations: 0 / 487.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001182/0.09468, allocations: 61.69 kB / 487.7 MB, free: 15.34 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.224e-05/0.0947, allocations: 12 kB / 487.7 MB, free: 15.33 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.326e-06/0.09471, allocations: 0 / 487.7 MB, free: 15.33 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.676e-06/0.09472, allocations: 0 / 487.7 MB, free: 15.33 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.157e-05/0.0948, allocations: 15.92 kB / 487.7 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.737e-06/0.09481, allocations: 0 / 487.7 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.86e-05/0.09484, allocations: 4 kB / 487.7 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.031e-06/0.09485, allocations: 320 / 487.7 MB, free: 15.31 MB / 366.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 8.801e-05/0.09495, allocations: 141.8 kB / 487.8 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.443e-05/0.09498, allocations: 7.906 kB / 487.8 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.017e-05/0.095, allocations: 11.97 kB / 487.8 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.09501, allocations: 0 / 487.8 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.945e-06/0.09502, allocations: 0 / 487.8 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.023e-06/0.09503, allocations: 3.938 kB / 487.8 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003401/0.09537, allocations: 374.4 kB / 488.2 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.09538, allocations: 0 / 488.2 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.538e-05/0.09543, allocations: 15.98 kB / 488.2 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.09544, allocations: 4 kB / 488.2 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.653e-06/0.09546, allocations: 4 kB / 488.2 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.09546, allocations: 0 / 488.2 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.09547, allocations: 3.938 kB / 488.2 MB, free: 14.69 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000151/0.09563, allocations: 167.6 kB / 488.4 MB, free: 14.51 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.017e-05/0.09567, allocations: 93.03 kB / 488.5 MB, free: 14.4 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.858e-06/0.09568, allocations: 0 / 488.5 MB, free: 14.4 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.669e-05/0.09574, allocations: 4 kB / 488.5 MB, free: 14.4 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.439e-05/0.09576, allocations: 7.938 kB / 488.5 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.725e-06/0.09577, allocations: 4 kB / 488.5 MB, free: 14.39 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.935e-05/0.09582, allocations: 87.25 kB / 488.6 MB, free: 14.3 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.09582, allocations: 0 / 488.6 MB, free: 14.3 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002296/0.09606, allocations: 35.69 kB / 488.6 MB, free: 14.27 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.0004115/0.09647, allocations: 0.7086 MB / 489.3 MB, free: 13.53 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001192/0.0966, allocations: 39.98 kB / 489.4 MB, free: 13.49 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.09661, allocations: 0 / 489.4 MB, free: 13.49 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.546e-05/0.09666, allocations: 19.98 kB / 489.4 MB, free: 13.47 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000261/0.09693, allocations: 11.94 kB / 489.4 MB, free: 13.46 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001269/0.09821, allocations: 1.54 MB / 491 MB, free: 11.84 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002416/0.09846, allocations: 0.7316 MB / 491.7 MB, free: 11.09 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.408e-05/0.0985, allocations: 7.938 kB / 491.7 MB, free: 11.08 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.542e-05/0.09856, allocations: 47.42 kB / 491.7 MB, free: 11.03 MB / 366.1 MB Notification: Performance of SimCode: time 1.393e-06/0.09856, allocations: 112 / 491.7 MB, free: 11.03 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01039/0.109, allocations: 1.702 MB / 493.4 MB, free: 9.43 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001523/0.1091, allocations: 171.5 kB / 493.6 MB, free: 9.18 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.611/1.72, allocations: 4 kB / 493.6 MB, free: 9.176 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