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.004317/0.004317, allocations: 100.1 kB / 15.87 MB, free: 6.309 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.001167/0.001167, allocations: 193.7 kB / 16.79 MB, free: 6.238 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.36/1.36, allocations: 205.1 MB / 222.6 MB, free: 4.758 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.328/0.328, allocations: 43.5 MB / 313.5 MB, free: 8.309 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.001362/0.001362, allocations: 62.56 kB / 382.1 MB, free: 8.41 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1107, allocations: 57.78 MB / 439.9 MB, free: 14.53 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.002527/0.1132, allocations: 1.61 MB / 441.5 MB, free: 12.91 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001163/0.1134, allocations: 55.83 kB / 441.6 MB, free: 12.85 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.946e-05/0.1134, allocations: 3.938 kB / 441.6 MB, free: 12.85 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001314/0.1136, allocations: 7.922 kB / 441.6 MB, free: 12.84 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.159e-05/0.1136, allocations: 7.938 kB / 441.6 MB, free: 12.83 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.063e-05/0.1137, allocations: 23.92 kB / 441.6 MB, free: 12.81 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 8.769e-05/0.1138, allocations: 59.89 kB / 441.7 MB, free: 12.75 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002349/0.114, allocations: 135.4 kB / 441.8 MB, free: 12.61 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.075e-05/0.1141, allocations: 31.86 kB / 441.8 MB, free: 12.58 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.296e-05/0.1141, allocations: 39.84 kB / 441.9 MB, free: 12.54 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.115e-05/0.1142, allocations: 8 kB / 441.9 MB, free: 12.53 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.556e-05/0.1142, allocations: 4 kB / 441.9 MB, free: 12.53 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.128e-05/0.1142, allocations: 75.81 kB / 442 MB, free: 12.45 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.597e-05/0.1143, allocations: 63.61 kB / 442 MB, free: 12.39 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001296/0.1145, allocations: 123.9 kB / 442.1 MB, free: 12.27 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.1145, allocations: 0 / 442.1 MB, free: 12.27 MB / 382.1 MB Notification: Performance of FrontEnd: time 5.82e-07/0.1145, allocations: 4 kB / 442.1 MB, free: 12.27 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.388e-06/0.1145, allocations: 0 / 442.1 MB, free: 12.27 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.0004301/0.1149, allocations: 447.4 kB / 442.6 MB, free: 11.78 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.723e-05/0.115, allocations: 8.031 kB / 442.6 MB, free: 11.77 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.453e-05/0.115, allocations: 67.06 kB / 442.7 MB, free: 11.7 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.486e-05/0.1151, allocations: 20.75 kB / 442.7 MB, free: 11.68 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000184/0.1153, allocations: 220 kB / 442.9 MB, free: 11.43 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.58e-05/0.1153, allocations: 16.81 kB / 442.9 MB, free: 11.41 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.368e-05/0.1153, allocations: 16.38 kB / 442.9 MB, free: 11.39 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003175/0.1156, allocations: 219.5 kB / 443.1 MB, free: 11.18 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.626e-06/0.1157, allocations: 0 / 443.1 MB, free: 11.18 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.801e-05/0.1157, allocations: 8 kB / 443.1 MB, free: 11.17 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.785e-06/0.1157, allocations: 8 kB / 443.2 MB, free: 11.16 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002176/0.1159, allocations: 129.7 kB / 443.3 MB, free: 11.04 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005427/0.1165, allocations: 0.51 MB / 443.8 MB, free: 10.47 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.961e-05/0.1166, allocations: 42.5 kB / 443.8 MB, free: 10.42 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.598e-05/0.1166, allocations: 28.97 kB / 443.9 MB, free: 10.39 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.809e-06/0.1166, allocations: 3.938 kB / 443.9 MB, free: 10.39 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.174e-05/0.1167, allocations: 38.56 kB / 443.9 MB, free: 10.34 MB / 382.1 MB Notification: Performance of pre-optimization done (n=5): time 9.72e-07/0.1167, allocations: 0 / 443.9 MB, free: 10.34 MB / 382.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002163/0.1169, allocations: 77.58 kB / 444 MB, free: 10.26 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.157e-05/0.1169, allocations: 55.34 kB / 444 MB, free: 10.19 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.893e-05/0.117, allocations: 113.8 kB / 444.1 MB, free: 10.07 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.651e-05/0.117, allocations: 25.7 kB / 444.2 MB, free: 10.04 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.45e-05/0.1171, allocations: 140 kB / 444.3 MB, free: 9.898 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.822e-05/0.1171, allocations: 27.64 kB / 444.3 MB, free: 9.871 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.944e-05/0.1172, allocations: 17.72 kB / 444.3 MB, free: 9.848 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001117/0.1173, allocations: 318.8 kB / 444.7 MB, free: 9.527 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.809e-05/0.1173, allocations: 12.23 kB / 444.7 MB, free: 9.516 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.082e-05/0.1174, allocations: 15.98 kB / 444.7 MB, free: 9.5 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.551e-05/0.1174, allocations: 32.84 kB / 444.7 MB, free: 9.465 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.282e-06/0.1174, allocations: 0 / 444.7 MB, free: 9.465 MB / 382.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001077/0.1175, allocations: 69.62 kB / 444.8 MB, free: 9.391 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.36e-05/0.1176, allocations: 4 kB / 444.8 MB, free: 9.387 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.068e-06/0.1176, allocations: 0 / 444.8 MB, free: 9.387 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.308e-06/0.1176, allocations: 0 / 444.8 MB, free: 9.387 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.875e-05/0.1177, allocations: 11.98 kB / 444.8 MB, free: 9.375 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.789e-06/0.1177, allocations: 0 / 444.8 MB, free: 9.375 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.253e-05/0.1177, allocations: 4 kB / 444.8 MB, free: 9.371 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.3e-06/0.1177, allocations: 0 / 444.8 MB, free: 9.371 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 9.596e-05/0.1178, allocations: 133.8 kB / 444.9 MB, free: 9.23 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.356e-05/0.1178, allocations: 15.89 kB / 445 MB, free: 9.215 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.83e-05/0.1179, allocations: 7.969 kB / 445 MB, free: 9.211 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.1179, allocations: 4 kB / 445 MB, free: 9.207 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.1179, allocations: 0 / 445 MB, free: 9.207 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.1179, allocations: 0 / 445 MB, free: 9.207 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003376/0.1182, allocations: 374.4 kB / 445.3 MB, free: 8.785 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.1182, allocations: 0 / 445.3 MB, free: 8.785 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.752e-05/0.1183, allocations: 8 kB / 445.3 MB, free: 8.777 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.532e-06/0.1183, allocations: 4 kB / 445.3 MB, free: 8.773 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.21e-06/0.1183, allocations: 0 / 445.3 MB, free: 8.773 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.1183, allocations: 256 / 445.3 MB, free: 8.773 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.969e-06/0.1183, allocations: 7.938 kB / 445.4 MB, free: 8.766 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001407/0.1185, allocations: 163.4 kB / 445.5 MB, free: 8.59 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.728e-05/0.1185, allocations: 88.95 kB / 445.6 MB, free: 8.484 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.2e-05/0.1185, allocations: 4 kB / 445.6 MB, free: 8.48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.897e-05/0.1186, allocations: 7.984 kB / 445.6 MB, free: 8.473 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.919e-05/0.1186, allocations: 7.938 kB / 445.6 MB, free: 8.465 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.314e-06/0.1186, allocations: 0 / 445.6 MB, free: 8.465 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.185e-05/0.1187, allocations: 91.27 kB / 445.7 MB, free: 8.375 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1187, allocations: 0 / 445.7 MB, free: 8.375 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002101/0.1189, allocations: 23.75 kB / 445.7 MB, free: 8.352 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.0004143/0.1193, allocations: 0.7201 MB / 446.4 MB, free: 7.605 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001065/0.1194, allocations: 28.05 kB / 446.5 MB, free: 7.578 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.1194, allocations: 0 / 446.5 MB, free: 7.578 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.089e-05/0.1195, allocations: 19.98 kB / 446.5 MB, free: 7.559 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002782/0.1198, allocations: 19.92 kB / 446.5 MB, free: 7.539 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001282/0.121, allocations: 1.514 MB / 448 MB, free: 5.941 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002551/0.1213, allocations: 0.7317 MB / 448.8 MB, free: 5.184 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.009e-05/0.1213, allocations: 7.984 kB / 448.8 MB, free: 5.176 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.515e-05/0.1214, allocations: 43.42 kB / 448.8 MB, free: 5.133 MB / 382.1 MB Notification: Performance of SimCode: time 2e-07/0.1214, allocations: 4 kB / 448.8 MB, free: 5.129 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01143/0.1329, allocations: 1.782 MB / 450.6 MB, free: 3.34 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00019/0.1331, allocations: 191.9 kB / 450.8 MB, free: 3.066 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.653/1.786, allocations: 0 / 450.8 MB, free: 3.066 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","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches