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.001522/0.001523, allocations: 113.4 kB / 16.41 MB, free: 6.445 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.001498/0.001498, allocations: 187.2 kB / 17.34 MB, free: 5.738 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.426/1.426, allocations: 205.1 MB / 223.2 MB, free: 12.29 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.2146/0.2146, allocations: 43.52 MB / 314.1 MB, free: 472 kB / 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.001975/0.001975, allocations: 67.89 kB / 441.3 MB, free: 6.172 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.1125, allocations: 57.78 MB / 499.1 MB, free: 12.32 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.003005/0.1156, allocations: 1.554 MB / 0.4889 GB, free: 10.75 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001551/0.1157, allocations: 43.84 kB / 0.489 GB, free: 10.71 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.514e-05/0.1158, allocations: 7.938 kB / 0.489 GB, free: 10.7 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001746/0.116, allocations: 23.84 kB / 0.489 GB, free: 10.68 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 3.202e-05/0.1161, allocations: 3.938 kB / 0.489 GB, free: 10.68 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.943e-05/0.1162, allocations: 19.97 kB / 0.489 GB, free: 10.66 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001277/0.1163, allocations: 67.83 kB / 0.4891 GB, free: 10.59 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003221/0.1166, allocations: 131.4 kB / 0.4892 GB, free: 10.45 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.159e-05/0.1167, allocations: 31.92 kB / 0.4892 GB, free: 10.42 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.909e-05/0.1168, allocations: 43.78 kB / 0.4893 GB, free: 10.38 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.722e-05/0.1168, allocations: 8 kB / 0.4893 GB, free: 10.37 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.981e-05/0.1168, allocations: 12 kB / 0.4893 GB, free: 10.36 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000106/0.1169, allocations: 63.88 kB / 0.4893 GB, free: 10.3 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.181e-05/0.117, allocations: 71.59 kB / 0.4894 GB, free: 10.23 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002523/0.1173, allocations: 155.3 kB / 0.4896 GB, free: 10.07 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.1173, allocations: 0 / 0.4896 GB, free: 10.07 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.1173, allocations: 0 / 0.4896 GB, free: 10.07 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.21e-06/0.1173, allocations: 0 / 0.4896 GB, free: 10.07 MB / 382.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.0006381/0.118, allocations: 443.2 kB / 0.49 GB, free: 9.594 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.777e-05/0.118, allocations: 11.89 kB / 0.49 GB, free: 9.582 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001019/0.1181, allocations: 67.12 kB / 0.4901 GB, free: 9.508 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.754e-05/0.1182, allocations: 20.8 kB / 0.4901 GB, free: 9.488 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002643/0.1185, allocations: 220.1 kB / 0.4903 GB, free: 9.234 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.647e-05/0.1185, allocations: 12.81 kB / 0.4903 GB, free: 9.223 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.474e-05/0.1185, allocations: 24.38 kB / 0.4903 GB, free: 9.199 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003916/0.1189, allocations: 207.6 kB / 0.4905 GB, free: 8.992 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.233e-05/0.1189, allocations: 0 / 0.4905 GB, free: 8.992 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.937e-05/0.119, allocations: 8 kB / 0.4905 GB, free: 8.984 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.636e-06/0.119, allocations: 4 kB / 0.4905 GB, free: 8.98 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002544/0.1192, allocations: 133.7 kB / 0.4907 GB, free: 8.848 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007117/0.12, allocations: 0.5063 MB / 0.4912 GB, free: 8.293 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001218/0.1201, allocations: 46.5 kB / 0.4912 GB, free: 8.238 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.531e-05/0.1202, allocations: 28.97 kB / 0.4912 GB, free: 8.207 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.106e-05/0.1202, allocations: 4 kB / 0.4912 GB, free: 8.203 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.267e-05/0.1202, allocations: 34.55 kB / 0.4913 GB, free: 8.16 MB / 382.1 MB Notification: Performance of pre-optimization done (n=5): time 1.223e-06/0.1202, allocations: 3.938 kB / 0.4913 GB, free: 8.156 MB / 382.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002562/0.1205, allocations: 81.56 kB / 0.4913 GB, free: 8.07 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.165e-05/0.1205, allocations: 51.41 kB / 0.4914 GB, free: 8.008 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001005/0.1206, allocations: 109.8 kB / 0.4915 GB, free: 7.891 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.804e-05/0.1207, allocations: 29.7 kB / 0.4915 GB, free: 7.855 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001004/0.1208, allocations: 144.1 kB / 0.4917 GB, free: 7.707 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.646e-05/0.1208, allocations: 19.89 kB / 0.4917 GB, free: 7.688 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.44e-05/0.1209, allocations: 17.7 kB / 0.4917 GB, free: 7.664 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001567/0.121, allocations: 318.8 kB / 0.492 GB, free: 7.344 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.42e-05/0.1211, allocations: 11.98 kB / 0.492 GB, free: 7.332 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.594e-05/0.1211, allocations: 12 kB / 0.492 GB, free: 7.32 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.077e-05/0.1212, allocations: 32.84 kB / 0.4921 GB, free: 7.285 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.1212, allocations: 4.375 kB / 0.4921 GB, free: 7.281 MB / 382.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001229/0.1213, allocations: 69.58 kB / 0.4921 GB, free: 7.207 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.704e-05/0.1214, allocations: 7.984 kB / 0.4921 GB, free: 7.199 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.1214, allocations: 0 / 0.4921 GB, free: 7.199 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.072e-05/0.1214, allocations: 4 kB / 0.4921 GB, free: 7.195 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.874e-05/0.1215, allocations: 8 kB / 0.4922 GB, free: 7.188 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.672e-06/0.1215, allocations: 0 / 0.4922 GB, free: 7.188 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.446e-05/0.1215, allocations: 3.984 kB / 0.4922 GB, free: 7.184 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.051e-05/0.1215, allocations: 8 kB / 0.4922 GB, free: 7.176 MB / 382.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.0001371/0.1217, allocations: 145.6 kB / 0.4923 GB, free: 7.023 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.338e-05/0.1217, allocations: 3.953 kB / 0.4923 GB, free: 7.02 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.541e-05/0.1218, allocations: 11.97 kB / 0.4923 GB, free: 7.008 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-06/0.1218, allocations: 0 / 0.4923 GB, free: 7.008 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.1218, allocations: 0 / 0.4923 GB, free: 7.008 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.1218, allocations: 0 / 0.4923 GB, free: 7.008 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004278/0.1222, allocations: 366.4 kB / 0.4927 GB, free: 6.594 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.1222, allocations: 4 kB / 0.4927 GB, free: 6.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.081e-05/0.1223, allocations: 11.98 kB / 0.4927 GB, free: 6.578 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.1223, allocations: 0 / 0.4927 GB, free: 6.578 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.091e-05/0.1223, allocations: 4 kB / 0.4927 GB, free: 6.574 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.1223, allocations: 0 / 0.4927 GB, free: 6.574 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.1223, allocations: 3.938 kB / 0.4927 GB, free: 6.57 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001811/0.1225, allocations: 167.4 kB / 0.4928 GB, free: 6.391 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.996e-05/0.1226, allocations: 81.11 kB / 0.4929 GB, free: 6.293 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.178e-05/0.1226, allocations: 3.938 kB / 0.4929 GB, free: 6.289 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.145e-05/0.1227, allocations: 7.938 kB / 0.4929 GB, free: 6.281 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.466e-05/0.1227, allocations: 11.92 kB / 0.4929 GB, free: 6.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.574e-06/0.1227, allocations: 192 / 0.493 GB, free: 6.27 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.711e-05/0.1228, allocations: 83.28 kB / 0.493 GB, free: 6.188 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1228, allocations: 0 / 0.493 GB, free: 6.188 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002331/0.123, allocations: 35.78 kB / 0.4931 GB, free: 6.152 MB / 382.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.0006031/0.1236, allocations: 0.7162 MB / 0.4938 GB, free: 5.41 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001518/0.1238, allocations: 28.05 kB / 0.4938 GB, free: 5.383 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1238, allocations: 0 / 0.4938 GB, free: 5.383 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 5.275e-05/0.1239, allocations: 19.98 kB / 0.4938 GB, free: 5.363 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003521/0.1242, allocations: 20.48 kB / 0.4938 GB, free: 5.344 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001582/0.1258, allocations: 1.449 MB / 0.4952 GB, free: 3.816 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003693/0.1262, allocations: 0.7351 MB / 0.496 GB, free: 3.055 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.551e-05/0.1262, allocations: 7.984 kB / 0.496 GB, free: 3.047 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.852e-05/0.1263, allocations: 47.41 kB / 0.496 GB, free: 3 MB / 382.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1263, allocations: 4 kB / 0.496 GB, free: 2.996 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02308/0.1494, allocations: 1.98 MB / 0.498 GB, free: 1.008 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.662/7.812, allocations: 4 kB / 0.498 GB, free: 1.004 MB / 382.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