Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.MuxDemux,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_MuxDemux",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.MuxDemux,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_MuxDemux",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00116/0.00116, allocations: 104.8 kB / 16.27 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001234/0.001234, allocations: 188.1 kB / 17.19 MB, free: 5.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.375/1.375, allocations: 205.1 MB / 223.1 MB, free: 12.16 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2048/0.2048, allocations: 43.52 MB / 313.9 MB, free: 0.5117 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001536/0.001536, allocations: 69.58 kB / 382.8 MB, free: 56.65 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0894/0.09095, allocations: 57.79 MB / 440.6 MB, free: 6.793 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.002222/0.09321, allocations: 1.533 MB / 442.2 MB, free: 5.238 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001197/0.09334, allocations: 55.77 kB / 442.2 MB, free: 5.184 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.13e-05/0.0934, allocations: 4 kB / 442.2 MB, free: 5.18 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001147/0.09352, allocations: 15.86 kB / 442.2 MB, free: 5.164 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 2.433e-05/0.09356, allocations: 3.938 kB / 442.2 MB, free: 5.16 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 6.851e-05/0.09364, allocations: 19.97 kB / 442.2 MB, free: 5.141 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 7.624e-05/0.09372, allocations: 67.83 kB / 442.3 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002033/0.09393, allocations: 131.6 kB / 442.4 MB, free: 4.938 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.305e-05/0.09397, allocations: 39.92 kB / 442.5 MB, free: 4.898 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.647e-05/0.09402, allocations: 39.84 kB / 442.5 MB, free: 4.859 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.129e-05/0.09405, allocations: 8 kB / 442.5 MB, free: 4.852 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.413e-05/0.09406, allocations: 8 kB / 442.5 MB, free: 4.844 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.662e-05/0.09413, allocations: 70.11 kB / 442.6 MB, free: 4.777 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.139e-05/0.09418, allocations: 67.55 kB / 442.7 MB, free: 4.711 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001102/0.0943, allocations: 151.4 kB / 442.8 MB, free: 4.562 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.693e-05/0.09432, allocations: 0 / 442.8 MB, free: 4.562 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.09433, allocations: 0 / 442.8 MB, free: 4.562 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.08e-06/0.09434, allocations: 0 / 442.8 MB, free: 4.562 MB / 318.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.0003417/0.09469, allocations: 447.4 kB / 443.3 MB, free: 4.078 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.117e-05/0.09473, allocations: 11.89 kB / 443.3 MB, free: 4.066 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.482e-05/0.0948, allocations: 71.02 kB / 443.3 MB, free: 3.988 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.26e-05/0.09484, allocations: 16.75 kB / 443.4 MB, free: 3.973 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001427/0.09498, allocations: 216.1 kB / 443.6 MB, free: 3.723 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.303e-05/0.095, allocations: 12.81 kB / 443.6 MB, free: 3.711 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.932e-05/0.09503, allocations: 24.38 kB / 443.6 MB, free: 3.688 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002673/0.0953, allocations: 203.6 kB / 443.8 MB, free: 3.484 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.09532, allocations: 4 kB / 443.8 MB, free: 3.48 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.526e-05/0.09534, allocations: 12 kB / 443.8 MB, free: 3.469 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.09535, allocations: 7.938 kB / 443.8 MB, free: 3.461 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001806/0.09553, allocations: 129.7 kB / 443.9 MB, free: 3.336 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004417/0.09598, allocations: 0.5139 MB / 444.5 MB, free: 2.77 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.945e-05/0.09606, allocations: 38.56 kB / 444.5 MB, free: 2.723 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.026e-05/0.09612, allocations: 28.97 kB / 444.5 MB, free: 2.691 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.842e-06/0.09613, allocations: 0 / 444.5 MB, free: 2.691 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.024e-05/0.09615, allocations: 34.56 kB / 444.6 MB, free: 2.648 MB / 318.1 MB Notification: Performance of pre-optimization done (n=5): time 8.42e-07/0.09615, allocations: 4 kB / 444.6 MB, free: 2.645 MB / 318.1 MB Notification: Performance of matching and sorting (n=5): time 0.0001824/0.09634, allocations: 77.52 kB / 444.6 MB, free: 2.562 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.642e-05/0.09637, allocations: 51.41 kB / 444.7 MB, free: 2.5 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.721e-05/0.09642, allocations: 113.8 kB / 444.8 MB, free: 2.379 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.042e-06/0.09643, allocations: 29.7 kB / 444.8 MB, free: 2.344 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.592e-05/0.09647, allocations: 143.9 kB / 445 MB, free: 2.195 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.371e-05/0.09649, allocations: 19.7 kB / 445 MB, free: 2.176 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.492e-05/0.09652, allocations: 17.72 kB / 445 MB, free: 2.152 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.285e-05/0.09657, allocations: 326.8 kB / 445.3 MB, free: 1.824 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.538e-05/0.09661, allocations: 8 kB / 445.3 MB, free: 1.816 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.924e-05/0.09664, allocations: 11.98 kB / 445.3 MB, free: 1.805 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.223e-05/0.09671, allocations: 36.72 kB / 445.4 MB, free: 1.766 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.09672, allocations: 0 / 445.4 MB, free: 1.766 MB / 318.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.106e-05/0.09681, allocations: 62.06 kB / 445.4 MB, free: 1.699 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.238e-05/0.09683, allocations: 4 kB / 445.4 MB, free: 1.695 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.757e-06/0.09684, allocations: 4.062 kB / 445.5 MB, free: 1.691 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/0.09686, allocations: 4 kB / 445.5 MB, free: 1.688 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.038e-05/0.09694, allocations: 11.98 kB / 445.5 MB, free: 1.676 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.959e-06/0.09695, allocations: 4 kB / 445.5 MB, free: 1.672 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.259e-05/0.09697, allocations: 4 kB / 445.5 MB, free: 1.668 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.32e-06/0.09699, allocations: 3.938 kB / 445.5 MB, free: 1.664 MB / 318.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 6.246e-05/0.09705, allocations: 146.8 kB / 445.6 MB, free: 1.512 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.231e-05/0.09708, allocations: 3.906 kB / 445.6 MB, free: 1.508 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.581e-05/0.0971, allocations: 11.97 kB / 445.6 MB, free: 1.5 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.382e-06/0.09711, allocations: 0 / 445.6 MB, free: 1.5 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.09711, allocations: 0 / 445.6 MB, free: 1.5 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.09712, allocations: 7.922 kB / 445.6 MB, free: 1.492 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000257/0.09738, allocations: 370.4 kB / 446 MB, free: 1.074 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.0974, allocations: 0 / 446 MB, free: 1.074 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.966e-05/0.09744, allocations: 11.98 kB / 446 MB, free: 1.062 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.714e-06/0.09745, allocations: 0 / 446 MB, free: 1.062 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.574e-06/0.09747, allocations: 4 kB / 446 MB, free: 1.059 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.09747, allocations: 7.938 kB / 446 MB, free: 1.051 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.09748, allocations: 3.938 kB / 446 MB, free: 1.047 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001078/0.09759, allocations: 155.5 kB / 446.2 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.663e-05/0.09761, allocations: 85.09 kB / 446.3 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.109e-05/0.09763, allocations: 0 / 446.3 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.918e-05/0.09768, allocations: 4 kB / 446.3 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.561e-05/0.09771, allocations: 7.938 kB / 446.3 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.124e-06/0.09772, allocations: 0 / 446.3 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of sorting global known variables: time 2.364e-05/0.09775, allocations: 91.27 kB / 446.4 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.09775, allocations: 0 / 446.4 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002199/0.09798, allocations: 27.75 kB / 446.4 MB, free: 0.6484 MB / 318.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.00035/0.09833, allocations: 0.7048 MB / 447.1 MB, free: 15.91 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001292/0.09847, allocations: 36.03 kB / 447.1 MB, free: 15.88 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.09849, allocations: 0 / 447.1 MB, free: 15.88 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.63e-05/0.09854, allocations: 23.92 kB / 447.2 MB, free: 15.85 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002757/0.09882, allocations: 17.28 kB / 447.2 MB, free: 15.84 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001379/0.1002, allocations: 1.438 MB / 448.6 MB, free: 14.32 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002686/0.1005, allocations: 0.7392 MB / 449.4 MB, free: 13.55 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.637e-05/0.1005, allocations: 4 kB / 449.4 MB, free: 13.55 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.204e-05/0.1006, allocations: 51.41 kB / 449.4 MB, free: 13.5 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1006, allocations: 0 / 449.4 MB, free: 13.5 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02057/0.1212, allocations: 1.942 MB / 451.4 MB, free: 11.57 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.784/7.906, allocations: 11.66 kB / 451.4 MB, free: 11.56 MB / 334.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_MuxDemux_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_MuxDemux.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/MuxDemux/MuxDemux.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches