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.001181/0.001181, allocations: 108.6 kB / 15.99 MB, free: 6.352 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.001487/0.001487, allocations: 199.4 kB / 16.91 MB, free: 6.195 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.37/1.37, allocations: 205.1 MB / 222.8 MB, free: 4.691 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.3122/0.3122, allocations: 43.49 MB / 313.6 MB, free: 8.473 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.001563/0.001563, allocations: 67.89 kB / 382.3 MB, free: 8.531 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1187/0.1203, allocations: 57.78 MB / 440.1 MB, free: 14.66 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.003204/0.1236, allocations: 1.606 MB / 441.7 MB, free: 13.04 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001759/0.1238, allocations: 43.84 kB / 441.7 MB, free: 12.99 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.345e-05/0.1238, allocations: 4 kB / 441.7 MB, free: 12.99 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001739/0.124, allocations: 19.8 kB / 441.8 MB, free: 12.97 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 3.143e-05/0.1241, allocations: 0 / 441.8 MB, free: 12.97 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001154/0.1242, allocations: 15.98 kB / 441.8 MB, free: 12.95 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001202/0.1244, allocations: 75.77 kB / 441.9 MB, free: 12.88 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002916/0.1247, allocations: 135.4 kB / 442 MB, free: 12.74 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.339e-05/0.1247, allocations: 31.92 kB / 442 MB, free: 12.71 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.261e-05/0.1248, allocations: 51.77 kB / 442.1 MB, free: 12.66 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.505e-05/0.1248, allocations: 8 kB / 442.1 MB, free: 12.65 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.223e-05/0.1249, allocations: 8 kB / 442.1 MB, free: 12.64 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.6e-05/0.125, allocations: 63.89 kB / 442.1 MB, free: 12.58 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.421e-05/0.125, allocations: 67.59 kB / 442.2 MB, free: 12.51 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001764/0.1252, allocations: 139.8 kB / 442.4 MB, free: 12.38 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.1252, allocations: 0 / 442.4 MB, free: 12.38 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1252, allocations: 0 / 442.4 MB, free: 12.38 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.444e-06/0.1253, allocations: 4 kB / 442.4 MB, free: 12.37 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.0005011/0.1258, allocations: 447.3 kB / 442.8 MB, free: 11.89 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.322e-05/0.1258, allocations: 11.89 kB / 442.8 MB, free: 11.88 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.059e-05/0.1259, allocations: 63.08 kB / 442.9 MB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.804e-05/0.126, allocations: 16.75 kB / 442.9 MB, free: 11.79 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00021/0.1262, allocations: 220.1 kB / 443.1 MB, free: 11.53 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.094e-05/0.1262, allocations: 16.81 kB / 443.1 MB, free: 11.52 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.691e-05/0.1262, allocations: 20.38 kB / 443.1 MB, free: 11.5 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003495/0.1266, allocations: 215.5 kB / 443.3 MB, free: 11.28 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.199e-05/0.1266, allocations: 3.984 kB / 443.3 MB, free: 11.28 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.946e-05/0.1266, allocations: 8 kB / 443.4 MB, free: 11.27 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.724e-06/0.1267, allocations: 4 kB / 443.4 MB, free: 11.27 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002249/0.1269, allocations: 129.7 kB / 443.5 MB, free: 11.14 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000642/0.1275, allocations: 0.5178 MB / 444 MB, free: 10.57 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.489e-05/0.1276, allocations: 42.56 kB / 444 MB, free: 10.52 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.603e-05/0.1277, allocations: 24.97 kB / 444.1 MB, free: 10.49 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.337e-05/0.1277, allocations: 0 / 444.1 MB, free: 10.49 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.726e-05/0.1278, allocations: 46.48 kB / 444.1 MB, free: 10.44 MB / 382.1 MB Notification: Performance of pre-optimization done (n=5): time 1.082e-06/0.1278, allocations: 0 / 444.1 MB, free: 10.44 MB / 382.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002217/0.128, allocations: 73.59 kB / 444.2 MB, free: 10.36 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.123e-05/0.1281, allocations: 55.39 kB / 444.2 MB, free: 10.29 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.685e-05/0.1281, allocations: 109.8 kB / 444.3 MB, free: 10.18 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.132e-05/0.1282, allocations: 29.7 kB / 444.4 MB, free: 10.14 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.967e-05/0.1283, allocations: 136 kB / 444.5 MB, free: 10 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.317e-05/0.1283, allocations: 27.64 kB / 444.5 MB, free: 9.977 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.411e-05/0.1283, allocations: 21.72 kB / 444.6 MB, free: 9.949 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001049/0.1284, allocations: 318.8 kB / 444.9 MB, free: 9.629 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.666e-05/0.1285, allocations: 15.98 kB / 444.9 MB, free: 9.613 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.427e-05/0.1285, allocations: 11.88 kB / 444.9 MB, free: 9.602 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.771e-05/0.1286, allocations: 32.84 kB / 444.9 MB, free: 9.566 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.1286, allocations: 0 / 444.9 MB, free: 9.566 MB / 382.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001166/0.1287, allocations: 65.69 kB / 445 MB, free: 9.496 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.793e-05/0.1288, allocations: 7.984 kB / 445 MB, free: 9.488 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.733e-06/0.1288, allocations: 0 / 445 MB, free: 9.488 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.286e-05/0.1288, allocations: 0 / 445 MB, free: 9.488 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.047e-05/0.1289, allocations: 8 kB / 445 MB, free: 9.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.716e-06/0.1289, allocations: 4 kB / 445 MB, free: 9.477 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.442e-05/0.1289, allocations: 0 / 445 MB, free: 9.477 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.073e-06/0.1289, allocations: 448 / 445 MB, free: 9.477 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.0001172/0.1291, allocations: 145.7 kB / 445.2 MB, free: 9.324 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.386e-05/0.1291, allocations: 7.906 kB / 445.2 MB, free: 9.316 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.535e-05/0.1291, allocations: 11.97 kB / 445.2 MB, free: 9.309 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.1291, allocations: 0 / 445.2 MB, free: 9.309 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.183e-06/0.1292, allocations: 4 kB / 445.2 MB, free: 9.305 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.1292, allocations: 0 / 445.2 MB, free: 9.305 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003765/0.1295, allocations: 362.5 kB / 445.5 MB, free: 8.895 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.993e-06/0.1296, allocations: 3.938 kB / 445.5 MB, free: 8.891 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.436e-05/0.1296, allocations: 11.98 kB / 445.5 MB, free: 8.879 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.1296, allocations: 4 kB / 445.6 MB, free: 8.875 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.337e-05/0.1296, allocations: 4 kB / 445.6 MB, free: 8.871 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.1296, allocations: 4 kB / 445.6 MB, free: 8.867 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.1297, allocations: 3.938 kB / 445.6 MB, free: 8.863 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001498/0.1298, allocations: 151.5 kB / 445.7 MB, free: 8.699 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.971e-05/0.1299, allocations: 88.95 kB / 445.8 MB, free: 8.594 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.153e-05/0.1299, allocations: 0 / 445.8 MB, free: 8.594 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.177e-05/0.1299, allocations: 8 kB / 445.8 MB, free: 8.586 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.874e-05/0.13, allocations: 7.938 kB / 445.8 MB, free: 8.578 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.028e-06/0.13, allocations: 7.922 kB / 445.8 MB, free: 8.57 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.278e-05/0.13, allocations: 91.58 kB / 445.9 MB, free: 8.48 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.212e-06/0.13, allocations: 0 / 445.9 MB, free: 8.48 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002273/0.1303, allocations: 31.69 kB / 445.9 MB, free: 8.449 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.0004688/0.1307, allocations: 0.7085 MB / 446.7 MB, free: 7.715 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001292/0.1309, allocations: 31.98 kB / 446.7 MB, free: 7.684 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.1309, allocations: 0 / 446.7 MB, free: 7.684 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.742e-05/0.1309, allocations: 20.3 kB / 446.7 MB, free: 7.664 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003231/0.1313, allocations: 20.06 kB / 446.7 MB, free: 7.645 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001371/0.1326, allocations: 1.52 MB / 448.2 MB, free: 6.043 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002773/0.1329, allocations: 0.7314 MB / 449 MB, free: 5.285 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 2.576e-05/0.133, allocations: 4 kB / 449 MB, free: 5.281 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.931e-05/0.133, allocations: 51.41 kB / 449 MB, free: 5.23 MB / 382.1 MB Notification: Performance of SimCode: time 4.11e-07/0.133, allocations: 0 / 449 MB, free: 5.23 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1964/0.3295, allocations: 1.842 MB / 450.9 MB, free: 3.398 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002849/0.3298, allocations: 187.9 kB / 451.1 MB, free: 3.133 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.155/2.485, allocations: 3.938 kB / 451.1 MB, free: 3.129 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