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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008323/0.0008323, allocations: 76.36 kB / 20.67 MB, free: 3.895 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008408/0.0008408, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8751/0.8751, allocations: 177 MB / 204.1 MB, free: 5.758 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.267/0.267, allocations: 34.25 MB / 294.8 MB, free: 0.6758 MB / 266.7 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.603e-06/1.603e-06, allocations: 0 / 442.1 MB, free: 1.578 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.885e-05/2.045e-05, allocations: 5.094 kB / 442.1 MB, free: 1.574 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.001944/0.001965, allocations: 1.544 MB / 443.7 MB, free: 16 kB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.1779/0.1799, allocations: 57.2 kB / 443.7 MB, free: 43.25 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.155e-05/0.18, allocations: 4.5 kB / 443.8 MB, free: 43.25 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001409/0.1801, allocations: 17.34 kB / 443.8 MB, free: 43.25 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 2.034e-05/0.1801, allocations: 6.641 kB / 443.8 MB, free: 43.25 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001589/0.1803, allocations: 28.56 kB / 443.8 MB, free: 43.25 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.00011/0.1804, allocations: 67.89 kB / 443.9 MB, free: 43.25 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002087/0.1806, allocations: 88.75 kB / 444 MB, free: 43.24 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.894e-05/0.1807, allocations: 50.47 kB / 444 MB, free: 43.24 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.712e-05/0.1807, allocations: 34.78 kB / 444 MB, free: 43.23 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 2.628e-05/0.1807, allocations: 9.469 kB / 444 MB, free: 43.23 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.391e-05/0.1807, allocations: 8.344 kB / 444.1 MB, free: 43.23 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 5.843e-05/0.1808, allocations: 73.58 kB / 444.1 MB, free: 43.23 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 4.45e-05/0.1809, allocations: 36.8 kB / 444.2 MB, free: 43.22 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000129/0.181, allocations: 151.6 kB / 444.3 MB, free: 43.21 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.155e-06/0.181, allocations: 2.906 kB / 444.3 MB, free: 43.21 MB / 410.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.181, allocations: 0 / 444.3 MB, free: 43.21 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.779e-06/0.181, allocations: 3.938 kB / 444.3 MB, free: 43.21 MB / 410.7 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.0003451/0.1813, allocations: 365.7 kB / 444.7 MB, free: 42.92 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.944e-05/0.1814, allocations: 12.03 kB / 444.7 MB, free: 42.92 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.343e-05/0.1814, allocations: 63.98 kB / 444.8 MB, free: 42.88 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.862e-05/0.1815, allocations: 23.83 kB / 444.8 MB, free: 42.87 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001289/0.1816, allocations: 156.1 kB / 444.9 MB, free: 42.73 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.27e-05/0.1816, allocations: 16 kB / 444.9 MB, free: 42.73 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.674e-05/0.1816, allocations: 22.41 kB / 445 MB, free: 42.73 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002198/0.1818, allocations: 204.5 kB / 445.2 MB, free: 42.7 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-06/0.1818, allocations: 192 / 445.2 MB, free: 42.7 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.234e-05/0.1819, allocations: 14.25 kB / 445.2 MB, free: 42.7 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.132e-06/0.1819, allocations: 12.56 kB / 445.2 MB, free: 42.69 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001309/0.182, allocations: 133.2 kB / 445.3 MB, free: 42.69 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003762/0.1824, allocations: 451.2 kB / 445.8 MB, free: 42.4 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.238e-05/0.1824, allocations: 50.16 kB / 445.8 MB, free: 42.38 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.431e-05/0.1825, allocations: 24.19 kB / 445.8 MB, free: 42.37 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.237e-05/0.1825, allocations: 3.938 kB / 445.8 MB, free: 42.36 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.326e-05/0.1825, allocations: 37.16 kB / 445.9 MB, free: 42.32 MB / 410.7 MB Notification: Performance of pre-optimization done (n=5): time 1.282e-06/0.1825, allocations: 1.172 kB / 445.9 MB, free: 42.32 MB / 410.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001575/0.1827, allocations: 74.33 kB / 445.9 MB, free: 42.29 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.904e-05/0.1827, allocations: 57.94 kB / 446 MB, free: 42.23 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.618e-05/0.1827, allocations: 115 kB / 446.1 MB, free: 42.13 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.388e-06/0.1827, allocations: 25.7 kB / 446.1 MB, free: 42.1 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.322e-05/0.1827, allocations: 148.3 kB / 446.3 MB, free: 41.98 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.372e-05/0.1828, allocations: 16.94 kB / 446.3 MB, free: 41.97 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.097e-05/0.1828, allocations: 12.34 kB / 446.3 MB, free: 41.95 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.765e-05/0.1828, allocations: 320.4 kB / 446.6 MB, free: 41.64 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.091e-05/0.1828, allocations: 11.19 kB / 446.6 MB, free: 41.64 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.759e-05/0.1829, allocations: 16.66 kB / 446.7 MB, free: 41.64 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.042e-05/0.1829, allocations: 36.56 kB / 446.7 MB, free: 41.63 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.1829, allocations: 3.938 kB / 446.7 MB, free: 41.62 MB / 410.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 6.52e-05/0.183, allocations: 64.47 kB / 446.8 MB, free: 41.59 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.154e-05/0.183, allocations: 5.969 kB / 446.8 MB, free: 41.59 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.183, allocations: 0 / 446.8 MB, free: 41.59 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.091e-05/0.183, allocations: 0 / 446.8 MB, free: 41.59 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.52e-05/0.183, allocations: 9 kB / 446.8 MB, free: 41.59 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.937e-06/0.183, allocations: 0 / 446.8 MB, free: 41.59 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.338e-05/0.1831, allocations: 14.06 kB / 446.8 MB, free: 41.58 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.58e-06/0.1831, allocations: 2.688 kB / 446.8 MB, free: 41.58 MB / 410.7 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 4.899e-05/0.1831, allocations: 138.2 kB / 446.9 MB, free: 41.46 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.246e-05/0.1831, allocations: 6.859 kB / 446.9 MB, free: 41.46 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.525e-05/0.1831, allocations: 10.81 kB / 446.9 MB, free: 41.46 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.342e-06/0.1831, allocations: 0 / 446.9 MB, free: 41.46 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.1831, allocations: 0 / 446.9 MB, free: 41.46 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.395e-06/0.1831, allocations: 0 / 446.9 MB, free: 41.46 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001694/0.1833, allocations: 347.6 kB / 447.3 MB, free: 41.19 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.1833, allocations: 0 / 447.3 MB, free: 41.19 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.108e-05/0.1833, allocations: 15.94 kB / 447.3 MB, free: 41.18 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.143e-06/0.1833, allocations: 0 / 447.3 MB, free: 41.18 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.701e-06/0.1833, allocations: 2.906 kB / 447.3 MB, free: 41.18 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.52e-07/0.1833, allocations: 0 / 447.3 MB, free: 41.18 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.1833, allocations: 0.8438 kB / 447.3 MB, free: 41.18 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.477e-05/0.1834, allocations: 159.6 kB / 447.5 MB, free: 41.05 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.43e-06/0.1834, allocations: 10.39 kB / 447.5 MB, free: 41.04 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.879e-06/0.1834, allocations: 3.25 kB / 447.5 MB, free: 41.04 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.774e-05/0.1835, allocations: 6 kB / 447.5 MB, free: 41.04 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.237e-05/0.1835, allocations: 6.875 kB / 447.5 MB, free: 41.04 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.833e-06/0.1835, allocations: 0 / 447.5 MB, free: 41.04 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.843e-05/0.1835, allocations: 94.06 kB / 447.6 MB, free: 40.96 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1835, allocations: 0 / 447.6 MB, free: 40.96 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001519/0.1836, allocations: 32.56 kB / 447.6 MB, free: 40.95 MB / 410.7 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.0002294/0.1839, allocations: 0.7039 MB / 448.3 MB, free: 40.29 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 8.836e-05/0.184, allocations: 35.16 kB / 448.3 MB, free: 40.29 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.184, allocations: 0 / 448.3 MB, free: 40.29 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.764e-05/0.184, allocations: 18.73 kB / 448.4 MB, free: 40.28 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002562/0.1842, allocations: 9.719 kB / 448.4 MB, free: 40.28 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007974/0.185, allocations: 1.452 MB / 449.8 MB, free: 39.07 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.657e-05/0.1851, allocations: 120.7 kB / 449.9 MB, free: 39 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 2.788e-05/0.1851, allocations: 10.17 kB / 450 MB, free: 38.99 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.103e-05/0.1852, allocations: 45.08 kB / 450 MB, free: 38.97 MB / 410.7 MB Notification: Performance of SimCode: time 6.41e-07/0.1852, allocations: 0 / 450 MB, free: 38.97 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01447/0.1996, allocations: 2.652 MB / 452.6 MB, free: 38.02 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.609/6.809, allocations: 3.812 kB / 452.7 MB, free: 38.02 MB / 410.7 MB " [Timeout remaining time 653] (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 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_MuxDemux.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/MuxDemux/MuxDemux.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.814492951147258]